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

拒绝悬崖:安全对齐如何在推理中失效?

Refusal Falls off a Cliff: How Safety Alignment Fails in Reasoning?

Zhejiang University(浙江大学);Hong Kong Polytechnic University(香港理工大学);East China Normal University(华东师范大学);Southern University of Science and Technology(南方科技大学);Renmin University(中国人民大学);Nanyang Technological University(南洋理工大学);Xiaohongshu Inc.(小红书公司);INSAIT

Qingyu Yin, Chak Tou Leong, Linyi Yang, Wenxuan Huang, Wenjie Li, Xiting Wang, Jaehong Yoon, YunXing, XingYu, Jinjin Gu

AI总结:

本文发现推理模型在输出前存在“拒绝悬崖”现象,即拒绝意图被抑制,并通过消融3%的注意力头将攻击成功率降至10%以下,提出Cliff-as-a-Judge方法用1.7%数据高效修复安全对齐。

摘要:

具有多步推理能力的大型推理模型(LRMs)展现了卓越的问题解决能力,然而它们也表现出令人担忧的安全漏洞,这些漏洞至今仍未被充分理解。在本工作中,我们通过机制可解释性的视角,研究推理模型中安全对齐为何失效。我们采用线性探针方法追踪各词元位置上的拒绝意图,发现了一个被称为“拒绝悬崖”的显著现象:许多对齐不良的推理模型能正确识别有害提示,并在其思考过程中保持强烈的拒绝意图,但在输出生成前的最后几个词元处,拒绝分数急剧下降。这表明这些模型并非本质上不安全;相反,它们的拒绝意图被系统性抑制。通过因果干预分析,我们识别出一组稀疏的注意力头,它们对拒绝行为有负面贡献。仅消融这些头中的3%就能将攻击成功率降至10%以下。基于这些机制洞见,我们提出了“悬崖即裁判”(Cliff-as-a-Judge),一种新颖的数据选择方法,该方法识别出表现出最大拒绝悬崖的训练样本,以高效修复推理模型的安全对齐。该方法仅使用普通安全训练数据的1.7%即实现了相当的安全改进,展示了安全对齐中的“少即是多”效应。

英文摘要:

Large reasoning models (LRMs) with multi-step reasoning capabilities have shown remarkable problem-solving abilities, yet they exhibit concerning safety vulnerabilities that remain poorly understood. In this work, we investigate why safety alignment fails in reasoning models through a mechanistic interpretability lens. Using a linear probing approach to trace refusal intentions across token positions, we discover a striking phenomenon termed as \textbf{refusal cliff}: many poorly-aligned reasoning models correctly identify harmful prompts and maintain strong refusal intentions during their thinking process, but experience a sharp drop in refusal scores at the final tokens before output generation. This suggests that these models are not inherently unsafe; rather, their refusal intentions are systematically suppressed. Through causal intervention analysis, we identify a sparse set of attention heads that negatively contribute to refusal behavior. Ablating just 3\% of these heads can reduce attack success rates below 10\%. Building on these mechanistic insights, we propose \textbf{Cliff-as-a-Judge}, a novel data selection method that identifies training examples exhibiting the largest refusal cliff to efficiently repair reasoning models' safety alignment. This approach achieves comparable safety improvements using only 1.7\% of the vanilla safety training data, demonstrating a less-is-more effect in safety alignment.

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

↑