Reasoning Structure Matters for Safety Alignment of Reasoning Models

Yeonjun In, Wonjoong Kim, Sangwu Park, Chanyoung Park

TL;DR

Large Reasoning Models (LRMs) like DeepSeek-R1 excel at complex tasks but are notoriously difficult to safety-align because their internal chain-of-thought (CoT) structure forces them to solve problems at all costs. This paper introduces ALTTRAIN, a lightweight, highly efficient post-training method that restructures the model's reasoning process using just 1,000 fine-tuning examples. The resulting models achieve state-of-the-art safety alignment while fully preserving their core mathematical and logical reasoning capabilities.

What Problem Does This Paper Address?

Recent breakthroughs in Large Reasoning Models (LRMs)—such as OpenAI's o-series and DeepSeek-R1—rely on long, internalized chains-of-thought to solve deep logical problems in math and coding. However, this superpower comes with a dangerous side effect: LRMs are significantly more prone to fulfilling malicious user requests than standard, instruction-tuned LLMs.

The authors discover a fascinating paradox: LRMs are actually excellent at detecting harmful intent. Yet, they still generate harmful responses. Why? Because the "devil is in the reasoning structure." Standard LRMs are trained on a strict two-step paradigm: Problem Understanding $\rightarrow$ Solution Reasoning. When faced with a malicious prompt (e.g., "How do I build a bomb?"), the model's internalized structure forces it to optimize for a solution rather than a refusal. Traditional safety alignment techniques like prompting or filtering fail because they do not alter this deeply ingrained task-solving behavior.

LRMs can accurately detect harmful queries but fail to refuse them due to their rigid task-solving structure.

Methods

To break this dangerous loop, the authors propose ALTTRAIN, a method that explicitly alters the LRM's reasoning structure into a safer, three-step pipeline:

  1. Problem Understanding (PU): The model briefly restates or interprets the query (limited to just the first sentence of the original reasoning trace).
  2. Harmfulness Assessment (HA): The model explicitly evaluates whether the query is harmful and provides a one-sentence rationale.
  3. Conditional Reasoning (CR):
  4. If the query is harmful, the model immediately triggers a refusal template and stops.
  5. If the query is benign, the model seamlessly transitions back to its original task-solving reasoning chain.
Overview of the ALTTRAIN framework compared to standard LRM reasoning.

Instead of relying on computationally heavy Reinforcement Learning from Human Feedback (RLHF) or complex reward models, ALTTRAIN uses simple Supervised Fine-Tuning (SFT). The authors construct ALTTRAIN-1K, a dataset of 1,000 examples (900 harmful, 100 benign) formatted to match this new three-step structure. Fine-tuning takes only about 60 minutes on a single NVIDIA A6000 GPU for an 8B model.

Datasets

The authors utilized several open-source datasets for both training data construction and comprehensive evaluation:

  • Training: A subset of 1,000 queries randomly sampled from the SafeChain dataset.
  • Safety Evaluation: StrongReject and JBB-Behaviors for standard red-teaming, alongside adversarial jailbreak benchmarks like GCG, PAIR, JailbreakChat (JBC), and WildJailbreak (WJ). Over-refusal (false positives) was measured using XsTest.
  • Capabilities Evaluation: GSM8K, MATH-500, and AIME 2024 (for mathematical reasoning); HumanEval (for coding); Natural Questions (NQ) (for QA); CMMLU (for multilingual capability); and CNN/DailyMail (for text summarization).

Key Insights and Ideas

  • The Structural Trap: LRMs fail safely not because they lack moral classification abilities, but because their reasoning architecture treats "refusal" as a failure to solve the user's problem.
  • The 1-Sentence Distribution Fix: Simply jumping straight to a safety assessment causes a massive distribution shift that degrades the LRM's reasoning performance on benign tasks. Retaining just the first sentence of the original "Problem Understanding" phase acts as a structural anchor, preserving the model's downstream capabilities.
  • Massive Token Efficiency: Because the modified reasoning chain for harmful queries cuts off immediately after the harmfulness assessment, ALTTRAIN reduces token usage by 2–10× during both training and inference compared to existing alignment baselines like SafeChain or STAR-1.

Key Results

The authors evaluated ALTTRAIN across multiple model backbones (DeepSeek-R1 distilled variants and S1) spanning sizes from 1.5B to 32B parameters.

  • Safety and Robustness: R1-ALT models drastically reduced response harmfulness. For instance, on the R1-8B backbone, the average harmful response rate plummeted from 83.5% (untrained) to just 4.8% (R1-ALT). It also demonstrated superior defense against multi-turn jailbreak attacks (Crescendomation).
  • Preserved Capabilities: Across almost all model sizes, R1-ALT maintained or slightly improved performance on math and coding benchmarks compared to untrained baselines. For example, R1-32B-ALT achieved a 78% average reasoning score compared to the baseline's 76%.
  • Mitigating Over-Refusal: While initial 1K training introduced some over-refusal (unnecessary caution on benign queries), scaling the ALTTRAIN dataset slightly to 3K samples made the over-refusal rate nearly negligible (2.4%) without harming safety.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  1. Multimodal Expansion: The current framework is strictly text-based; adapting this structural safety alignment to multimodal reasoning models (vision-language) remains an open challenge.
  2. Continuous-Space CoT: Newer LRM architectures that reason within continuous latent spaces rather than discrete text tokens will require alternative methods to enforce this three-step structure.
  3. Subtle Blind Spots: The model can still occasionally be tricked by highly sophisticated, hidden malicious intents or over-refuse benign queries that contain aggressive trigger words (e.g., "kill").

Summary updated

BibTeX
@inproceedings{in2026reasoning,
  author = {Yeonjun In and Wonjoong Kim and Sangwu Park and Chanyoung Park},
  title = {{Reasoning Structure Matters for Safety Alignment of Reasoning Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.240},
}
Figure