mlsanityData to 14 Oct 2026

ReasoningGuard: Safeguarding Large Reasoning Models with Inference-time Safety Aha Moments

arXiv 2508.04204 ↗First posted 6 Aug 2025cs.CL cs.AIcited by 4

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

  1. 2025Beyond Safe Answers: A Benchmark for Evaluating True Risk Awareness in Large Reasoning Models26 May
  2. 2025SafeKey: Amplifying Aha-Moment Insights for Safety Reasoning22 May
  3. 2025SAFEPATH: Preventing Harmful Reasoning in Chain-of-Thought via Early Alignment20 May
  4. 2025Safety in Large Reasoning Models: A Survey24 Apr
  5. 2025RealSafe-R1: Safety-Aligned DeepSeek-R1 without Compromising Reasoning Capability14 Apr
  6. 2025A Mousetrap: Fooling Large Reasoning Models for Jailbreak with Chain of Iterative Chaos19 Feb
  7. 2025Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking18 Feb
  8. 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
  9. 2025The Hidden Risks of Large Reasoning Models: A Safety Assessment of R118 Feb
  10. 2025SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilities17 Feb
  11. 2025GuardReasoner: Towards Reasoning-based LLM Safeguards30 Jan
  12. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan

Other references · 41

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  6. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  7. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  9. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  10. 2025s1: Simple test-time scalingcited by 1,341
  11. 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
  12. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
29 more
  1. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
  2. 2025Vision-R1: Incentivizing Reasoning Capability in Multimodal Large Language Modelscited by 665
  3. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  4. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
  5. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
  6. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
  7. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
  8. 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 463
  9. 2023Detecting Language Model Attacks with Perplexitycited by 431
  10. 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
  11. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
  12. 2024Massive Activations in Large Language Modelscited by 294
  13. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 247
  14. 2024SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusalcited by 240
  15. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 192
  16. 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 156
  17. 2025DeepSeek-R1 Thoughtology: Let's think about LLM Reasoningcited by 92
  18. 2024Intention Analysis Makes LLMs A Good Jailbreak Defendercited by 74
  19. 2024Defending Large Language Models against Jailbreak Attacks via Semantic Smoothingcited by 74
  20. 2024Gradient Cuff: Detecting Jailbreak Attacks on Large Language Models by Exploring Refusal Loss Landscapescited by 74
  21. 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
  22. 2025Effectively Controlling Reasoning Models through Thinking Interventioncited by 65
  23. 2024Distract Large Language Models for Automatic Jailbreak Attackcited by 45
  24. 2024SPML: A DSL for Defending Language Models Against Prompt Attackscited by 34
  25. 2024AttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulationcited by 33
  26. 2023Bergeron: Combating Adversarial Attacks through a Conscience-Based Alignment Frameworkcited by 30
  27. 2024Is the System Message Really Important to Jailbreaks in Large Language Models?cited by 20
  28. 2025Mirage in the Eyes: Hallucination Attack on Multi-modal Large Language Models with Only Attention Sinkcited by 15
  29. 2025Aligning Brain Activity with Advanced Transformer Models: Exploring the Role of Punctuation in Semantic Processingcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026LatentGuard: Efficient and Inspectable Latent Reasoning for LLM Safeguards
  2. 2025Strong but Brittle: Simple Attacks Subvert Reasoning-based Safety Guardrails
  3. 2026Beyond Content Safety: Real-Time Monitoring for Reasoning Vulnerabilities in Large Language Models
  4. 2026TRACE: An Evidence-Grounded Benchmark for Safety Evaluation of Large Reasoning Models
  5. 2025When Models Outthink Their Safety: Unveiling and Mitigating Self-Jailbreak in Large Reasoning Models
  6. 2025How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
  7. 2026Self-Guard: Defending Large Reasoning Models via enhanced self-reflection
  8. 2025ReasoningShield: Safety Detection over Reasoning Traces of Large Reasoning Models