arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.08930cs.AI
收藏

通过验证内部化安全理解以提升大推理模型

Internalizing Safety Understanding in Large Reasoning Models via Verification

National University of Singapore(国立新加坡大学);University of Science and Technology of China(中国科学技术大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Yi Zhang, Yuxin Chen, Leheng Sheng, Dongcheng Zhang, Chaochao Lu, Xiang Wang, An Zhang

AI总结:

本文提出Safety Internal框架,通过训练模型在安全验证任务中自我批判生成答案,提升模型对自身输出安全性的判断能力,增强对抗性突破的鲁棒性。

摘要:

尽管显式链式思考(CoT)增强了大推理模型(LRMs)的能力,但其生成了更具风险的最终答案。当前对齐范式主要依赖外部强制合规,优化模型以检测恶意提示,而非评估自身输出的安全性。我们主张这种做法仍停留在行为层面:我们的实证分析显示,看似对齐的模型缺乏内在安全理解,常常无法验证自身响应的安全性,仍易受对抗性突破攻击。为解决这一根本限制,我们提出Safety Internal(SInternal),一个通过训练LRMs仅在安全验证任务上,利用专家推理轨迹来批判自身生成答案的框架。我们证明学习验证能显著提升响应安全性,大幅增强对抗性突破的鲁棒性。此外,当与强化学习结合时,SInternal相比标准监督微调成为更优的初始化方法,表明内部化安全理解比单纯模仿安全行为更能建立更稳固的对齐基础。我们的代码可在https://github.com/AlphaLab-USTC/SInternal获取。

英文摘要:

While explicit Chain-of-Thought (CoT) empowers large reasoning models (LRMs), it enables the generation of riskier final answers. Current alignment paradigms primarily rely on externally enforced compliance, optimizing models to detect malicious prompts rather than evaluating the safety of their own outputs. We argue that this approach remains largely behavioral: our empirical analysis reveals that ostensibly aligned models lack intrinsic safety understanding, often failing to verify their own response safety and remaining vulnerable to adversarial jailbreaks. To address this fundamental limitation, we propose Safety Internal (SInternal), a framework that internalizes safety specifications by training LRMs exclusively on safety verification tasks to critique their own generated answers using expert reasoning trajectories. We demonstrate that learning to verify induces a strong generalization for response safety, significantly enhancing robustness against out-of-domain jailbreaks. Furthermore, when combined with reinforcement learning, SInternal serves as a superior initialization compared to standard supervised fine-tuning, suggesting that internalizing safety understanding creates a more robust foundation for alignment than merely mimicking safe behaviors. Our codes are available at https://github.com/AlphaLab-USTC/SInternal

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

↑