arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.02483cs.LGcs.CR
收藏

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

Jailbroken: How Does LLM Safety Training Fail?

UC Berkeley(加州大学伯克利分校)

Alexander Wei, Nika Haghtalab, Jacob Steinhardt

AI总结:

本文提出安全训练的两种失效模式——目标冲突与泛化错配,据此设计新型越狱攻击,并在GPT-4和Claude v1.3上验证其优于现有攻击,强调安全机制需与模型能力对等。

摘要:

经过安全与无害性训练的大型语言模型仍然容易受到对抗性滥用,早期发布的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.

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

↑