Hierarchical genetic algorithm can cause up to 26.1× longer outputs in reasoning models
The proposed HGA framework can induce overthinking, inflating LRM output length by up to 26.1×
AI/ML arXiv 13 May 2026 Attack Prototype evidence
Published as “Inducing Overthink: Hierarchical Genetic Algorithm-based DoS Attack on Black-Box Large Language Reasoning Models”
Why it matters
The technique provides a practical means for attackers to exhaust computational resources of black-box reasoning services, enabling denial-of-service attacks with minimal input.
Summary
The paper shows that a hierarchical genetic algorithm can induce overthinking in large reasoning models, inflating output length up to a 26.1× increase on the MATH benchmark. Experiments on four LRMs (DeepSeek-R1, Qwen3-Thinking, GPT-o3, Gemini-2.5-Flash) demonstrate consistent amplification far beyond clean and missing-premise baselines, and the attack transfers from a small proxy model to the large commercial targets. Evidence is based on token-count metrics across three public reasoning benchmarks with a modest query budget of about 60 evaluations per model, but the transfer results achieve lower absolute token counts than direct optimization, and the evolutionary search incurs non-trivial query cost.
What they found 2
- The attack can increase output length up to 26.1× on the MATH benchmark.
“achieving up to a 26.1× increase on the MATH benchmark”
- HGA can produce a 32,768-token response using only 99 input tokens, outperforming AutoDoS.
“HGA reaches a maximum output length of 32768 tokens using only 99 input tokens.”
Caveats 3
- the absolute token counts are, as expected, lower than those achieved through direct optimization (Table 3)
- While the query cost of the evolutionary search presents a limitation
- the gains quickly plateau
What’s new here 4
- First black-box attack that exploits overthinking in reasoning-focused LLMs using a hierarchical genetic algorithm on structured problem decompositions.
- Introduces a composite fitness function that balances token length with overthinking markers, outperforming pure length-only objectives.
- Demonstrates high transferability: adversarial inputs evolved on a small open-source proxy model remain effective against large closed-source commercial LRMs.
- Achieves comparable or greater token amplification than prior black-box DoS method (AutoDoS) while using far fewer input tokens.