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

为何受保护的船只仍会搁浅?对齐大语言模型的安全机制往往锚定在模板区域

Why Safeguarded Ships Run Aground? Aligned Large Language Models' Safety Mechanisms Tend to Be Anchored in The Template Region

Department of Computing, The Hong Kong Polytechnic University(计算系,香港理工大学);Zhejiang University(浙江大学)

Chak Tou Leong, Qingyu Yin, Jian Wang, Wenjie Li

AI总结:

本文提出模板锚定安全对齐问题,通过大量实验和机制分析揭示对齐LLMs的安全决策过度依赖模板区域,并证明解耦安全机制与模板区域可有效缓解越狱攻击。

摘要:

大语言模型(LLMs)的安全对齐仍然脆弱,因为其初始行为甚至可以被相对简单的攻击轻易越狱。由于在输入指令与初始模型输出之间填充固定模板是现有LLMs的常见做法,我们假设该模板是其脆弱性背后的关键因素:LLMs与安全相关的决策过度依赖来自模板区域的聚合信息,这在很大程度上影响了这些模型的安全行为。我们将这一问题称为模板锚定安全对齐。在本文中,我们进行了大量实验,并验证了模板锚定安全对齐在各种对齐LLMs中普遍存在。我们的机制分析展示了它如何导致模型在遇到推理时越狱攻击时表现出易感性。此外,我们表明,将安全机制与模板区域解耦在缓解越狱攻击脆弱性方面具有前景。我们鼓励未来研究开发更鲁棒的安全对齐技术,以减少对模板区域的依赖。

英文摘要:

The safety alignment of large language models (LLMs) remains vulnerable, as their initial behavior can be easily jailbroken by even relatively simple attacks. Since infilling a fixed template between the input instruction and initial model output is a common practice for existing LLMs, we hypothesize that this template is a key factor behind their vulnerabilities: LLMs' safety-related decision-making overly relies on the aggregated information from the template region, which largely influences these models' safety behavior. We refer to this issue as template-anchored safety alignment. In this paper, we conduct extensive experiments and verify that template-anchored safety alignment is widespread across various aligned LLMs. Our mechanistic analyses demonstrate how it leads to models' susceptibility when encountering inference-time jailbreak attacks. Furthermore, we show that detaching safety mechanisms from the template region is promising in mitigating vulnerabilities to jailbreak attacks. We encourage future research to develop more robust safety alignment techniques that reduce reliance on the template region.

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

↑