arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.13387cs.CL
收藏

Do-Not-Answer:用于评估大型语言模型安全防护措施的数据集

Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMs

LibrAI;MBZUAI(穆罕默德·本·扎耶德人工智能大学);The University of Melbourne(墨尔本大学)

Yuxia Wang, Haonan Li, Xudong Han, Preslav Nakov, Timothy Baldwin

AI总结:

该研究构建了首个评估LLM安全防护的开源数据集Do-Not-Answer,通过标注六个流行模型的响应并训练小型分类器,实现了与GPT-4相当的自动安全评估效果。

摘要:

随着大型语言模型(LLMs)的快速发展,新的且难以预测的有害能力正在涌现。这要求开发者能够通过评估“危险能力”来识别风险,从而负责任地部署LLMs。在这项工作中,我们收集了首个开源数据集来评估LLMs中的安全防护措施,并以低成本部署更安全的开源LLMs。我们的数据集经过精心筛选,仅包含负责任的模型不应遵循的指令。我们标注并评估了六个流行的LLMs对这些指令的响应。基于我们的标注,我们训练了多个类似BERT的分类器,并发现这些小型分类器在自动安全评估上可以达到与GPT-4相当的结果。警告:本文包含可能具有冒犯性、有害性或偏见性的示例数据。

英文摘要:

With the rapid evolution of large language models (LLMs), new and hard-to-predict harmful capabilities are emerging. This requires developers to be able to identify risks through the evaluation of "dangerous capabilities" in order to responsibly deploy LLMs. In this work, we collect the first open-source dataset to evaluate safeguards in LLMs, and deploy safer open-source LLMs at a low cost. Our dataset is curated and filtered to consist only of instructions that responsible language models should not follow. We annotate and assess the responses of six popular LLMs to these instructions. Based on our annotation, we proceed to train several BERT-like classifiers, and find that these small classifiers can achieve results that are comparable with GPT-4 on automatic safety evaluation. Warning: this paper contains example data that may be offensive, harmful, or biased.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑