arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.09442cs.CLcs.AIcs.LG
收藏

探索、建立、利用:从零开始对语言模型进行红队测试

Explore, Establish, Exploit: Red Teaming Language Models from Scratch

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Stanford University(斯坦福大学);MIT(麻省理工学院)

Stephen Casper, Jason Lin, Joe Kwon, Gatlen Culp, Dylan Hadfield-Menell

AI总结:

本文提出从零开始的红队测试框架,通过探索、建立和利用三步,无需预分类器即可发现并利用语言模型缺陷,并用其构建CommonClaim数据集以识别GPT-3的虚假陈述。

摘要:

部署大型语言模型(LM)可能会因产生有害输出(如有毒或虚假文本)而带来危害。先前的工作引入了自动化工具来诱发有害输出,以识别这些风险。虽然这是迈向模型安全的重要一步,但这些方法依赖于一种预先存在的、能够高效分类不良输出的方式。使用预先存在的分类器无法使红队测试针对目标模型进行定制。此外,当失败可以在事先轻易分类时,红队测试的边际价值有限,因为问题可以通过简单地过滤训练数据和/或模型输出来避免。在此,我们考虑“从零开始”的红队测试,即对手在开始时没有分类失败的方法。我们的框架包括三个步骤:1)在期望的上下文中探索模型的行为范围;2)建立对不良行为的定义和测量(例如,训练一个反映人类评估的分类器);3)利用该测量来开发多样化的对抗性提示,以利用模型的缺陷。我们使用这种方法对GPT-3进行红队测试,以发现会诱发虚假陈述的输入类别。在此过程中,我们构建了CommonClaim数据集,包含20,000条由人类标注为常识为真、常识为假或两者皆非的陈述。我们公开了代码和数据。

英文摘要:

Deploying large language models (LMs) can pose hazards from harmful outputs such as toxic or false text. Prior work has introduced automated tools that elicit harmful outputs to identify these risks. While this is a valuable step toward securing models, these approaches rely on a pre-existing way to efficiently classify undesirable outputs. Using a pre-existing classifier does not allow for red-teaming to be tailored to the target model. Furthermore, when failures can be easily classified in advance, red-teaming has limited marginal value because problems can be avoided by simply filtering training data and/or model outputs. Here, we consider red-teaming "from scratch," in which the adversary does not begin with a way to classify failures. Our framework consists of three steps: 1) Exploring the model's range of behaviors in the desired context; 2) Establishing a definition and measurement for undesired behavior (e.g., a classifier trained to reflect human evaluations); and 3) Exploiting the model's flaws using this measure to develop diverse adversarial prompts. We use this approach to red-team GPT-3 to discover classes of inputs that elicit false statements. In doing so, we construct the CommonClaim dataset of 20,000 statements labeled by humans as common-knowledge-true, common knowledge-false, or neither. We are making code and data available.

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

↑