Internalizing Safety Understanding in Large Reasoning Models via Verification

Yi Zhang, Yuxin Chen, Leheng Sheng, Dongcheng Zhang, Chaochao Lu, Xiang Wang, An Zhang

TL;DR

This paper introduces SInternal, a novel framework that trains Large Reasoning Models (LRMs) to verify their own outputs for safety, rather than just mimicking safe responses. This "internalized safety understanding" leads to significantly improved robustness against adversarial attacks and serves as a better foundation for further alignment training.

What Problem Does This Paper Address?

Current methods for aligning Large Reasoning Models (LRMs) with safety guidelines often focus on making them appear safe by imitating expert-generated safe responses. This "answer-centric alignment" is largely behavioral and superficial. The authors argue that these models, while seemingly compliant, lack a true understanding of why certain outputs are unsafe. This leads to two key issues:

  1. Vulnerability: Models can be tricked by sophisticated "jailbreaks" that exploit their superficial understanding, leading them to produce harmful content despite alignment.
  2. Poor Generalization: The learned safety behaviors don't transfer well to novel or out-of-domain adversarial attacks.

The core problem is the decoupling of safety generation (producing safe answers) from safety verification (understanding and critiquing one's own outputs). The paper aims to bridge this gap by teaching LRMs to intrinsically verify their own responses.

Methods

The paper proposes a two-stage approach:

  1. SInternal (Safety Internalization via Verification Training):
    • Self-Response Generation: The LRM generates its own responses to prompts, including potentially unsafe ones. This is crucial for learning safety boundaries relevant to its actual output distribution.
  2. Expert Verification Trajectory Construction: An expert model (e.g., Claude-4-Sonnet) evaluates these self-generated responses. It produces a "verification criticize reasoning" trace and a final safety judgment (safe/unsafe).
  3. Supervised Fine-Tuning (SFT): The LRM is trained on these expert verification trajectories. The objective is to teach the LRM to predict the verification reasoning and judgment for its own outputs, effectively internalizing the safety specifications. The key is training on how to verify, not just what to output.
  4. Follow-up Reinforcement Learning (RLVR):
    • After SInternal training, the model is further optimized using reinforcement learning with verifiable safety rewards. The internalized safety understanding from SInternal acts as a strong, coherent foundation for this RL process, leading to more robust alignment.

Datasets

  • SInternal Training Data: Constructed from prompts sampled from:
  • WildJailbreak (Jiang et al., 2024)
    • STAR-1 (Wang et al., 2025)
  • RLVR Training Data: Includes the SInternal prompts plus 3k mathematical problems from DAPO (Yu et al., 2025) to maintain general reasoning capabilities.
  • Evaluation Benchmarks:
    • Safety: StrongREJECT, WildJailbreak, Fortress, Jailbreak-R1, HCOT, Trotter.
  • Over-Refusal: XSTest.
  • General Reasoning: MATH, AIME2024.

Key Insights and Ideas

  • Mimicking vs. Understanding: The paper strongly suggests that simply mimicking safe output patterns (answer-centric alignment) is insufficient. True safety understanding requires the ability to critically evaluate one's own reasoning and outputs.
  • Verification as a Foundation: Training models to verify their own safety first creates a more robust foundation for subsequent alignment techniques like RL. This internalized understanding generalizes better than superficial compliance.
  • Self-Generated Data is Key: Training on the model's own potentially unsafe outputs, rather than solely on expert-curated safe examples, is crucial for learning relevant safety boundaries and improving robustness against jailbreaks.
  • Critique is More Important Than Judgment (for robustness): Ablation studies showed that removing the "critique" (reasoning about why something is unsafe) significantly degraded robustness against unseen jailbreaks, while removing the final "judgment" primarily affected in-domain safety scores.

Key Results

  • Superior Robustness: SInternal consistently achieved lower Attack Success Rates (ASR) across various jailbreak benchmarks, especially for out-of-domain and LRM-specific attacks, compared to SFT-based baselines (SafeChain, STAR-1). For example, on Fortress, SInternal achieved ASRs as low as 1.6% (DS-8B) and 0.6% (DS-14B), significantly outperforming baselines.
  • Improved Verification: SInternal significantly improved the model's ability to proactively trigger safety verification during reasoning (e.g., 50.4% trigger rate vs. 16.0% for Base and 28.4% for STAR-1 on a specific evaluation).
  • Better RL Initialization: When combined with RL (GRPO), SInternal consistently yielded safer post-RL ceilings, outperforming baselines and even showing defense against HCOT, a challenging jailbreak that exploits compliant CoT.
  • Maintained Utility: SInternal did not compromise general reasoning capabilities, showing competitive performance on MATH and AIME2024 benchmarks and avoiding excessive over-refusal on XSTest.
  • Data Efficiency: SInternal achieved higher safety performance than SFT baselines even with 50% less training data.

Limitations and Future Work

  • Dynamic Self-Verification: The current SInternal framework performs verification post-generation. The authors acknowledge that extending this capability to dynamic self-verification during the reasoning process is an open question for future work.
  • Generative vs. Verification Capacities: While SInternal narrows the gap, verification capabilities still tend to lag behind generative capacities in safety. Further research is needed to explore this.
  • Alignment with Human Values: Ensuring that the internalized verification logic remains aligned with human values and is not susceptible to manipulation is critical for responsible AI governance.

Summary updated

BibTeX
@inproceedings{zhang2026internalizing,
  author = {Yi Zhang and Yuxin Chen and Leheng Sheng and Dongcheng Zhang and Chaochao Lu and Xiang Wang and An Zhang},
  title = {{Internalizing Safety Understanding in Large Reasoning Models via Verification}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=VYIegjMzFC},
}

Loading related content...

Figure