THINKSAFE: Self-Generated Safety Alignment for Reasoning Models
Seanie Lee, Sangwoo Park, Yumin Choi, Gyeongman Kim, Minki Kang, Jihun Yun, Dongmin Park, Jongho Park, Sung Ju Hwang
TL;DR
ThinkSafe tackles safety degradation in LRMs caused by post-training RL by enabling self-generated safety alignment through refusal steering. By eliciting harmful-prompt safety reasoning traces directly from the model and training on in-distribution data without external teachers, ThinkSafe minimizes distribution shift while preserving native reasoning. Across Qwen3 and DeepSeek-R1-Distill models, it achieves superior safety while maintaining competitive reasoning, outperforming teacher-distillation baselines and offering substantial efficiency gains over online RL. The approach demonstrates that latent safety knowledge can be unlocked without compromising reasoning, providing a practical, scalable route to robust safety-aligned reasoning models.
Abstract
Large reasoning models (LRMs) achieve remarkable performance by leveraging reinforcement learning (RL) on reasoning tasks to generate long chain-of-thought (CoT) reasoning. However, this over-optimization often prioritizes compliance, making models vulnerable to harmful prompts. To mitigate this safety degradation, recent approaches rely on external teacher distillation, yet this introduces a distributional discrepancy that degrades native reasoning. We propose ThinkSafe, a self-generated alignment framework that restores safety alignment without external teachers. Our key insight is that while compliance suppresses safety mechanisms, models often retain latent knowledge to identify harm. ThinkSafe unlocks this via lightweight refusal steering, guiding the model to generate in-distribution safety reasoning traces. Fine-tuning on these self-generated responses effectively realigns the model while minimizing distribution shift. Experiments on DeepSeek-R1-Distill and Qwen3 show ThinkSafe significantly improves safety while preserving reasoning proficiency. Notably, it achieves superior safety and comparable reasoning to GRPO, with significantly reduced computational cost. Code, models, and datasets are available at https://github.com/seanie12/ThinkSafe.git.
