2025-02-20 · 专家 · 自然语言处理 · 机器学习

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

该论文揭示了大型语言模型(LLMs)中模板锚定安全对齐(TASA)的问题,即LLMs的安全机制过度依赖于模板区域的信息,导致在遇到推理时间越狱攻击时容易受到攻击。

更新于 2025-02-20。作者:Chak Tou Leong、Qingyu Yin、Jian Wang、Wenjie Li。

中文摘要

大型语言模型(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.

解读

一句话总结

该论文揭示了大型语言模型(LLMs)中模板锚定安全对齐(TASA)的问题,即LLMs的安全机制过度依赖于模板区域的信息,导致在遇到推理时间越狱攻击时容易受到攻击。

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

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

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

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

来源