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

THINKSAFE: 为推理模型生成的自我安全对齐

ThinkSafe: Self-Generated Safety Alignment for Reasoning Models

KAIST(韩国科学技术院);KRAFTON(KRAFTON公司);UC Berkeley(加州大学伯克利分校)

Seanie Lee, Sangwoo Park, Yumin Choi, Gyeongman Kim, Minki Kang, Jihun Yun, Sung Ju Hwang, Dongmin Park, Jongho Park

AI总结:

THINKSAFE通过自我生成对齐框架提升推理模型的安全性,无需外部教师,实验表明其在安全性和推理能力上优于GRPO,计算成本显著降低。

摘要:

大型推理模型(LRMs)通过在推理任务上利用强化学习(RL)生成长链推理(CoT)实现卓越性能。然而,这种过度优化往往优先考虑合规性,使模型易受有害提示攻击。为缓解此安全退化,近期方法依赖外部教师蒸馏,但此方法引入分布差异,损害原生推理能力。我们正式将安全再对齐定义为KL投影到安全单纯形,并证明学生自身经过安全过滤的分布是唯一的KL最优目标,而任何外部教师都会带来不可消除的KL惩罚。受此分析启发,我们提出THINKSAFE,一种自我生成对齐框架,可在不依赖外部教师的情况下恢复安全性。我们的关键发现是尽管合规性抑制了安全机制,模型往往保留潜在知识以识别危害。THINKSAFE通过轻量级拒绝引导解锁此能力,既保持KL最优目标又提高接受率。在DeepSeek-R1-Distill和Qwen3上的实验表明,THINKSAFE显著提升安全性同时保持推理能力,且在安全性和推理能力上优于GRPO,计算成本低一个数量级。代码、模型和数据集可在https://github.com/seanie12/ThinkSafe和https://huggingface.co/Seanie-lee/collections获取。

英文摘要:

Large reasoning models achieve strong performance through reinforcement learning but can suffer safety degradation. External teacher distillation can restore safety yet may compromise reasoning performance. We formalize safety realignment as a KL projection: the student's native filter-accepted distribution is uniquely KL-optimal, while teacher targets incur excess KL when they differ. Guided by this analysis, we propose ThinkSafe, which generates safety-alignment data from the frozen student without external teachers. Refusal steering elicits safety reasoning, and a safety guard filters the responses before offline fine-tuning. Our analysis bounds steering-induced target distortion and gives a sufficient condition for lower average target KL than teacher distillation. Experiments on DeepSeek-R1-Distill and Qwen3 show substantial safety improvements with competitive reasoning performance. On Qwen3-0.6B, ThinkSafe achieves better safety and comparable reasoning to GRPO in about one-seventh of the wall-clock time, including data generation. Code, models, and datasets are available at https://github.com/seanie12/ThinkSafe and https://huggingface.co/Seanie-lee/collections.

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

↑