2025-05-27 · 专家 · 机器学习 · 自然语言处理

Lifelong Safety Alignment for Language Models

该论文提出了一种终身安全对齐框架,通过元攻击者和防御者之间的对抗性演化,使大型语言模型能够持续适应新的越狱策略,从而在开放环境中更安全、可靠地部署。

更新于 2025-05-28。作者:Haoyu Wang、Zeyu Qin、Yifei Zhao、Chao Du、Min Lin、Xueqian Wang、Tianyu Pang。

中文摘要

大语言模型(LLMs)取得了令人印象深刻的进展,但它们不断增长的能力同时也使它们面临着旨在绕过安全对齐的高度灵活的越狱攻击。尽管许多现有防御措施集中在已知类型的攻击上,但为LLMs准备应对部署期间可能出现的未知攻击更为关键。为了解决这个问题,我们提出了一种终身安全对齐框架,使LLMs能够持续适应新的和不断演变的越狱策略。我们的框架引入了两个组件之间的竞争设置:一个元攻击者,被训练主动发现新的越狱策略;以及一个防御者,被训练来抵抗这些策略。为了有效地预热元攻击者,我们首先利用GPT-4o API从大量与越狱相关的科研论文中提取关键洞见。通过迭代训练,第一次迭代的元攻击者在RR上实现了73%的攻击成功率(ASR),在LAT上使用单回合攻击实现了57%的迁移ASR。同时,防御者逐步提高其鲁棒性,最终将元攻击者的成功率降低到仅有7%,使LLMs在开放式环境中更加安全和可靠地部署。代码可在https://github.com/sail-sg/LifelongSafetyAlignment获取。

英文摘要

LLMs have made impressive progress, but their growing capabilities also expose them to highly flexible jailbreaking attacks designed to bypass safety alignment. While many existing defenses focus on known types of attacks, it is more critical to prepare LLMs for unseen attacks that may arise during deployment. To address this, we propose a lifelong safety alignment framework that enables LLMs to continuously adapt to new and evolving jailbreaking strategies. Our framework introduces a competitive setup between two components: a Meta-Attacker, trained to actively discover novel jailbreaking strategies, and a Defender, trained to resist them. To effectively warm up the Meta-Attacker, we first leverage the GPT-4o API to extract key insights from a large collection of jailbreak-related research papers. Through iterative training, the first iteration Meta-Attacker achieves a 73% attack success rate (ASR) on RR and a 57% transfer ASR on LAT using only single-turn attacks. Meanwhile, the Defender progressively improves its robustness and ultimately reduces the Meta-Attacker's success rate to just 7%, enabling safer and more reliable deployment of LLMs in open-ended environments. The code is available at https://github.com/sail-sg/LifelongSafetyAlignment.

解读

一句话总结

该论文提出了一种终身安全对齐框架,通过元攻击者和防御者之间的对抗性演化,使大型语言模型能够持续适应新的越狱策略,从而在开放环境中更安全、可靠地部署。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源