paper-with-me

홈 › Papers

RealSafe-R1: Safety-Aligned DeepSeek-R1 without Compromising Reasoning Capability

2025-04-14 · Yichi Zhang, Zihao Zeng, Dongbai Li, Yao Huang, Zhijie Deng, Yinpeng Dong

Large Reasoning Models (LRMs), such as OpenAI o1 and DeepSeek-R1, have been rapidly progressing and achieving breakthrough performance on complex reasoning tasks such as mathematics and coding. However, the open-source R1 models have raised safety concerns in wide applications, such as the tendency to comply with malicious queries, which greatly impacts the utility of these powerful models in their applications. In this paper, we introduce RealSafe-R1 as safety-aligned versions of DeepSeek-R1 distilled models. To train these models, we construct a dataset of 15k safety-aware reasoning trajectories generated by DeepSeek-R1, under explicit instructions for expected refusal behavior. Both quantitative experiments and qualitative case studies demonstrate the models' improvements, which are shown in their safety guardrails against both harmful queries and jailbreak attacks. Importantly, unlike prior safety alignment efforts that often compromise reasoning performance, our method preserves the models' reasoning capabilities by maintaining the training data within the original distribution of generation. Model weights of RealSafe-R1 are open-source at https://huggingface.co/RealSafe.

📄 PDF Abstract BibTeX arXiv:2504.10081

Code (0)

등록된 구현이 없습니다.

Tasks

Safety Alignment

Similar Papers 제목 키워드 기반

H-CoT: Hijacking the Chain-of-Thought Safety Reasoning Mechanism to Jailbreak Large Reasoning Models, Including OpenAI o1/o3, DeepSeek-R1, and Gemini 2.0 Flash Thinking

2025-02-18 · Martin Kuo, Jianyi Zhang, Aolin Ding, Qinsi Wang 외

Large Reasoning Models (LRMs) have recently extended their powerful reasoning capabilities to safety checks-using chain-of-thought reasoning to decide whether a request should be answered. While this new approach offers …

DeepSeek-R1 Thoughtology: Let's think about LLM Reasoning

2025-04-02 · Sara Vera Marjanović, Arkil Patel, Vaibhav Adlakha, Milad Aghajohari 외

Large Reasoning Models like DeepSeek-R1 mark a fundamental shift in how LLMs approach complex problems. Instead of directly producing an answer for a given input, DeepSeek-R1 creates detailed multi-step reasoning chains,…

Towards Comprehensive Post Safety Alignment of Large Language Models via Safety Patching

2024-05-22 · Weixiang Zhao, Yulin Hu, Zhuojun Li, Yang Deng 외

Safety alignment of large language models (LLMs) has been gaining increasing attention. However, current safety-aligned LLMs suffer from the fragile and imbalanced safety mechanisms, which can still be induced to generat…

Safety Alignment

Decoupled Alignment for Robust Plug-and-Play Adaptation

2024-06-03 · Haozheng Luo, Jiahao Yu, Wenxin Zhang, Jialong Li 외

We introduce a low-resource safety enhancement method for aligning large language models (LLMs) without the need for supervised fine-tuning (SFT) or reinforcement learning from human feedback (RLHF). Our main idea is to …

Knowledge Distillation

Safety Evaluation and Enhancement of DeepSeek Models in Chinese Contexts

2025-03-18 · Wenjing Zhang, Xuejiao Lei, Zhaoxiang Liu, Limin Han 외

DeepSeek-R1, renowned for its exceptional reasoning capabilities and open-source strategy, is significantly influencing the global artificial intelligence landscape. However, it exhibits notable safety shortcomings. Rece…