越狱:LLM 安全训练为何失败?

Jailbroken: How Does LLM Safety Training Fail?

亚历山大·魏 Alexander Wei · · 2023-07-05 · arXiv:2307.02483 ↗ · 被引 2008

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

经过安全和无害性训练的大型语言模型仍然容易受到对抗性滥用,早期发布的 ChatGPT 上普遍存在的“越狱”攻击就是明证,这些攻击会引发不良行为。在认识到问题的基础上,我们研究了这些攻击为何成功以及如何创建它们。我们假设了安全训练的两种失败模式:竞争目标和错配泛化。竞争目标出现在模型的能力和安全目标冲突时,而错配泛化则发生在安全训练未能泛化到存在能力的领域时。我们利用这些失败模式指导越狱设计,然后评估了最先进的模型,包括 OpenAI 的 GPT-4 和 Anthropic 的 Claude v1.3,针对现有和新设计的攻击。我们发现,尽管这些模型背后有广泛的红队测试和安全训练努力,但漏洞仍然存在。值得注意的是,利用我们失败模式的新攻击在模型红队测试评估集中的每个不安全请求提示上都成功了,并且优于现有的临时越狱方法。我们的分析强调了安全-能力对等性的必要性——安全机制应与底层模型一样复杂——并反对仅靠扩展就能解决这些安全失败模式的观点。

Large language models trained for safety and harmlessness remain susceptible to adversarial misuse, as evidenced by the prevalence of "jailbreak" attacks on early releases of ChatGPT that elicit undesired behavior. Going beyond recognition of the issue, we investigate why such attacks succeed and how they can be created. We hypothesize two failure modes of safety training: competing objectives and mismatched generalization. Competing objectives arise when a model's capabilities and safety goals conflict, while mismatched generalization occurs when safety training fails to generalize to a domain for which capabilities exist. We use these failure modes to guide jailbreak design and then evaluate state-of-the-art models, including OpenAI's GPT-4 and Anthropic's Claude v1.3, against both existing and newly designed attacks. We find that vulnerabilities persist despite the extensive red-teaming and safety-training efforts behind these models. Notably, new attacks utilizing our failure modes succeed on every prompt in a collection of unsafe requests from the models' red-teaming evaluation sets and outperform existing ad hoc jailbreaks. Our analysis emphasizes the need for safety-capability parity -- that safety mechanisms should be as sophisticated as the underlying model -- and argues against the idea that scaling alone can resolve these safety failure modes.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 15)

阅读逐段中英对照全文 →