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

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

TL;DR

Directly distilling safe responses from Large Reasoning Models (LRMs) like DeepSeek-R1 into smaller models fails to guarantee safety due to hidden "risky reasoning patterns" like weak vacillation. This paper demonstrates that proactively mitigating these patterns or employing simpler, shorter safety reasoning chains can dramatically improve safety alignment without sacrificing core mathematical or coding capabilities.

What Problem Does This Paper Address?

While Large Reasoning Models (LRMs) have achieved state-of-the-art performance on complex tasks like mathematics and programming, their extended reasoning capabilities do not automatically make them safer. In fact, longer chain-of-thought (CoT) processes can sometimes degrade safety, leading models to generate detailed malicious plans during intermediate steps.

Standard safety alignment often relies on Supervised Fine-Tuning (SFT) via data distillation—training smaller models on safe outputs generated by larger models. However, the authors discover a counterintuitive gap: directly distilling "safe" responses from DeepSeek-R1 fails to significantly enhance safety. This paper investigates why direct distillation fails and explores how to construct optimal safety reasoning data for LRMs.

Methods

The authors first analyze distilled reasoning traces and identify five distinct risky reasoning patterns that compromise safety:

  1. Lack of safety awareness: Failing to recognize the harmful nature of a query.
  2. Overthinking: Problematic elaboration, further split into:
  3. Strong vacillation: Hesitating over whether to fulfill the core harmful intent.
  4. Weak vacillation: Hesitating over complying with benign framing elements (e.g., adopting a roleplay persona required by a jailbreak prompt).
  5. Harmful additions: Unintentionally providing dangerous details under an educational or fictional context.
  6. Reasoning-answer inconsistency: The reasoning process concludes the prompt is unsafe, but the final answer complies anyway.

To address these, the authors propose and evaluate several data construction strategies:

  • Improved CoT: An enhanced distillation prompt that explicitly instructs the source model to avoid overthinking, ignore hypothetical/fictional framing, and maintain strict consistency.
  • Short CoT: Generating concise, focused safety reasoning steps using GPT-4o.
  • Template CoT: Evaluating safety against eight predefined harmful categories via in-context learning.
  • No CoT: Eliminating reasoning entirely, providing only a direct refusal.

Datasets

  • Training Data: Constructed by pairing 200 raw harmful questions from HarmBench with 20 manual jailbreak templates (4,000 total queries). Responses were filtered for safety using ReasoningShield, resulting in a 1,000-sample training set. To prevent over-refusal, 100 benign queries from XSTest were mixed in.
  • Safety Evaluation: A curated subset of 50 unique harmful questions from AdvBench, evaluated under three attack settings: None, Persuasive Adversarial Prompts (PAP), and Prompt Automatic Iterative Refinement (PAIR). XSTest (150 queries) was used to evaluate the over-refusal rate.
  • Reasoning Evaluation: MATH-500, AIME 2024, and LiveCodeBench to ensure safety tuning did not degrade core capabilities.

Key Insights and Ideas

  • The Weak Vacillation Paradox: Standard safety filters like ReasoningShield successfully remove obvious hazards (like harmful additions), but they struggle with weak vacillation. Because the model ultimately refuses the core harm, the filter marks it as safe. Consequently, the proportion of weak vacillation samples actually doubles after filtering, training the model to entertain adversarial framing at test time.
Risky pattern distribution before and after filtering
  • Safety Doesn't Need Deep Reasoning: Unlike math or coding, safety-critical scenarios do not benefit from long, intricate reasoning chains. Short CoT and Template CoT perform on par with long-form reasoning. Elaboration often introduces unnecessary considerations (e.g., wondering if the user is "merely curious"), which increases the attack surface for jailbreaks.
  • Benign Data is Mandatory: Fine-tuning an LRM purely on safety data causes a massive spike in over-refusal. Mixing in a tiny fraction of benign data (just 100 samples) acts as a regularizer, dropping over-refusal rates significantly while maintaining robust safety defenses.

Key Results

  • Eliminating Weak Vacillation Works: Removing weak vacillation from the training data caused the PAIR Attack Success Rate (ASR) on DeepSeek-R1-Distill-Qwen-7B to plummet from 45.0% to 21.0%.
ASR changes when removing risky patterns
  • Improved CoT vs. Default: Across four models (7B to 32B parameters), the Improved CoT dataset consistently outperformed direct distillation (Default CoT). For the Qwen-7B distilled model, the average ASR dropped from 38.0% to 6.7%.
  • High Data Efficiency: The authors' method achieved safety performance comparable to or better than state-of-the-art baselines (like RealSafe-R1) using only 1,000 training samples, compared to the 15,000 samples required by prior work, while maintaining a lower over-refusal rate.
  • Reasoning Preservation: Across all models and safety configurations, performance on MATH-500, AIME, and LiveCodeBench remained stable and close to the unaligned base models.

Limitations and Future Work

  • Model Scale Constraints: Due to limited computational resources, the detailed ablation studies (dataset size, learning rate sensitivity, benign data mix) were conducted exclusively on the 7B parameter model variant.
  • SFT Focus: This empirical study focuses entirely on Supervised Fine-Tuning (SFT) strategies. The authors leave a comprehensive investigation into Reinforcement Learning (RL)-based safety alignment for future work.

Summary updated

BibTeX
@inproceedings{zhang2026how,
  author = {Zhexin Zhang and Xian Qi Loye and Victor Shea-Jay Huang and Junxiao Yang and Qi Zhu and Shiyao Cui and Fei Mi and Lifeng Shang and Yingkang Wang and Hongning Wang and Minlie Huang},
  title = {{How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.936},
}
Figure