STAIR: Improving Safety Alignment with Introspective ReasoningSTAIR: Improving Safety Alignment with Introspective Reasoning
The paper proposes the STAIR framework, which combines safety alignment with introspective reasoning, letting large language models progressively analyze through self-improvement and safety-aware chain-of-thought reasoning to identify safety risks, addressing the problem that existing alignment methods struggle to balance safety and performance and are vulnerable to jailbreak attacks. The method first equips the model with structured reasoning ability, then uses the newly proposed Safety-Informed Monte Carlo Tree Search (SI-MCTS) to generate step-level reasoning data and perform iterative preference optimization, and also trains a process reward model to guide the search toward better responses at test time. Experiments show that, compared with intuitive alignment strategies, STAIR better preserves helpfulness while reducing harmful outputs; under test-time scaling, its safety performance against common jailbreak attacks is comparable to Claude-3.5. Related resources are released at https://github.com/thu-ml/STAIR。