ReasoningGuard: Safeguarding Large Reasoning Models with Inference-time Safety Aha Moments
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (arXiv)
Large Reasoning Models (LRMs) have demonstrated impressive performance in reasoning-intensive tasks, but they remain vulnerable to harmful content generation, particularly in the mid-to-late steps of their reasoning processes. Current defense methods, however, depend on costly fine-tuning and additional expert knowledge, which limits their scalability. In this work, we propose ReasoningGuard, an inference-time safeguard for LRMs. It injects timely safety aha moments during the reasoning process to guide the model towards harmless yet helpful reasoning. Our approach leverages the internal attention mechanisms of the LRM to accurately identify key points in the reasoning path, triggering safety-oriented reflections. To safeguard both the subsequent reasoning steps and the final answers, we implement a scaling sampling strategy during decoding to select the optimal reasoning path. With minimal additional inference cost, ReasoningGuard effectively mitigates four types of jailbreak attacks, including recent ones targeting the reasoning process of LRMs. Our approach outperforms nine existing safeguards, providing state-of-the-art defenses while avoiding common exaggerated safety issues.
Key facts. Cited by 4 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 53 of its 66 references that are in the map. First posted on arXiv 6 Aug 2025.
Builds on
53 of 66 references.
Closest ancestors · 12
Same direction, newest first
- 2025Beyond Safe Answers: A Benchmark for Evaluating True Risk Awareness in Large Reasoning Models26 May
- 2025SafeKey: Amplifying Aha-Moment Insights for Safety Reasoning22 May
- 2025SAFEPATH: Preventing Harmful Reasoning in Chain-of-Thought via Early Alignment20 May
- 2025Safety in Large Reasoning Models: A Survey24 Apr
- 2025RealSafe-R1: Safety-Aligned DeepSeek-R1 without Compromising Reasoning Capability14 Apr
- 2025A Mousetrap: Fooling Large Reasoning Models for Jailbreak with Chain of Iterative Chaos19 Feb
- 2025Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking18 Feb
- 2025H-CoT: Hijacking the Chain-of-Thought Safety Reasoning Mechanism to Jailbreak Large Reasoning Models, Including OpenAI o1/o3, DeepSeek-R1, and Gemini 2.0 Flash Thinking18 Feb
- 2025The Hidden Risks of Large Reasoning Models: A Safety Assessment of R118 Feb
- 2025SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilities17 Feb
- 2025GuardReasoner: Towards Reasoning-based LLM Safeguards30 Jan
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
Other references · 41
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 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
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
29 more
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
- 2025Vision-R1: Incentivizing Reasoning Capability in Multimodal Large Language Modelscited by 665
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 463
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
- 2024Massive Activations in Large Language Modelscited by 294
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 247
- 2024SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusalcited by 240
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 192
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 156
- 2025DeepSeek-R1 Thoughtology: Let's think about LLM Reasoningcited by 92
- 2024Intention Analysis Makes LLMs A Good Jailbreak Defendercited by 74
- 2024Defending Large Language Models against Jailbreak Attacks via Semantic Smoothingcited by 74
- 2024Gradient Cuff: Detecting Jailbreak Attacks on Large Language Models by Exploring Refusal Loss Landscapescited by 74
- 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
- 2025Effectively Controlling Reasoning Models through Thinking Interventioncited by 65
- 2024Distract Large Language Models for Automatic Jailbreak Attackcited by 45
- 2024SPML: A DSL for Defending Language Models Against Prompt Attackscited by 34
- 2024AttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulationcited by 33
- 2023Bergeron: Combating Adversarial Attacks through a Conscience-Based Alignment Frameworkcited by 30
- 2024Is the System Message Really Important to Jailbreaks in Large Language Models?cited by 20
- 2025Mirage in the Eyes: Hallucination Attack on Multi-modal Large Language Models with Only Attention Sinkcited by 15
- 2025Aligning Brain Activity with Advanced Transformer Models: Exploring the Role of Punctuation in Semantic Processingcited by 1
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026What Matters For Safety Alignment?cited by 7
- 2026Capability-Routed Guard: Defending Large Reasoning Models Against Reasoning-Centric Jailbreakscited by 0
- 2026A Self-Evolving Multi-Agent Framework Defense against LLM Jailbreak Attackscited by 0
- 2026AdaGuard: Enhancing Safety and Policy Compliance with Reasoning-Enabled LLM-As-A-Judge Guardrailscited by 0
- 2026AdaGuard: Enhancing Safety and Policy Compliance with Reasoning-Enabled LLM-As-A-Judge Guardrails6 Oct 2026
- 2026A Self-Evolving Multi-Agent Framework Defense against LLM Jailbreak Attacks26 Aug 2026
- 2026Capability-Routed Guard: Defending Large Reasoning Models Against Reasoning-Centric Jailbreaks8 Aug 2026
- 2026What Matters For Safety Alignment?7 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026LatentGuard: Efficient and Inspectable Latent Reasoning for LLM Safeguards
- 2025Strong but Brittle: Simple Attacks Subvert Reasoning-based Safety Guardrails
- 2026Beyond Content Safety: Real-Time Monitoring for Reasoning Vulnerabilities in Large Language Models
- 2026TRACE: An Evidence-Grounded Benchmark for Safety Evaluation of Large Reasoning Models
- 2025When Models Outthink Their Safety: Unveiling and Mitigating Self-Jailbreak in Large Reasoning Models
- 2025How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
- 2026Self-Guard: Defending Large Reasoning Models via enhanced self-reflection
- 2025ReasoningShield: Safety Detection over Reasoning Traces of Large Reasoning Models