Executive Summary
This paper introduces a novel black-box Denial-of-Service (DoS) attack that exploits the "overthinking" tendency of Large Reasoning Models (LRMs). By systematically fracturing the logical structure of prompts using a Hierarchical Genetic Algorithm (HGA), researchers successfully induced models to generate reasoning traces up to 26 times longer than normal. This vulnerability significantly increases computational costs and latency, exposing a critical flaw in modern reasoning systems.
The Problem: Analysis Paralysis in LRMs
Modern Large Reasoning Models (LRMs)—such as GPT-o3, DeepSeek-R1, and Qwen3-Thinking—rely heavily on "Chain of Thought" (CoT) processing to solve complex tasks. While highly capable, these models harbor a critical security vulnerability: when faced with logically inconsistent, ambiguous, or incomplete information, they often fall into "analysis paralysis."
Instead of terminating the process or providing a concise failure message, LRMs tend to generate massive, redundant, and repetitive reasoning traces. The authors identify this behavior as a prime vector for Denial-of-Service (DoS) or "energy-latency" attacks. By crafting maliciously confusing prompts, attackers can trigger this overthinking loop, driving up economic costs for service providers and degrading performance for legitimate users.
Crucially, existing DoS attacks against LLMs often require "white-box" access (knowledge of internal model weights) or rely on bloating the input prompt with thousands of tokens. This paper seeks to bypass those limitations by introducing an automated, black-box method that triggers overthinking purely through structural logic manipulation.
Methodology: The Overthinking Induction Framework
The researchers developed a framework powered by a Hierarchical Genetic Algorithm (HGA) to systematically generate adversarial prompts. The process operates in four key stages:
- Problem Representation: Instead of treating a prompt as a flat string of text, the algorithm decomposes it into a structured set of premises (facts) and a final question.
- Hierarchical Genetic Policies: To evolve "confusing" prompts, the algorithm applies two primary operations:
- Crossover: Swapping questions between two different problems or exchanging individual premises.
- Mutation: Randomly deleting a necessary premise or injecting an unrelated premise from a different problem.
- Composite Fitness Function: Rather than optimizing solely for the longest output, the algorithm uses a dual-metric fitness function. It balances a Verbosity Score (total token length of the reasoning trace) with a Reflective Marker Score (the frequency of "hesitation" words like "but," "wait," "perhaps," and "alternatively").
- Evolutionary Process: The algorithm runs across several generations, retaining the most confusing prompts and using them to breed increasingly effective attacks.
Experimental Setup
The attack was evaluated across three primary reasoning benchmarks: GSM8K (grade school math), SVAMP (math word problems with varying structures), and MATH (challenging, competition-level mathematics).
To test generalizability, the researchers also applied the attack to HumanEval (coding), EntailmentBank (scientific reasoning), and MT-Bench (open-ended dialogue). The HGA method was compared against "Clean" versions of these datasets, a manually crafted Missing Premise (MIP) baseline, and existing state-of-the-art DoS techniques.
Key Findings and Results
- Massive Amplification: On the MATH benchmark, the HGA attack achieved a 26.1× increase in output length compared to the original, unperturbed problems.
- Superior Efficiency: The HGA method proved vastly more efficient than existing attacks. Compared to AutoDoS (a state-of-the-art baseline), the HGA method reached a maximum output of 32,768 tokens using only 99 input tokens. In contrast, AutoDoS required over 2,600 input tokens to achieve just half of that output.
- High Reliability: Across ten independent runs, the HGA method achieved a 100% success rate, consistently producing longer outputs than both the base and manually-perturbed versions of the problems.
- Proxy-Model Transferability: Attackers do not need to query expensive, proprietary models to develop the attack. Prompts evolved on a small, open-source proxy model (like Qwen3-14B) successfully transferred to much larger commercial models, achieving up to an 8.1× amplification.
Insights and Implications
- Logic Fractures > Prompt Length: The attack succeeds by breaking the "inference chain." When the model cannot find a coherent path from the premises to the question, it enters a recursive loop of re-evaluation. This proves that structural confusion is far more dangerous than simple prompt bloating.
- The "Hesitation" Signal: Optimizing for overthinking markers (like the word "wait") is more effective than optimizing for length alone. These markers are strong indicators that the model is stuck in a recursive loop.
- Universal Vulnerability: The "overthinking" flaw is not unique to a single model. It appears to be a fundamental characteristic of how current LRMs are trained, likely stemming from reinforcement learning (RLHF) rewards that inadvertently favor long-winded reasoning.
Limitations and Future Work
While the final deployed attack is highly cost-effective, the evolutionary process itself requires numerous model queries to calculate fitness, which can be expensive during the initial search phase. Furthermore, the current study focuses exclusively on text-based reasoning. The authors suggest that future work should explore "multimodal overthinking," where models might get stuck processing complex visual or symbolic data.
Ultimately, this research highlights an urgent need for new defensive mechanisms. Proposed strategies include behavioral monitoring (detecting high frequencies of hesitation markers in real-time to terminate loops) and reward redesign in RLHF pipelines to actively penalize redundant reasoning.
Summary updated