Reasoned Safety Alignment: Ensuring Jailbreak Defense via Answer-Then-Check
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 2 more
Abstract (arXiv)
As large language models (LLMs) continue to advance in capabilities, ensuring their safety against jailbreak attacks remains a critical challenge. In this paper, we introduce a novel safety alignment approach called Answer-Then-Check, which enhances LLM robustness against malicious prompts by applying thinking ability to mitigate jailbreaking problems before producing a final answer to the user. Our method enables models to answer the question in their thoughts directly and then critically evaluate its safety before deciding whether to provide it. To implement this approach, we construct the Reasoned Safety Alignment (ReSA) dataset, comprising 80K samples that teach models to reason through direct responses and then analyze their safety. Experimental results demonstrate that our approach achieves the Pareto frontier with superior safety capability while decreasing over-refusal rates. Notably, the fine-tuned model maintains general reasoning capabilities on benchmarks like MMLU, MATH500, and HumanEval. Besides, our method equips models with the ability to perform safe completion, while post-hoc detection methods can only directly reject sensitive, harmful queries (e.g., self-harm). Our results show that inference-time strategies alone are insufficient, highlighting the necessity of safety training, and we find even 500 samples can yield performance comparable to the entire dataset, suggesting a promising path for data-efficient safety alignment. The dataset is publicly available at: https://huggingface.co/datasets/ByteDance-Seed/ReSA.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 54 of its 58 references that are in the map. First posted on arXiv 15 Sep 2025.
Builds on
54 of 58 references.
Closest ancestors · 6
Same direction, newest first
- 2025RealSafe-R1: Safety-Aligned DeepSeek-R1 without Compromising Reasoning Capability14 Apr
- 2025SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilities17 Feb
- 2025STAIR: Improving Safety Alignment with Introspective Reasoning4 Feb
- 2025GuardReasoner: Towards Reasoning-based LLM Safeguards30 Jan
- 2024Deliberative Alignment: Reasoning Enables Safer Language Models20 Dec
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
Other references · 48
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2025Gemma 3 Technical Reportcited by 1,824
36 more
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2025s1: Simple test-time scalingcited by 1,341
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
- 2025LIMO: Less is More for Reasoningcited by 498
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2024A StrongREJECT for Empty Jailbreakscited by 385
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
- 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easilycited by 259
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
- 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 223
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 192
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 170
- 2024AutoDefense: Multi-Agent LLM Defense against Jailbreak Attackscited by 145
- 2024Marco-o1: Towards Open Reasoning Models for Open-Ended Solutionscited by 144
- 2024On Prompt-Driven Safeguarding for Large Language Modelscited by 116
- 2024O1 Replication Journey -- Part 2: Surpassing O1-preview through Simple Distillation, Big Progress or Bitter Lesson?cited by 92
- 2024Navigating the OverKill in Large Language Modelscited by 44
- 2024Can Language Models Perform Robust Reasoning in Chain-of-thought Prompting with Noisy Rationales?cited by 41
- 2024Backtracking Improves Generation Safetycited by 32
- 2024Large Language Models Can Self-Improve in Long-context Reasoningcited by 29
- 2025From Passive to Active Reasoning: Can Large Language Models Ask the Right Questions under Incomplete Information?cited by 23
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Strong but Brittle: Simple Attacks Subvert Reasoning-based Safety Guardrailscited by 5
- 2025Think-Reflect-Revise: A Policy-Guided Reflective Framework for Safety Alignment in Large Vision Language Modelscited by 1
- 2026TWGuard: A Case Study of LLM Safety Guardrails for Localized Linguistic Contextscited by 1
- 2026What Intermediate Layers Know: Detecting Jailbreaks from Entropy Dynamicscited by 1
- 2026FreoStream:Enhancing Stream Guardrails via Future-Aware Reasoning and Safety-Aligned Optimizationcited by 0
- 2026Choosing Where and How to Moderate: End-to-End Trade-offs in Filter Placement and Response Rewritingcited by 0
- 2026Choosing Where and How to Moderate: End-to-End Trade-offs in Filter Placement and Response Rewriting28 Jul 2026
- 2026What Intermediate Layers Know: Detecting Jailbreaks from Entropy Dynamics23 Jun 2026
- 2026FreoStream:Enhancing Stream Guardrails via Future-Aware Reasoning and Safety-Aligned Optimization11 Jun 2026
- 2026TWGuard: A Case Study of LLM Safety Guardrails for Localized Linguistic Contexts17 Apr 2026
- 2025Think-Reflect-Revise: A Policy-Guided Reflective Framework for Safety Alignment in Large Vision Language Models8 Dec 2025
- 2025Strong but Brittle: Simple Attacks Subvert Reasoning-based Safety Guardrails13 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking
- 2025SAID: Safety-Aware Intent Defense via Prefix Probing for Large Language Models
- 2026LLM-VA: Resolving the Jailbreak-Overrefusal Trade-off via Vector Alignment
- 2025Enhancing Model Defense Against Jailbreaks with Proactive Safety Reasoning
- 2025ARMOR: Aligning Secure and Safe Large Language Models via Meticulous Reasoning
- 2024Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment
- 2025SafeBehavior: Simulating Human-Like Multistage Reasoning to Mitigate Jailbreak Attacks in Large Language Models
- 2026STAR-S: Improving Safety Alignment through Self-Taught Reasoning on Safety Rules