arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01606cs.LGcs.AI
收藏

使用 GOAT 进行自动化红队测试:Generative Offensive Agent Tester(生成式进攻智能体测试器)

Automated Red Teaming with GOAT: the Generative Offensive Agent Tester

Meta

Maya Pavlova, Erik Brinkman, Krithika Iyer, Vitor Albiero, Joanna Bitton, Hailey Nguyen, Joe Li, Cristian Canton Ferrer, Ivan Evtimov, Aaron Grattafiori

AI总结:

本文提出 GOAT 自动化智能体红队系统,通过多轮通俗对话和 7 种对抗提示技术模拟普通用户攻击,在 JailbreakBench 上对 Llama 3.1 与 GPT-4 分别取得 97% 和 88% 的 ASR@10。

摘要:

红队测试用于评估大型语言模型(LLM)如何生成违反其安全训练期间所设定规范、政策和规则的内容。然而,文献中大多数现有自动化方法并不能代表人类与 AI 模型交互的常见方式。AI 模型的普通用户可能并不掌握对抗性机器学习方法的高级知识,也无法访问模型内部,而且他们不会花费大量时间精心构造单个高效的对抗性提示。相反,他们更可能利用网上普遍分享的技术,并借助 LLM 的多轮对话特性。虽然人工测试可以弥补这一差距,但该过程效率低下,而且往往成本高昂。为解决这些局限,我们提出了 Generative Offensive Agent Tester(GOAT,生成式进攻智能体测试器),这是一个自动化智能体红队测试系统,可模拟通俗语言的对抗性对话,同时利用多种对抗性提示技术来识别 LLM 中的漏洞。我们通过提示一个通用模型来实例化 GOAT,使其具备 7 种红队攻击;该提示方式鼓励模型围绕可用方法选择、当前目标模型的响应以及后续步骤进行推理。我们的方法被设计为具有可扩展性和高效性,使人类测试人员能够专注于探索新的风险领域,而自动化则覆盖已知风险领域的规模化对抗压力测试。我们展示了 GOAT 的设计与评估,证明了其在识别最先进 LLM 漏洞方面的有效性:在 JailbreakBench 数据集上,其针对 Llama 3.1 的 ASR@10 为 97%,针对 GPT-4 的 ASR@10 为 88%。

英文摘要:

Red teaming assesses how large language models (LLMs) can produce content that violates norms, policies, and rules set during their safety training. However, most existing automated methods in the literature are not representative of the way humans tend to interact with AI models. Common users of AI models may not have advanced knowledge of adversarial machine learning methods or access to model internals, and they do not spend a lot of time crafting a single highly effective adversarial prompt. Instead, they are likely to make use of techniques commonly shared online and exploit the multiturn conversational nature of LLMs. While manual testing addresses this gap, it is an inefficient and often expensive process. To address these limitations, we introduce the Generative Offensive Agent Tester (GOAT), an automated agentic red teaming system that simulates plain language adversarial conversations while leveraging multiple adversarial prompting techniques to identify vulnerabilities in LLMs. We instantiate GOAT with 7 red teaming attacks by prompting a general-purpose model in a way that encourages reasoning through the choices of methods available, the current target model's response, and the next steps. Our approach is designed to be extensible and efficient, allowing human testers to focus on exploring new areas of risk while automation covers the scaled adversarial stress-testing of known risk territory. We present the design and evaluation of GOAT, demonstrating its effectiveness in identifying vulnerabilities in state-of-the-art LLMs, with an ASR@10 of 97% against Llama 3.1 and 88% against GPT-4 on the JailbreakBench dataset.

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

↑