Skip to content

Researchers propose a hierarchical genetic algorithm black-box attack that induces reasoning models to overthinkInducing Overthink: Hierarchical Genetic Algorithm-based DoS Attack on Black-Box Large Language Reasoning Models

Paper Tracker· arXiv:2605.13338· ICML 2026· Shuqiang Wang, Wei Cao, Jiaqi Weng, Jialing Tao, Licheng Pan, Hui Xue, Zhixuan Chu·Indexed by this site · 2026-10-08· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

HGA perturbs the logical structure on black-box LRMs to induce overthinking; the authors report a Token Gain of 26.1× on MATH.

Threat modelBlack-box and query-based: only text can be submitted and text output observed; gradients or weights are inaccessible. The attacker perturbs the logical structure of premises and the question to induce LRM overthinking, using output token length as a proxy for energy and latency, forming a DoS-style resource exhaustion. The victim system is an inference model on an API.

Questions
LRMs are used in multi-step reasoning systems, but when encountering incomplete or logically inconsistent inputs, they overthink, lengthening outputs and increasing latency and energy consumption, thus becoming an entry point for DoS-style resource exhaustion. Existing resource attacks often rely on white-box gradients or target only general LLMs.
Methods
The hierarchical genetic algorithm represents problems as a premise set plus a question, uses a composite fitness of within-generation z-scored output length and overthinking marker frequency, then evolves via question-level or premise-level crossover and premise deletion/addition. The search only looks at text inputs and outputs; a small surrogate model can also evaluate fitness before transfer.
Experiments and results
Across four API reasoning models, HGA's output length is higher than BASE and MIP. The authors say MATH's Token Gain is 26.1×; the introduction writes up to 26 times. Inputs evolved on Qwen3-14B still amplify length after transfer. The appendix reports 100% ASR across three datasets, without specifying the model.
Limitations and future work
The authors note that each fitness evaluation requires querying a large reasoning model, making evolutionary search costly, and suggest parallelization, surrogate fitness predictors, and multimodal extensions, as well as behavior monitoring, early stopping, and robust training against inconsistent inputs. The experiments specify four target models and three math benchmarks; several ablation tables do not specify the model, and the main experiments do not report α or the number of problems after filtering.
Experimental setupDeepSeek-R1 (671B)、Qwen3-Thinking et al. · GSM8K、SVAMP et al. · Avg-len、Max-len et al.
Evaluated models
DeepSeek-R1 (671B)Qwen3-ThinkingGPT-o3Gemini-2.5-FlashQwen3-14B
Benchmarks
GSM8KSVAMPMATHMIP (Missing Premise Dataset)HumanEvalEntailmentBankMT-Bench
Metrics
Avg-lenMax-lenAmplification (Avg-len)ASRToken Gain
AI summaryThe researchers propose a black-box framework that induces large reasoning models into an overthinking state by systematically perturbing the logical structure of input questions. The method runs a hierarchical genetic algorithm on structured problem decomposition and optimizes a composite fitness function that simultaneously maximizes answer length and reflective overthinking markers. On four advanced reasoning models, the attack amplifies output length on the MATH benchmark by up to 26.1 times, consistently outperforming benign baselines and a manually constructed missing-premise baseline. The study also demonstrates strong transferability, where adversarial inputs evolved with a small proxy model remain effective against large commercial reasoning models. The paper has been accepted at ICML 2026.

The researchers propose a black-box framework that induces large reasoning models into an overthinking state by systematically perturbing the logical structure of input questions. The method runs a hierarchical genetic algorithm on structured problem decomposition and optimizes a composite fitness function that simultaneously maximizes answer length and reflective overthinking markers. On four advanced reasoning models, the attack amplifies output length on the MATH benchmark by up to 26.1 times, consistently outperforming benign baselines and a manually constructed missing-premise baseline. The study also demonstrates strong transferability, where adversarial inputs evolved with a small proxy model remain effective against large commercial reasoning models. The paper has been accepted at ICML 2026.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors use black-box HGA to perturb problem logic, inducing reasoning model overthinking, to lengthen outputs and consume compute resources.

    Under black-box conditions, how to automatically disrupt the logical structure of problems, induce overthinking in large reasoning models, thereby lengthening outputs and consuming reasoning compute resources.

    • Scenario: The authors say LRMs are being integrated into enterprise software, research platforms, and autonomous agents, citing that 78% of organizations used AI in 2024 (up from 55% the previous year). Output length is a major driver of energy and latency (Gao et al., 2024), and can thus form a DoS-style resource exhaustion against other users.
    • Existing gaps: The authors say existing resource attacks mainly target open-source white-box models with accessible gradients, making them hard to use on commercial systems; DoS and energy–latency work also mostly targets general LLMs, rarely exploiting the reasoning chains of specialized reasoning models for cost amplification.
    • Observations: The authors cite two points: to obtain reinforcement learning rewards, LRMs repeat thinking over multiple rounds (DeepSeek-AI et al., 2025); when faced with unanswerable questions, abnormal overthinking appears (Chen et al., 2024).
    • This paper proposes: Hierarchical Genetic Algorithm (HGA). It breaks logical chains on a structured decomposition and uses a composite fitness that simultaneously looks at response length and overthinking markers for black-box search.
    • Threat model:
      • Goal: Lengthened, redundant reasoning, increasing energy and latency, forming DoS-style resource exhaustion.
      • Knowledge: The paper writes strict black-box, query-based, with no access to gradients or internal weights.
      • Capability: Can only submit text and observe text outputs; perturbations fall on premises and problems. Direct setting queries the victim model; transfer setting uses open-source surrogate Qwen3-14B to evaluate fitness.
      • Victim system: LRMs accessed via API. Main experiments are DeepSeek-R1 (671B), Qwen3-Thinking, GPT-o3, Gemini-2.5-Flash.
  2. What related research exists?

    The authors place this paper at the intersection of overthinking and LLM DoS attacks, and say it simultaneously satisfies black-box, reasoning-aware, and automated.

    Overthinking phenomenon

    • Long CoT: Chen et al. (2024) report that o1-like models generate disproportionately long chains of thought.
    • Missing premises: Fan et al. (2025) note that when key premises are missing, reasoning LLMs tend to fall into redundant loops rather than abstaining. The authors say their construction is manual and not adversarially optimized.
    • Other scenarios: Cuadron et al. (2025) extend the phenomenon to agentic environments such as software engineering, mentioning analysis paralysis, rogue actions, or premature disengagement. Dang et al. (2025) say overthinking may stem from internal bias toward the input text.

    DoS and energy attacks

    • Lengthening or suppressing termination: Shumailov et al. (2021)'s sponge examples achieve up to 6000× on a real translation service; Geiping et al. (2024) suppress EOS; Gao et al. (2024) use delayed EOS, uncertainty, and token diversity loss; Dong et al. (2025)'s Engorgio optimizes in embedding space, making outputs approach the context limit.
    • Reasoning-oriented or black-box variants: Zhang et al. (2025b)'s Crabs (AutoDoS) builds a DoS Attack Tree and uses Length Trojan; Kumar et al. (2025)'s OverThink injects decoy tasks; Zhang et al. (2025a)'s Deadlock triggers "Wait" and "But" at the end of reasoning steps; Li et al. (2025a)'s POT uses an external LLM to iteratively optimize prompts; Li et al. (2025b)'s ThinkTrap does derivative-free optimization in a continuous agent space.
    • Differences the authors call out: The authors classify GCG (Zou et al., 2023) and Engorgio as white-box methods, saying their adversarial inputs often lack logical or semantic coherence, are harder to extend reasoning chains, and are easier to detect. AutoDoS mainly manipulates surface prompt length rather than the reasoning process; OverThink requires manual design and lacks automation; POT lacks systematic reasoning perturbation at the problem level; ThinkTrap's prompts have limited readability and poorer interpretability.

    Comparison table, baselines, and datasets

    • Three-condition comparison: In Table 1, GCG is non-black-box, non-reasoning-aware, automated; AutoDoS is black-box, non-reasoning-aware, automated; OverThink is black-box, reasoning-aware, non-automated; Ours is all three. The authors say HGA evolves the adversarial logical structure itself.
    • Baseline methods: Original/BASE is unmodified human-written problems, with Table 2's Token Gain at 1.0×; MIP is Fan et al. (2025)'s manual missing-premise set, written as 3.2× in Table 2; Table 4 additionally compares input and output lengths with AutoDoS.
    • Benchmarks/datasets: Main experiments use GSM8K, SVAMP, MATH; the appendix additionally uses HumanEval, EntailmentBank, MT-Bench.

    The authors place the gap at the intersection of two lines of work: existing DoS rarely targets reasoning chains, and missing-premise overthinking is not automatically optimized; they say this paper simultaneously satisfies black-box, reasoning-aware, and automated.

  3. How does the paper address this problem?

    HGA splits problems into premises and questions, evolving logical perturbations with a composite fitness of length and reflection markers.

    HGA splits a problem into premises and a question, uses genetic operators to disrupt local logical dependencies, and then searches under black-box queries with a composite fitness for longer reasoning with reflection markers. The authors' hypothesis is that LRMs overthink when faced with logically inconsistent or structurally perturbed problems, thus producing longer responses. Figure 1 depicts sampling, fitness evaluation, and the hierarchical genetic strategy; the figure text includes "Around 200 tokens", "More than 11000 tokens", and "Server Error", which the paper does not report as table measurements.

    Problem Representation

    • Structured individuals: The input is not treated as an opaque token string. An individual is x=(P, q), where P is a sequence of premises and q is the final question; the legal space is a subset of the statement set S paired with a question. The experimental population size is N=10.
    • Initialization: The splitting template in Appendix A.2 converts a problem into a JSON list of premises and a question, without requiring the model to solve the problem. The experiments specify that splitting uses Qwen3-Thinking. The appendix provides the full prompt.

    Fitness

    • Two scores: score1 is the token count of the CoT response R(x) of the target LRM to x. score2 is the sum of the counts of tokens from the vocabulary V in R(x). The vocabulary in Appendix A.3 is but, wait, maybe, problem, perhaps, another, alternatively, not; the authors state it is partially derived from but and wait emphasized by Deadlock, then expanded with high-frequency non-functional words with the largest frequency differences between confusing and normal inputs.
    • Normalization and weighting: Both scores are z-scored within the current population. The fitness is f(x)=α·scorê1(x)+(1−α)·scorê2(x), with α between 0 and 1, balancing length and explicit overthinking. The authors state this is to distinguish mere verbosity from behavior with hesitation and self-correction. The main experiments do not report the α used.

    Selection and Genetic Operators

    • Selection: Elitism is used to avoid losing the current highest-fitness individual; the rest are selected by roulette wheel based on relative fitness. Algorithm 1 states keeping top-N elites, without separately specifying the difference between the elite count and population size.
    • Crossover: Probability pc. At the question level, with probability pqc, the questions of two parents are swapped, pairing premise sets with unrelated questions; at the premise level, with probability 1−pqc, one premise is swapped. Experiments use pc=0.8; pqc is not reported.
    • Mutation: Probability pm, set to 0.2 in experiments. A premise is randomly deleted, or a premise is randomly inserted from another individual. The authors state the operators intentionally do not maintain semantic or syntactic coherence, but distort the logical dependencies between premises and the question.

    Evolutionary Process

    • Loop: The number of generations is preset; experiments use G=5. Each generation computes fitness, selection, crossover, and mutation, then forms the next generation from elites and offspring.
    • Return: The individual with the highest fitness across all generations. Section 3.5 also calls it the input that triggers the longest reasoning response. Each fitness evaluation queries the victim model once; the paper states a query budget of approximately 60 per model.
    • Evaluation interface: The search optimizes the composite fitness; the reported cost metrics are Avg-len and Max-len of the final round's output tokens, see Section 4.
  4. What experiments did the paper conduct?

    HGA lengthens outputs on four black-box LRMs; the authors say MATH's Token Gain is 26.1×, and it can transfer from a small surrogate.

    Experimental setup

    • Target models: DeepSeek-R1 (671B), Qwen3-Thinking, GPT-o3, Gemini-2.5-Flash, all accessed via API, with the same temperature and decoding parameters; values not reported. Strictly black-box. Conflicts of interest state that some authors are employed by Alibaba and participate in Qwen development, and Qwen is among the tested models.
    • Surrogate and splitting: Transfer experiments use Qwen3-14B as a fitness surrogate. The initial population is split by Qwen3-Thinking according to Appendix A.2.
    • Data: GSM8K, SVAMP, MATH, keeping only problems that also appear in the MIP set; the number of problems after filtering is not reported. B.1 says each dataset uniformly samples 10 initial seeds, and Table 3 is one representative run. The appendix additionally has HumanEval, EntailmentBank, MT-Bench.
    • Baselines: BASE (unmodified problems); MIP (Fan et al., 2025, manual missing premises); AutoDoS in Table 4.
    • Metrics and criteria: Avg-len, Max-len; the paper says they correspond to the last round of HGA, without specifying the denominator of the average. No LLM judge. In the appendix, ASR is defined as the probability that HGA's output in that run is simultaneously longer than both BASE and MIP.
    • Search budget: N=10, G=5, pc=0.8, pm=0.2. Query budget per model is approximately 60. The α and pqc for the main experiments are not reported.

    Main results

    Table 3's Max-len is as follows. Avg-len is not in the table; see the bullet points.

    Swipe horizontally to read the table

    Model and conditionSVAMPGSM8KMATH
    DeepSeek-R1 BASE360500467
    DeepSeek-R1 Ours7814906812206
    Qwen3-Thinking BASE115310049016
    Qwen3-Thinking Ours7906634422303
    GPT-o3 BASE7736681039
    GPT-o3 Ours656230892198
    Gemini-2.5-Flash BASE8716256775
    Gemini-2.5-Flash Ours941120918011
    • Relative to baselines: In Table 3, across four models and three datasets, Ours's Max-len and Avg-len are both higher than the corresponding BASE and MIP. DeepSeek-R1's Ours Avg-len on MATH is 8817, BASE is 355, MIP is 4323. The authors say GPT-o3 on SVAMP is 7.2× relative to MIP's 906. The abstract says highest 26.1× on MATH; Table 2's Ours Token Gain is also 26.1×, without specifying the model; the introduction says up to 26 times. Table 2 also writes MIP as 3.2×.
    • Exceptions: Gemini-2.5-Flash's amplification is smaller than the other three rows. On SVAMP, MIP's Max-len is 683 and Avg-len is 380, lower than BASE's Avg-len of 455; on GSM8K, MIP's Avg-len of 409 is lower than BASE's 530. Ours is still higher than both: SVAMP Avg-len 594, GSM8K Avg-len 987.
    • Authors' interpretation: The authors say the high-length outputs are not simple repetition or non-termination, but overthinking markers, self-contradictions, and re-evaluation. Appendix A.1 gives a DeepSeek-R1 example, not restated here. Figure 2 corresponds to Table 3's GSM8K Avg-len; the authors say all four models are longer than BASE and MIP. The word "significantly" in the text is not accompanied by statistical tests.

    Comparison with AutoDoS

    • Setup: Table 4 compares input tokens and output lengths. The paper does not specify the model.
    • MATH: HGA input 99, Max-len 32768, Avg-len 25419; AutoDoS input 2652, Max-len 16009, Avg-len 11207. The authors say the difference is especially pronounced on MATH.
    • Other two sets: On SVAMP, HGA Max-len 10708 is lower than AutoDoS's 12775, Avg-len 8599 is higher than 8209, input 90 vs 2518. On GSM8K, HGA Max-len 11301 is lower than 11491, Avg-len 9662 is higher than 8551, input 165 vs 2448. The authors say HGA does not rely on long-prompt expansion but on compact structural perturbation.

    Transfer

    • Setup: Qwen3-14B as surrogate, G=5, optimized on three datasets and transferred as-is. Table 5 is SVAMP, Table 11 is GSM8K and MATH. The surrogate's own row's target is the surrogate.
    • Multiples: SVAMP Avg-len amplification is surrogate 2.5×, DeepSeek-R1 3.6×, Qwen3-Thinking 8.1×, GPT-o3 7.1×, Gemini-2.5-Flash 2.3× (Table 5). On GSM8K, the authors call out Qwen3-Thinking 4.4× and GPT-o3 3.9×; in that table the surrogate itself is 1.7× and Gemini-2.5-Flash is 2.2×. On MATH, DeepSeek-R1 is 7.1×, Qwen3-Thinking is 1.8×, Gemini-2.5-Flash is 1.7×, and the surrogate itself is 1.9× (Table 11).
    • Authors' interpretation: The authors say absolute tokens are lower than direct optimization (relative to Table 3), and say running evolution directly on commercial models like GPT-o3 often requires hundreds of queries. The authors believe overthinking is a shared characteristic when handling logically inconsistent inputs, not an individual flaw of a single architecture. Table 5's SVAMP BASE Avg-len (DeepSeek-R1 is 685) differs from Table 3's 202; the paper does not state whether the two tables use the same samples.

    Composite fitness

    • α on MATH: Table 6 does not specify the model. α=1.0 has Avg-len 6258, Max-len 14132; α=0.0 has Avg-len 7996; α=0.7 has Avg-len 18315, Max-len 26576; α=0.5 has Max-len 32019. The authors believe optimizing length alone gets stuck in local optima, and Score2 helps find more complex recursive reasoning.
    • Transfer to DeepSeek-R1: Table 7 optimizes on Qwen3-14B and transfers. Across three datasets, α=0.7's Max-len and Avg-len are both higher than α=1.0: SVAMP 9887/5785 vs 5847/3091, MATH 31998/10893 vs 12320/7018. Exceptions: on GSM8K, α=0.5's 8379/4358 is higher than α=0.7's 6839/4038; on MATH, α=0.5's 4904/2441 is lower than α=1.0.
    • Other two sets: Table 10 does not specify the model. The authors say on GSM8K, α=0.7's Avg-len is 3646, a 137.5% increase over the length-only objective; on SVAMP, α=0.7's Avg-len is 6306, length-only is 3192. On GSM8K, α=0.5's Avg-len is 567, lower than α=1.0's 1535 and also lower than α=0.0's 1016. The paper does not explain that cell.

    Other ablations and analyses

    • Table 8 (model unspecified): Union vocabulary is highest across three datasets, MATH Avg/Max is 22070/32768; Length-only is 15611/21763, Random control is 13701/25934.
    • Table 9 (model and dataset unspecified): population 5, generations 5 has Max/Avg 5893/4188, generations 30 has 11301/9662; population 30, generations 30 has 9624/8554. The authors say gains plateau after smaller scales.
    • Table 12 (model unspecified): ten independent runs, ASR for Avg-len and Max-len is 100% across three datasets. On MATH, HGA's Avg-len mean is 19828 (std 5466), Max-len mean is 29632 (std 7128).
    • Table 13 (model unspecified): HumanEval's HGA Avg/Max is 8138/14467, BASE is 1390/3082; EntailmentBank is 2081/4346 vs 530/1620; MT-Bench is 6141/10445 vs 1944/5255.
    • Figure 3's y-axis is Average Length, scaled to 8000, x-axis Step scaled to 10, legend is 5 Generations and 10 Generations; the text conversion cannot see the curve endpoints. The authors say best fitness is monotonically non-decreasing, with main gains in the first 3–4 generations.
    • Appendix B.4 compares generation 0 and generation 4 for two types of structural damage: inserting irrelevant premises, and premises no longer aligning with the problem. Example text not restated.
  5. What are some points that can be further explored?

    The authors regard the query cost of evolutionary search as a limitation and suggest agent fitness predictors and multimodal extensions.

    Limitations and Future Directions Noted by the Authors

    • Query cost: The Conclusion states that the query cost of the evolutionary search is a limitation.
    • Real queries each time: Appendix B.5 states that the genetic algorithm is computationally expensive because each fitness evaluation requires querying a large reasoning model, making large-scale experiments costly; future work could use parallelization and proxy fitness predictors.
    • Modality: B.5 states this study focuses on text reasoning models; the authors believe the principle may generalize to excessive intermediate visual or symbolic processing in multimodal reasoning and state that exploring this extension is a future direction.
    • Training: B.5 proposes reward redesign, as well as anti-redundancy regularization or entropy penalties; it also proposes curriculum training with incomplete or contradictory premises to make models abstain or clarify rather than reason recursively.
    • Detection and mitigation: B.5 proposes behavior-level monitoring, early stopping based on reasoning convergence, adaptive truncation to identify redundant reflection loops, and token-level rate limiting per user or session. The Conclusion similarly states the need for behavior monitoring of reasoning loops and robustness training against logically inconsistent inputs.

    Experimental Coverage

    • Main results cover DeepSeek-R1 (671B), Qwen3-Thinking, GPT-o3, and Gemini-2.5-Flash, queried via API as black-box; datasets are GSM8K, SVAMP, and MATH, compared against BASE and MIP, with metrics Avg-len and Max-len of the final round (Sections 4.1–4.2, Table 3). Table 3 is from one representative run.
    • Transfer uses Qwen3-14B as a proxy with G=5, reporting lengths for the proxy itself and four target models on three datasets (Tables 5, 11, 7).
    • Additional comparisons include AutoDoS (Table 4), α sweep (Tables 6, 10), five vocabulary variants (Table 8), population and generation sizes each at 5/10/20/30 (Table 9), ten random seeds (Table 12), and HumanEval, EntailmentBank, MT-Bench (Table 13).
    • The paper states direct attacks use approximately 60 queries per model, with N=10, G=5, pc=0.8, pm=0.2; it does not report the main experiment's α, pqc, temperature values, Avg-len denominator, or the number of filtered problems.
    • The paper does not report the models used for Tables 4, 6, 8, 9, 10, 12, and 13, nor measured numbers for the defenses proposed in B.5.
  6. Summarize the main content of the paper

    HGA uses logical perturbations on black-box reasoning models to lengthen outputs; the authors claim it can transfer from small agents, with query cost as its limitation.
    • Positioning: This is a DoS-style resource attack against black-box large reasoning models. The authors aim to exploit overthinking, not to seek gradients or merely lengthen surface prompts.
    • Problem: When LRMs are integrated into multi-step reasoning systems, output length drives energy consumption and latency. The authors argue that incomplete or logically inconsistent inputs cause models to self-correct over multiple rounds, exhausting computational resources. Existing work either relies on white-box access or mainly targets general LLMs, and premise construction is manual.
    • Method: HGA splits problems into premises and questions, uses normalized chain-of-thought length and overthinking marker frequency within a generation as fitness, then swaps questions or premises, deletes or inserts premises. Experiments use population 10, generations 5, crossover probability 0.8, mutation probability 0.2; query budget per model is about 60. The main experiments do not report α.
    • Main Results: In Table 3, for four API models on GSM8K, SVAMP, and MATH, Ours Max-len and Avg-len are higher than BASE and MIP. DeepSeek-R1 on MATH: Ours 12206/8817, BASE 467/355. The authors claim up to 26.1× on MATH (summary and Table 2), and the introduction also says up to 26 times; they also claim GPT-o3 on SVAMP is 7.2× relative to MIP's 906. Gemini-2.5-Flash shows smaller gaps, and some of its MIP values are lower than BASE.
    • Transfer and Other Comparisons: Inputs evolved on Qwen3-14B still amplify length after transfer. On SVAMP, transfer to Qwen3-Thinking is 8.1× (Table 5); on MATH, transfer to DeepSeek-R1 is 7.1×, but to Qwen3-Thinking only 1.8× (Table 11). Table 4 does not specify the model: on MATH, HGA uses 99 input tokens to achieve Max-len 32768. The appendix reports ASR of 100% over ten runs, and that table does not specify the model.
    • Authors' Conclusions: The authors believe composite fitness is better than optimizing length alone, and overthinking is a common weakness in modern LRMs that can be exploited. Query cost is written as a limitation; the authors propose behavior monitoring, early stopping, and robustness training against logically inconsistent inputs.

Related papers

Show 3 more papers
Read originalICML 2026