Constitutional Classifiers:抵御数千小时红队测试中的通用越狱攻击
Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming
AI总结:
本文提出Constitutional Classifiers,通过基于自然语言规则生成的合成数据训练分类器来防御LLM通用越狱攻击,在3000多小时红队测试中有效抵御攻击,且仅增加0.38%拒绝率和23.7%推理开销,保持了部署可行性。
摘要:
大型语言模型(LLMs)容易受到通用越狱攻击——这是一种系统性地绕过模型安全防护的提示策略,使用户能够执行需要大量模型交互的有害流程,例如大规模制造非法物质。为了防御这些攻击,我们引入了Constitutional Classifiers:这是一种在合成数据上训练的安全防护机制,该数据通过使用自然语言规则(即一部“宪法”)提示LLMs生成,这些规则明确规定了允许和限制的内容。在估计超过3000小时的红队测试中,没有红队成员找到一种通用越狱方法,能够从早期分类器保护的LLM中提取信息,且其细节程度在大多数目标查询中与未受保护模型相似。在自动化评估中,增强型分类器对留出的领域特定越狱表现出稳健的防御能力。这些分类器还保持了部署可行性,生产流量拒绝率绝对增加0.38%,推理开销为23.7%。我们的工作表明,在防御通用越狱的同时保持实际部署可行性是可解决的。
英文摘要:
Large language models (LLMs) are vulnerable to universal jailbreaks-prompting strategies that systematically bypass model safeguards and enable users to carry out harmful processes that require many model interactions, like manufacturing illegal substances at scale. To defend against these attacks, we introduce Constitutional Classifiers: safeguards trained on synthetic data, generated by prompting LLMs with natural language rules (i.e., a constitution) specifying permitted and restricted content. In over 3,000 estimated hours of red teaming, no red teamer found a universal jailbreak that could extract information from an early classifier-guarded LLM at a similar level of detail to an unguarded model across most target queries. On automated evaluations, enhanced classifiers demonstrated robust defense against held-out domain-specific jailbreaks. These classifiers also maintain deployment viability, with an absolute 0.38% increase in production-traffic refusals and a 23.7% inference overhead. Our work demonstrates that defending against universal jailbreaks while maintaining practical deployment viability is tractable.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。