arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.08234cs.AIcs.LG
收藏

延续与拒绝之间的斗争:对LLMs中延续触发突破的机理分析

The Struggle Between Continuation and Refusal: A Mechanistic Analysis of the Continuation-Triggered Jailbreak in LLMs

School of Computer Science & Technology, Beijing Institute of Technology(北京理工大学计算机科学与技术学院)

Yonghong Deng, Zhen Yang, Ping Jian, Xinyue Zhang, Zhongbin Guo, Chengzhi Li, Junxi Yin

AI总结:

本文研究了LLMs中延续触发突破现象,揭示了模型内在延续驱动与安全防御之间的竞争机制,为提升模型安全性提供了新视角。

摘要:

随着大型语言模型(LLMs)的快速发展,LLMs的安全性已成为关键问题。尽管在安全性对齐方面做出了大量努力,当前的LLMs仍然容易受到突破攻击。然而,此类漏洞的根本原因仍不明确,需要在学术和工业界进行严格的研究,以调查突破机制。在本工作中,我们专注于一种延续触发突破现象,即简单地将延续触发指令后缀移动可以显著提高突破成功率。为了揭示这一现象的内在机制,我们对注意头层面进行了全面的机理可解释性分析。通过因果干预和激活缩放,我们表明这种突破行为主要源于模型内在的延续驱动与通过对齐训练获得的安全防御之间的竞争。此外,我们对识别出的安全关键注意头进行了详细行为分析,揭示了不同模型架构中安全头在功能和行为上的显著差异。这些发现为理解和解释LLMs中的突破行为提供了新的机理视角,为提高模型安全性提供了理论见解和实际意义。

英文摘要:

With the rapid advancement of large language models (LLMs), the safety of LLMs has become a critical concern. Despite significant efforts in safety alignment, current LLMs remain vulnerable to jailbreaking attacks. However, the root causes of such vulnerabilities are still poorly understood, necessitating a rigorous investigation into jailbreak mechanisms across both academic and industrial communities. In this work, we focus on a continuation-triggered jailbreak phenomenon, whereby simply relocating a continuation-triggered instruction suffix can substantially increase jailbreak success rates. To uncover the intrinsic mechanisms of this phenomenon, we conduct a comprehensive mechanistic interpretability analysis at the level of attention heads. Through causal interventions and activation scaling, we show that this jailbreak behavior primarily arises from an inherent competition between the model's intrinsic continuation drive and the safety defenses acquired through alignment training. Furthermore, we perform a detailed behavioral analysis of the identified safety-critical attention heads, revealing notable differences in the behaviors of safety heads across different model architectures. Grounded in these mechanistic findings, we propose Head Competition Steering (HCS), a mechanistically grounded inference-time strategy that explicitly leverages the competition between safety heads and continuation heads to suppress harmful generation, and further distill its behavioral signal into a student model via knowledge distillation, achieving inference-time safety improvements without additional computational overhead.

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

↑