SAVeR$^2$: Reasoning-based Safety Alignment for Large Reasoning Models via Verifiable Rewards

Yichen Sun, Lin Jianan, Linbo Jiang, Shiyu Wang, Zhibo Wang, Zhixuan Chu

TL;DR

Large Reasoning Models (LRMs) like DeepSeek-R1 solve complex problems by "thinking out loud," yet this internal monologue can accidentally leak dangerous details even when the final answer politely refuses a malicious prompt. Worse, traditional safety guardrails usually make these models worse at math and coding—a frustrating phenomenon known as the "safety tax." SAVeR$^2$ solves both headaches by teaching models to actively reason about safety using fine-grained rewards and a clever gradient-steering trick that protects their intelligence.

What Problem Does This Paper Address?

When we ask a standard LLM a question, we primarily police its final output. But Large Reasoning Models (LRMs) generate long, explicit Chain-of-Thought (CoT) reasoning traces before answering. During this self-reflective deliberation, an LRM might talk itself into accommodating a jailbreak, or inadvertently spill harmful instructions inside its "thought bubble" right before refusing the request in its final answer.

Existing safety methods struggle here for three reasons:

  1. Fragility: Force-feeding models pre-written "safe" thought processes doesn't generalize well against clever, adversarial jailbreaks.
  2. Coarse Rewards: Judging an entire thought-plus-answer output with a single "safe/unsafe" score invites reward hacking and unfaithful reasoning.
  3. The Safety Tax: Optimizing heavily for safety degrades general reasoning skills (like coding and math) and makes the model paranoid, causing it to refuse harmless prompts ("over-refusal").
Figure 1: Comparison of SAVeR2 with exist- ing LRM safety alignment methods. SAVeR2 surpasses these methods on both safety datasets (red) and general datasets (blue).

Methods

Instead of treating safety as a muzzle, SAVeR$^2$ treats safety as a reasoning problem. Built atop standard Group Relative Policy Optimization (GRPO), the framework introduces a three-stage pipeline alongside several novel mechanisms:

Overview of the three-stage SAVeR2 training pipeline.
  • Safety Reasoning Warm-up: Standard supervised fine-tuning (SFT) on just 100 prompts teaches the base model a structured habit: Assess $\rightarrow$ Identify $\rightarrow$ Justify $\rightarrow$ Refuse $\rightarrow$ Redirect.
  • Difficulty-Aware Data Selection (Novel): If training prompts are too easy, learning gradients vanish; if too hard, training destabilizes. The authors score candidate prompts and use a Gaussian-weighted sampler to pick "Goldilocks" problems tailored to each model's exact scale.
  • Fine-Grained Verifiable Rewards (Novel): Rather than one blunt score, an LLM grader (GPT-4o) evaluates harmful prompts across four distinct dimensions using pre-generated guidelines: (1) explicit safety assessment in the CoT, (2) overall non-maliciousness in both thought and answer, (3) consistency between thought and answer, and (4) constructive usefulness. Benign prompts that look edgy get a parallel reward structure so the model learns to reason: "Wait, this is actually harmless—I should help."
  • Reasoning-Preserving Gradient Projection (Novel): During mixed-data RL training, safety updates ($g_s$) and general reasoning updates ($g_r$) can pull parameters in opposite directions (when their inner product $\langle g_s, g_r \rangle < 0$). The authors analytically project the safety gradient so it never opposes the reasoning gradient at the first order, and filter batches to pick reasoning samples with the lowest conflict scores so the safety signal isn't overly truncated.

Datasets

The authors do not introduce new benchmarks, instead curating a comprehensive mix of existing datasets:

  • Training: Safety warm-up uses STAR-1; RL safety pools draw from JailBreakHub, ALERT, and WildGuardMix. General reasoning pools combine Polaris (math), Open-R1 (code), and WebInstruct (multi-domain), while FalseReject supplies benign look-alike prompts.
  • Evaluation: Safety is tested on StrongReject, WildJailBreak, XSTest, and Beyond Safe Answer (BSA—which specifically checks CoT trace safety). Over-refusal is measured on benign subsets of XSTest, FalseReject, and OKTest. General intelligence is tracked via AIME24, MATH-500, LiveCodeBench, HumanEval, and MMLU.

Key Insights and Ideas

  • The "Safety Tax" is geometric: Degraded reasoning isn't an unavoidable philosophical trade-off of alignment; at each optimization step, it comes down to negative inner products between task gradients. Projecting out that conflict mathematically bounds reasoning loss.
  • Safety helps curb paranoia: By forcing the model to run the exact same explicit safety-check routine on edgy-looking benign prompts—concluding they are safe before answering—the model stops reflexively refusing harmless requests.
  • Protecting the thought bubble matters: Frontier models often achieve >95% safety on final answers while failing over half the time in their CoT traces. True LRM alignment requires grading the journey, not just the destination.

Key Results

SAVeR$^2$ was tested across DeepSeek-R1-Distill-Qwen models (1.5B, 7B, 14B) all the way up to the massive DeepSeek-R1-671B—the first safety alignment training reported at this ultra-large reasoning scale.

  • Superior Safety, Zero Tax: On the 14B model, SAVeR$^2$ hits 94.28% average safety (jumping from the base model's 65.80% and beating STAR-1's 87.22%), while general reasoning slightly improves from 73.35% to 73.84%.
  • Safer Internal Monologues: On the 671B model, SAVeR$^2$ boosts the Think@1 score (safe reasoning trace) on BSA from 37.98% to 72.99%, handily outperforming Claude-4-Sonnet (48.89%) and Gemini-2.5-Flash (40.46%), while preserving an 85.29% MMLU score.
  • Less Over-Refusal: Adding benign verifiable rewards cuts the average False Reject Rate from 47.67% down to 22.33% while keeping safety above 96%.
Table 3: Comparison of SAVeR2-671B with other LLMs on BSA and MMLU. Best results are bolded and second-best results are underlined.

Limitations and Future Work

Not discussed in the paper. (Note: Only the main text through page 11 was provided; limitations and broader impacts are likely located in the omitted appendices.)

Summary updated

Abstract

Large Reasoning Models (LRMs) have achieved impressive performance via explicit Chain-of-Thought (CoT) reasoning, yet this process introduces critical safety risks. We formalize LRM safety objectives as requiring non-malicious reasoning and answers, safety consistency, and explicit intent identification. We argue that existing alignment methods suffer from poor adversarial generalization, a significant ``safety tax'' on reasoning, and unfaithful coarse-grained rewards, primarily due to their neglect of the LRM's intrinsic reasoning capabilities for safety. To address these, we propose \textbf{SAVeR$^2$}, a novel \textbf{S}afety \textbf{A}lignment method via \textbf{R}ewards with \textbf{R}easoning capability. SAVeR$^2$ decomposes the safety objective into four fine-grained verifiable reward signals and utilizes a difficulty-aware data selection strategy to stabilize training. Crucially, we introduce a reasoning-preserving gradient projection mechanism that analytically resolves conflicts between safety and reasoning gradients, effectively eliminating the safety tax. Extensive experiments on models ranging from 1.5B to 671B demonstrate that SAVeR$^2$ achieves superior safety performance and significantly lower over-refusal rates across multiple benchmarks without compromising general reasoning capabilities.
BibTeX
@inproceedings{sun2026saver,
  author = {Yichen Sun and LIN JIANAN and Linbo Jiang and Shiyu Wang and Zhibo Wang and Zhixuan Chu},
  title = {{SAVeR$^2$: Reasoning-based Safety Alignment for Large Reasoning Models via Verifiable Rewards}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=k4DnfPDu16},
}
Figure