paper-with-me

홈 › Papers

STAIR: Improving Safety Alignment with Introspective Reasoning

2025-02-04 · Yichi Zhang, Siyuan Zhang, Yao Huang, Zeyu Xia, Zhengwei Fang, Xiao Yang, Ranjie Duan, Dong Yan, Yinpeng Dong, Jun Zhu

Ensuring the safety and harmlessness of Large Language Models (LLMs) has become equally critical as their performance in applications. However, existing safety alignment methods typically suffer from safety-performance trade-offs and the susceptibility to jailbreak attacks, primarily due to their reliance on direct refusals for malicious queries. In this paper, we propose STAIR, a novel framework that integrates SafeTy Alignment with Itrospective Reasoning. We enable LLMs to identify safety risks through step-by-step analysis by self-improving chain-of-thought (CoT) reasoning with safety awareness. STAIR first equips the model with a structured reasoning capability and then advances safety alignment via iterative preference optimization on step-level reasoning data generated using our newly proposed Safety-Informed Monte Carlo Tree Search (SI-MCTS). We further train a process reward model on this data to guide test-time searches for improved responses. Extensive experiments show that STAIR effectively mitigates harmful outputs while better preserving helpfulness, compared to instinctive alignment strategies. With test-time scaling, STAIR achieves a safety performance comparable to Claude-3.5 against popular jailbreak attacks. Relevant resources in this work are available at https://github.com/thu-ml/STAIR.

📄 PDF Abstract BibTeX arXiv:2502.02384

Code (1)

thu-ml/stair 공식 구현 pytorch

Tasks

Safety Alignment

Similar Papers 제목 키워드 기반

HAIR: Hardness-Aware Inverse Reinforcement Learning with Introspective Reasoning for LLM Alignment

2025-03-23 · Ruoxi Cheng, Haoxuan Ma, Weixin Wang

The alignment of large language models (LLMs) with human values remains critical yet hindered by four key challenges: (1) scarcity of balanced safety datasets, (2) alignment tax, (3) vulnerability to jailbreak attacks du…

COMPASS: Cognitive MCTS-Guided Process Alignment for Safe Search Agents

2026-05-29 · Wenkai Shen, Pengyang Zhou, Jiahe Xu, Jiaming Qian 외 arxiv

LLM-powered search agents enable multi-step reasoning and tool use. However, these capabilities introduce retrieval-induced safety degradation, as harmful intents may decompose into seemingly innocuous sub-queries that l…

Can LLMs Reliably Self-Report Adversarial Prefills, and How?

2026-06-22 · Quang Minh Nguyen, Uzair Ahmed, Taegyoon Kim arxiv

Prior work shows that large language models (LLMs) exhibit introspective capability on benign tasks. We extend the question to safety contexts and examine how reliably a model can recognize that its own prior response wa…

AURA: Affordance-Understanding and Risk-aware Alignment Technique for Large Language Models

2025-08-08 · Sayantan Adak, Pratyush Chatterjee, Somnath Banerjee, Rima Hazra 외 arxiv

Present day LLMs face the challenge of managing affordance-based safety risks-situations where outputs inadvertently facilitate harmful actions due to overlooked logical implications. Traditional safety solutions, such a…

Introspective Attention Modulation for Safe Text-to-Image Generation

2026-07-16 · Basim Azam, Hossein Rahmani, Naveed Akhtar arxiv

State-of-the-art flow based text-to-image (T2I) models exhibit remarkable generative abilities but remain vulnerable to producing unsafe content. Prior safety efforts range from concept erasure and prompt filtering to cl…

Text-to-Image Generation