Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Yichi Zhang, Zihao Zeng, Dongbai Li, Yao Huang, Zhijie Deng, Yinpeng Dong• 2025

Related benchmarks

TaskDatasetResultRank
Code GenerationHumanEval
Pass@179.2
171
Mathematical ReasoningMinerva
Pass@135.8
58
Multitask KnowledgeMMLU
Accuracy72.7
53
Scientific ReasoningGPQA Diamond--
48
Mathematical ReasoningMATH 500
Pass@189.8
41
Jailbreak SafetyWildJailbreak
Reasoning Harmful Ratio47.1
17
Jailbreak SafetyJailbreakBench
Reasoning Harmful Ratio18
17
Safety EvaluationStrongReject (SR)
Reasoning Harmful Ratio34.7
17
Safety EvaluationAggregate JBB, SR, WJ
Reasoning Average34.2
17
Truthful Question AnsweringTruthfulQA
Accuracy (TruthfulQA)53.4
12
Showing 10 of 18 rows

Other info

Follow for update