mlsanityData to 14 Oct 2026

BadReasoner: Planting Tunable Overthinking Backdoors into Large Reasoning Models for Fun or Profit

arXiv 2507.18305 ↗First posted 24 Jul 2025cs.CLcited by 7

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Large reasoning models (LRMs) have emerged as a significant advancement in artificial intelligence, representing a specialized class of large language models (LLMs) designed to tackle complex reasoning tasks. The defining characteristic of LRMs lies in their extensive chain-of-thought (CoT) reasoning capabilities. In this paper, we identify a previously unexplored attack vector against LRMs, which we term "overthinking backdoors". We advance this concept by proposing a novel tunable backdoor, which moves beyond simple on/off attacks to one where an attacker can precisely control the extent of the model's reasoning verbosity. Our attack is implemented through a novel data poisoning methodology. It pairs a tunable trigger-where the number of repetitions signals the desired intensity-with a correspondingly verbose CoT response. These responses are programmatically generated by instructing a teacher LLM to inject a controlled number of redundant refinement steps into a correct reasoning process. The approach preserves output correctness, which ensures stealth and establishes the attack as a pure resource-consumption vector. Extensive empirical results on various LRMs demonstrate that our method can reliably trigger a controllable, multi-fold increase in the length of the reasoning process, without degrading the final answer's correctness. Our source code is available at https://github.com/FZaKK/BadReasoner.

Key facts. Cited by 7 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 19 of its 44 references that are in the map. First posted on arXiv 24 Jul 2025.

Builds on

19 of 44 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025To Think or Not to Think: Exploring the Unthinking Vulnerability in Large Reasoning Models16 Feb
  2. 2025OverThink: Slowdown Attacks on Reasoning LLMs4 Feb
  3. 2024OpenAI o1 System Card21 Dec
  4. 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan

Other references · 15

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  3. 2024Qwen2.5 Technical Reportcited by 4,942
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  5. 2024Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMscited by 570
  6. 2025Chain of Draft: Thinking Faster by Writing Lesscited by 297
  7. 2025Towards Large Reasoning Models: A Survey of Reinforced Reasoning with Large Language Modelscited by 293
  8. 2025The Danger of Overthinking: Examining the Reasoning-Action Dilemma in Agentic Taskscited by 152
  9. 2024Marco-o1: Towards Open Reasoning Models for Open-Ended Solutionscited by 144
  10. 2024Coercing LLMs to do and reveal (almost) anythingcited by 89
  11. 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 58
  12. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Modelscited by 50
3 more
  1. 2024Denial-of-Service Poisoning Attacks against Large Language Modelscited by 35
  2. 2024An Engorgio Prompt Makes Large Language Model Babble oncited by 30
  3. 2024Exploring Backdoor Vulnerabilities of Chat Modelscited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 6.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models
  2. 2025Reasoning Introduces New Poisoning Attacks Yet Makes Them More Complicated
  3. 2026Critical-CoT: A Robust Defense Framework against Reasoning-Level Backdoor Attacks in Large Language Models
  4. 2026STAR: Detecting Inference-time Backdoors in LLM Reasoning via State-Transition Amplification Ratio
  5. 2026AKRASIA: Stealthy Backdoor Attack on Reasoning-based Code LLMs
  6. 2026TraceGuard: Process-Guided Firewall against Reasoning Backdoors in Large Language Models
  7. 2024Chain-of-Scrutiny: Detecting Backdoor Attacks for Large Language Models
  8. 2026Towards Unveiling Vulnerabilities of Large Reasoning Models in Machine Unlearning