arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.16808cs.AI
收藏

自适应且显式安全:触发大型推理模型中的潜在安全意识

Adaptive and Explicit safe: Triggering Latent Safety Awareness in Large Reasoning Models

The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全全国重点实验室);Hangzhou HighTech Zone (Binjiang) Blockchain and Data Security Research Institute, China(杭州高新区(滨江)区块链与数据安全研究院);Li Auto Inc.(理想汽车);Tsinghua University(清华大学);King Abdullah University Of Science And Technology(阿卜杜拉国王科技大学)

Ke Miao, Jiaxin Li, Hongliang Chen, Yuke Hu, Zhan Qin

AI总结:

针对大型推理模型易受越狱攻击的问题,提出Safe Trigger方法,通过SFT显式诱导安全标签触发安全分析,并用DPO优化,显著降低攻击成功率而不影响通用性能。

摘要:

尽管大型推理模型(LRMs)在复杂任务上表现出色,但它们仍然极易受到复杂的越狱攻击和直接的有害查询。为了解决这一脆弱性,先前的工作严重依赖外部手动数据注释进行安全对齐。然而,我们观察到,当原始查询与其自身的推理轨迹一起重新呈现时,LRMs能够固有地识别安全风险——我们将这种能力称为潜在安全意识。为了利用这种安全意识,我们首先采用监督微调(SFT)显式诱导安全标签,以在初始推理内容之后触发对不安全查询的安全分析和指导,同时保留对一般查询的标准响应以确保自适应触发。随后,我们应用直接偏好优化(DPO)进一步增强安全分析和指导的正确性和稳定性。值得注意的是,两个训练阶段所需的响应完全由正在优化的模型生成。通过(Safe Trigger)SFT和DPO,实验结果表明安全性显著增强。例如,DeepSeek-R1-Distill-Llama-8B在有害和越狱基准上的平均攻击成功率(ASR)分别下降了24.65%和36.72%。最后,我们的Safe Trigger方法对通用性能或用户体验几乎没有负面影响。

英文摘要:

While Large Reasoning Models (LRMs) excel at complex tasks, they remain highly vulnerable to sophisticated jailbreaks and direct harmful queries. To address this vulnerability, prior works depend heavily on external manual data annotation for safety alignment. However, we observe that LRMs can inherently identify safety risks when being re-presented with original queries alongside their own reasoning trajectories -- a capability we term Latent Safety Awareness. To leverage this safety awareness, we first employ Supervised Fine-Tuning (SFT) to explicitly induce safe tags to trigger safety analysis and guidance following the initial reasoning content for unsafe queries, while preserving standard responses for general queries to ensure adaptive triggering. Subsequently, we apply Direct Preference Optimization (DPO) to further enhance the correctness and stability of the safety analysis and guidance. Notably, responses required for both training stages are entirely generated by models being optimized. With (Safe Trigger) SFT and DPO, experimental results demonstrate significant safety enhancement. For example, the Attack Success Rate (ASR) of DeepSeek-R1-Distill-Llama-8B, on average, drops 24.65% and 36.72% on harmful and jailbreak benchmarks, respectively. Finally, our Safe Trigger method exerts almost no negative impact on general performance or user experience.

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

↑