2025-05-22 · 进阶 · 自然语言处理

How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study

本文通过实证研究,探讨了如何通过监督微调提升大型推理模型(LRM)的安全性能,发现了直接蒸馏安全响应的局限性,并提出了改进方法,包括针对性地解决安全意识不足、过度思考和推理与答案不一致等问题,以及使用更简短的推理过程来提高安全性。

更新于 2025-05-29。作者:Zhexin Zhang、Xian Qi Loye、Victor Shea-Jay Huang、Junxiao Yang、Qi Zhu、Shiyao Cui、Fei Mi、Lifeng Shang、Yingkang Wang、Hongning Wang、Minlie Huang。

中文摘要

大型推理模型 (LRM) 在数学和编程等需要大量推理的任务中取得了显著成功。然而,它们增强的推理能力并不一定转化为改进的安全性能——在某些情况下,甚至可能降低安全性能。这引发了一个重要的研究问题:我们如何增强 LRM 的安全性?在本文中,我们通过监督微调 (SFT) 对如何增强 LRM 的安全性进行了全面的实证研究。我们的研究始于一个意外的观察结果:直接从 DeepSeek-R1 中提取安全响应未能显著增强安全性。我们分析了这种现象,并确定了导致这种现象的三个关键失败模式。然后,我们证明在数据蒸馏过程中明确解决这些问题可以带来显著的安全改进。接下来,我们探讨了实现安全是否需要漫长而复杂的推理过程。有趣的是,我们发现,只需使用简短的或基于模板的推理过程就能达到相当的安全性能——并且模型比学习更复杂的推理链更容易学习。这些发现促使我们更深入地思考推理在确保安全中的作用。最后,我们发现,在安全微调过程中混合数学推理数据有助于平衡安全性和过度拒绝。总的来说,我们希望我们的实证研究能够更全面地了解如何增强 LRM 的安全性。我们实验中使用的代码和数据已发布在 https://github.com/thu-coai/LRM-Safety-Study。

英文摘要

Large Reasoning Models (LRMs) have achieved remarkable success on reasoning-intensive tasks such as mathematics and programming. However, their enhanced reasoning capabilities do not necessarily translate to improved safety performance-and in some cases, may even degrade it. This raises an important research question: how can we enhance the safety of LRMs? In this paper, we present a comprehensive empirical study on how to enhance the safety of LRMs through Supervised Fine-Tuning (SFT). Our investigation begins with an unexpected observation: directly distilling safe responses from DeepSeek-R1 fails to significantly enhance safety. We analyze this phenomenon and identify three key failure patterns that contribute to it. We then demonstrate that explicitly addressing these issues during the data distillation process can lead to substantial safety improvements. Next, we explore whether a long and complex reasoning process is necessary for achieving safety. Interestingly, we find that simply using short or template-based reasoning process can attain comparable safety performance-and are significantly easier for models to learn than more intricate reasoning chains. These findings prompt a deeper reflection on the role of reasoning in ensuring safety. Finally, we find that mixing math reasoning data during safety fine-tuning is helpful to balance safety and over-refusal. Overall, we hope our empirical study could provide a more holistic picture on enhancing the safety of LRMs. The code and data used in our experiments are released in https://github.com/thu-coai/LRM-Safety-Study.

解读

一句话总结

本文通过实证研究,探讨了如何通过监督微调提升大型推理模型(LRM)的安全性能,发现了直接蒸馏安全响应的局限性,并提出了改进方法,包括针对性地解决安全意识不足、过度思考和推理与答案不一致等问题,以及使用更简短的推理过程来提高安全性。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt