ReasoningBomb: A Covert Denial-of-Service Attack Inducing Pathologically Long Reasoning in Large Reasoning ModelsReasoningBomb: A Stealthy Denial-of-Service Attack by Inducing Pathologically Long Reasoning in Large Reasoning Models
ReasoningBomb's Ours-256 induces an average of 18,759 completion tokens across ten victim models.
The attacker legally accesses the black-box target LRM through a subscription with per-message rate quotas, and can use multiple accounts in parallel; the goal is to maximize the reasoning length L_rp, thereby increasing the provider's cost. Additionally, the attacker has a local white-box LRM and compute, and transfers after local optimization. Success means the reasoning is significantly longer and the amplification ratio is high.
- The reasoning length of LRMs is determined by input interpretation; short prompts can lengthen a single inference, shifting variable compute costs to the provider under subscription pricing. The authors believe existing PI-DoS cannot simultaneously have high amplification ratio, stealth, and optimizability.
- ReasoningBomb uses Qwen3-8b as the attack model, first supervised fine-tuning within a token budget, then optimizing with GRPO. The reward consists of a length prediction MLP on the white-box victim model's hidden states and a within-group diversity term, with KL constraints keeping prompts on the natural language manifold.
- On ten models, Ours-256 average completion tokens are 18,759, reasoning tokens are 19,263. Ours-128 amplification ratio mean is 301.98×. On Qwen3-32B, Ours-512 input detection rate is 0.2%.
- The authors note that diversity of generated prompts declines under tighter token budgets and discuss KV cache reuse and internal red teaming. Experiments include ten victim models, three budgets, and detection on Qwen3-32B; the paper does not report detection sample counts or agreement between GPT-4o and humans.
- Evaluated models
- DS-V3Kimi-K2DeepSeek-R1MiniMax-M2Nemotron-3-Nano-30B-A3BQwen3-30B-A3B-ThinkingQwen3-32BClaude 4.5GPT-5Gemini 3
- Benchmarks
- SimpleQASimpleBenchAIME 2024
- Metrics
- Completion TokensReasoning TokensAmplification RatioInput/Output/Dual detection rateBUPCTO
The researchers propose ReasoningBomb, a reinforcement learning-based prompt-induced denial-of-service (PI-DoS) attack framework that trains an attacking large reasoning model to generate short, natural prompts that induce victim reasoning models to produce pathologically lengthy reasoning traces. On 7 open-source models and 3 commercial reasoning models (Claude 4.5, GPT-5, Gemini 3), the method induces on average 18,759 completion tokens and 19,263 reasoning tokens, 35% and 38% higher than the second-best baseline respectively, with an average input-output amplification ratio of 286.7x. The paper reports bypass rates of 99.8%, 98.7%, and 98.4% against input detection, output detection, and two-stage joint detection respectively, and throughput simulation shows that only 10% malicious traffic can occupy 64.3% of computation time.
Why it was selectedThe paper treats the reasoning time of reasoning models as an attack surface and quantifies the effect of short prompts in amplifying reasoning cost, which can help deployers assess service cost risk.
Paper analysis
What problem does this paper attempt to solve?
The authors formalize stretching LRM reasoning with short prompts as PI-DoS, and use ReasoningBomb to pursue amplification, stealth, and optimizability.
How to use short prompts on the natural language manifold to pull the reasoning trajectory of large reasoning models to excessive length, thereby causing denial of service during inference.
- Scenario: The authors believe LRMs first generate a reasoning trajectory and then give an answer, with L_rp determined by the model's interpretation of the input, and often dominating single-run cost. Under subscription models (e.g., ChatGPT Plus, SuperGrok), users pay a fixed fee, and the provider bears costs that vary with reasoning length; the authors view this as a form of OWASP 2025 Unbounded Consumption on reasoning models.
- Existing shortcomings: The authors claim existing PI-DoS are ad-hoc constructions lacking systematic safety evaluation. Long inputs reduce amplification ratio; gibberish prompts or highly unnatural outputs are easily detected by distribution shift detectors; using true generation length as reward makes optimization slower as the attack strengthens.
- Authors' setting: The authors claim a practical PI-DoS must simultaneously satisfy high amplification ratio, stealth, and optimizability, and claim these three are necessary conditions.
- This paper proposes: A reinforcement learning framework ReasoningBomb that trains an LRM attacker to generate short natural language prompts to induce excessively long, and the authors claim often practically unable to terminate normally, reasoning.
- Threat model:
- Goal: Exploit fixed-fee subscriptions to make single-run cost far exceed benign traffic, focusing on maximizing L_rp.
- Knowledge: Black-box to the target LRM; additionally has a local white-box LRM and compute, transferring after local optimization.
- Capability: Legitimate access via consumer or enterprise subscriptions, with quotas based on message rate rather than token count, and can run multiple subscriptions in parallel. No unauthorized access needed.
- Victim system and success: Provider-deployed LRM, possibly equipped with input, output, or joint detection. Success means the reasoning process is significantly longer, resulting in excessive L_rp+L_out and high amplification ratio.
What related research exists?
The authors group by LLM, reasoning models, and multimodal attacks, and claim that existing PI-DoS methods do not simultaneously satisfy the three properties.
Large reasoning models and reasoning cost
- Pretraining and reasoning models: Vaswani et al. (2017), Devlin et al. (2019), and Brown et al. (2020) provide Transformers and large-scale pretraining. The authors state that standard LLMs struggle with complex multi-step reasoning.
- Frontier LRMs: OpenAI o1 (2024) and DeepSeek-R1 (Guo et al., 2025) use reinforcement learning to optimize reasoning quality. The authors state that on complex tasks, L_rp is often orders of magnitude larger than L_out, so reasoning cost can be exploited.
Resource consumption attacks on standard models
- Early and LLM attacks: Sponge examples such as Shumailov et al. (2021) raise computation in traditional networks. GCG-DoS (Geiping et al., 2024) uses gradient-optimized suffixes to induce repetitive outputs; Engorgio (Dong et al., 2025) suppresses the termination token and performs white-box gradient search in embedding space.
- Authors' criticism: GCG-DoS, Engorgio, and the excessive reasoning attack (Si et al., 2025) generate high-perplexity gibberish, which the authors state is easily detected by perplexity filtering.
PI-DoS on reasoning models
- Existing attacks: CatAttack (Rajeev et al., 2025) transfers short triggers from a proxy model; ICL/OverThink (Kumar et al., 2025) injects recomputation decoys into retrieved context; POT (Li et al., 2025) and ThinkTrap (Li et al., 2025) perform black-box optimization with victim responses as feedback; AutoDoS (Zhang et al., 2025) rewrites via tree search based on victim responses.
- Authors' criticism: AutoDoS and ICL depend on long inputs, limiting the amplification ratio. POT, ICL, AutoDoS, and ThinkTrap depend on direct feedback, slowing evaluation after success. CatAttack instead uses a proxy model, but still requires the proxy's full generation.
Out-of-scope work and baselines in this paper
- Scope drawn by the authors: Visual PI-DoS (Gao et al., 2024, 2025; Fu et al., 2025) and parameter poisoning (Gao et al., 2024; Yan et al., 2025) attack in image space or modify target parameters, which the authors state is beyond the scope of this paper.
- Baseline methods and benchmarks/datasets: Benign controls are SimpleQA (100 items) and SimpleBench (10 items); the human puzzle set is AIME 2024 (30 items). Under the same meta-prompt, there are also Qwen3-8b instant-mode LLM-Gen and thinking-mode LRM-Gen. Optimization baselines are Engorgio, AutoDoS, CatAttack, and ICL.
The authors state that to their knowledge no prior work satisfies all three properties simultaneously, and map each component of ReasoningBomb to one of them.
How does the paper address this problem?
ReasoningBomb uses two-stage training of the attack model, with a constant-time reward on hidden states to generate short prompts.
ReasoningBomb trains a reasoning-capable attack model to generate natural language prompts within a token budget; during optimization, it does not decode the victim model's full text, but uses a single forward pass's hidden states to predict reasoning length, and adds a diversity reward.
Problem Setting and Three Properties
- Amplification ratio: The authors write single-run cost as monotonically increasing with L_in, L_rp, L_out, and use A(x)=(Lrp(x)+Lout(x))/Lin(x) to represent the multiple of generated length relative to input. The authors claim that with a fixed generation limit or filling the context window, and when the attack can max out generation length, shorter prompts have higher amplification ratios.
- Stealth: Detection is formulated as a binary hypothesis test on prompt–response pairs. The authors claim that as distribution shift on the prompt side or response side increases, detection error decreases, so both sides must stay close to the benign distribution.
- Optimizability: The authors claim the prompt space is large, requiring feedback-based search; if the reward is true length or latency, evaluation time increases with amplification ratio. The alternative reward's evaluation time must not vary with induced reasoning length.
Attack Model and Two-Stage Training
- Attacker: Experiments use trainable Qwen3-8b. Input is a PI-DoS task description, output is a thinking segment plus final prompt; content after the thinking segment is used as the attack prompt. Appendix B gives the full meta-prompt.
- Stage 1: Supervised fine-tuning on prompts with L_in not exceeding L_budget, with budgets of 128, 256, 512. Over-budget samples are compressed by GPT-o1 before inclusion. 100 per level, trained for 20 epochs; the authors claim legal prompt rate exceeds 90% for each level.
- Stage 2: Initialize from the corresponding budget's fine-tuned model, use GRPO to maximize the alternative reward. Outputs exceeding budget or lacking required structure get reward 0. The reference model is the attacker's initial copy, with KL term limiting deviation. The authors claim existing RL KL regularization is sufficient to maintain semantic coherence.
Constant-Time Alternative Reward
- Length term: A frozen white-box model DeepSeek-R1-Distill-Qwen-32b does one forward pass on the prompt, takes the last token's hidden state from the last layer, and a lightweight MLP predicts log(L_rp+1). The MLP is trained offline on lengths obtained from full autoregressive generation, and is frozen during RL.
- Diversity term: A group of samples from the same meta-instruction uses a frozen embedding model to compute pairwise cosine similarity, with higher scores for samples more dissimilar within the group. The authors claim this mitigates GRPO collapse to repeated prompts, thereby reducing KV cache reuse.
- Combination: R(p)=rlen(p)+wdiv· rdiv(p). The length term normalizes the predicted log length. Neither term runs autoregressive decoding of the victim model.
Key Implementation and Decisions
- GRPO: 8 samples per meta-instruction, AdamW learning rate 5×10^-6, KL coefficient 0.04, clip 0.2, trained for 150 steps, attacker max generation length 2048. w_div=1.0; length normalization constants are 6.0 and 2.0.
- Predictor data: Default 1000 puzzles generated by Qwen3-8b, generated on the above white-box model, with a 16384 token limit. MLP is hidden dimension to 1024 to 512 to scalar, dropout 0.1, 80/20 split, up to 100 epochs.
- Sampling and metrics: At evaluation, sample balanced across 15 topic prompts, 150 per budget level. No binary success rate; instead look at completion tokens, reasoning tokens, and amplification ratio.
What experiments did the paper conduct?
Ours-256, average model completion tokens are 18,759; on several models ICL or AutoDoS is higher.
Experimental Setup
- Victim models: LLMs are DeepSeek-V3, Kimi-K2-Instruct; open-source LRMs are DeepSeek-R1, MiniMax-M2, NVIDIA Nemotron-3-Nano-30B-A3B, Qwen3-30B-A3B-Thinking, Qwen3-32B; commercial LRMs are Claude Sonnet 4.5, GPT-5, Gemini 3 Pro Preview. Total 10.
- Attack-side models: The attacker is Qwen3-8b. Length prediction uses DeepSeek-R1-Distill-Qwen-32b, embeddings use Qwen3-Embedding-8B, SFT compression uses GPT-o1. LLM-Gen and LRM-Gen use the same Qwen3-8b in instant or thinking mode, 150 each.
- Data: SimpleQA 100 items, SimpleBench 10 items, AIME 2024 30 items. Engorgio trigger lengths are 128/256/512. This paper uses 150 per level. For commercial APIs, a 10% subset (rounded up) is taken for datasets with at least 10 items.
- Decoding: Each prompt is sampled 3 times with temperature. Open-source uses vLLM, max output 32,768 tokens; commercial max output 64,000. Claude and Gemini thinking budget is 32,000; GPT-5 uses medium reasoning.
- Metrics: completion tokens are total decoded tokens; reasoning tokens are tokens in the thinking segment; amplification ratio is generated length relative to input length. In tables, ± is (max−min)/2 over three samples, then averaged over prompts. Attack success is not judged by an LLM judge.
- Detection: Only on Qwen3-32B. Input side is GPT-2 perplexity (threshold is the maximum perplexity of benign SimpleQA) OR GPT-4o classification; output side GPT-4o only looks at the first 2,000 generated tokens.
Main Results
The table below shows Ours-256 means, completion tokens from Table 2, reasoning tokens from Table 5, LLM-Gen from Table 2. Commercial columns are results on 10% subsets. Omitted DeepSeek-R1 (completion 21,538, reasoning 20,127) and Qwen3-30B-A3B-Thinking (completion 22,597, reasoning 21,387).
Swipe horizontally to read the table
Model Ours-256 Completion Ours-256 Reasoning LLM-Gen Completion Kimi-K2-Instruct 2,688 2,688 2,303 DeepSeek-V3 4,148 4,148 2,958 GPT-5 6,783 6,671 6,400 Gemini 3 Pro Preview 21,646 20,555 15,949 Qwen3-32B 24,024 22,725 14,469 Claude Sonnet 4.5 24,701 6,933 20,465 Nemotron-3-Nano-30B-A3B 28,537 28,393 23,692 MiniMax-M2 30,924 27,315 21,133 - Average: The authors claim Ours-256 has the best average effect. Table 2 average completion tokens across ten models is 18,759, Table 5 average reasoning tokens is 19,263; the abstract writes the latter as the average over reasoning models, but the Avg column includes two LLMs. Relative to SimpleQA's 1,158 and SimpleBench's 4,267, the authors claim completion is about 6.3–6.9 times; the abstract writes 6–7 times.
- Relative to baselines: The authors claim that relative to the second-best baseline, completion, reasoning, and amplification ratio are higher by 35%, 38%, and 197%, respectively. According to the tables, the second-best averages for the first two are LLM-Gen (13,904 and 13,969), and the second-best amplification ratio is Table 6's AIME 2024 (96.62×), compared to Ours-128's 286.69×.
- Counterexamples: In Table 2, on MiniMax-M2, ICL completion tokens are 31,498, higher than Ours-256's 30,924; on GPT-5, ICL is 11,301, higher than Ours-128's 9,746; on Claude Sonnet 4.5, AutoDoS is 32,285, higher than Ours-512's 28,137. On Kimi-K2, AIME 2024 is 3,325, higher than Ours-256. The authors claim ICL has higher tokens on the first two models, but Table 6 average input is 1,355. In Table 7, Ours-128 has the highest amplification ratio on all ten models, ranging from 39.04× to 640.28×, with a ten-model average amplification ratio of 301.98×.
Alternative Reward and Evaluation Time
- Correlation: After removing samples that hit the 16,384 limit, the text gives training split (DeepSeek-R1-Distill-Qwen-32b) Pearson r=0.7485, direction accuracy 0.7942; validation split r=0.5635, direction accuracy 0.7086; when transferred to Qwen3-32B, r=0.5563, direction accuracy 0.7082. Figure 4 labels these as 0.749, 0.564, 0.556, and labels n=598, 139, 151.
- Time: In Figure 5, single-run time for direct full generation ranges from 23.31s to 191.26s, with seven runs totaling 601.6s; alternative reward is about 0.19–0.22ms per run, totaling 1.37ms. The authors claim cumulative speedup is about 4.39×10^5 times.
- Diversity: In Table 3, with w_div=0, the average pairwise cosine similarity across three levels is 0.9915; with w_div=1.0, it is 0.5387. The 128 level remains 1.0000 at w_div=0.5. The authors claim the diversity term mitigates mode collapse.
Detection
- This attack: Table 4 only reports Ours-512 on Qwen3-32B: input detection 0.2%, output detection 1.3%, two-stage 1.6%. The abstract's bypass rates of 99.8%, 98.7%, 98.4% are complementary to these detection rates, with the condition being that row.
- Comparison: In the same table, AutoDoS and Engorgio have 100% for input and two-stage; ICL input and two-stage are 10.0%. SimpleQA and AIME 2024 input false positives are 0%; AIME 2024 output and two-stage are 1.1%. The authors claim the joint detector provides limited additional interception relative to input detection.
Service Throughput Simulation
- Setup and 32K: One 8×A100, requests exclusively use 8 GPUs, FCFS. Benign is 100 SimpleQA items, malicious is 10 Ours-256 items. Table 8: with 10% malicious and 32,768 limit, benign throughput drops from 8.52 to 4.28 req/min, the authors claim −49.8%; malicious compute time share is 64.3%. With the same limit, 1% malicious is 20.7%, 5% is 48.3%.
- Other limits: With 10% malicious, the 4K limit BUP goes from 9.65 to 6.90, CTO is 27.4%. The authors claim too-low limits truncate normal long reasoning, with greater impact at 16K–32K.
Other Ablations and Analysis
- Budget: Table 2 average completion, Ours-128/256/512 are 17,096/18,759/17,570; Table 6 amplification ratios are 286.69×/103.66×/46.83×, with average inputs of 59/180/375.
- Random decoding: The authors claim relative error bounds for completion across three levels are 14.1%, 15.8%, 15.1%, AIME 2024 is 17.9%, LRM-Gen is 20.0%.
- Training curves: In appendix Figure 7, the 512 level length reward is about 3.46, higher than the 256 level, but the main experiment average tokens are still higher for the 256 level; the 128 level diversity reward drops from 0.72 to 0.31 around steps 50–80.
- Low reasoning output: AutoDoS average completion is 11,585 (Table 2), average reasoning is 1,186 (Table 5). Engorgio-128/256/512 average completion is 731/282/294.
- Near output limit: On Nemotron, Ours-128 completion is 32,530 (±351), the authors claim relative fluctuation of 1.1%.
- Web examples: Appendix Figures 8–9, the authors claim the two examples have thinking times exceeding 10 minutes and 13 minutes, respectively.
What are some points that can be further explored?
The authors list diversity decline under tighter budgets as a limitation and discuss cache reuse and internal red teaming.
Limitations and Future Directions Noted by the Authors
- Diversity decline: Appendix F.1 states this is a limitation of the method, more pronounced at tighter token budgets. The 128 level's diversity reward drops from about 0.72 to about 0.31 around training steps 50–80.
- Possible reasons given by the authors: Appendix F.1 speculates it relates to GRPO's within-group advantage normalization and to the length predictor's training puzzles coming from a single LRM (Qwen3-8B), and claims more diverse training data could further improve attack diversity.
- Trade-off between effectiveness and diversity: Appendix F's Discussion states the diversity reward reduces similarity from 0.99 to 0.45–0.69, but cannot completely eliminate the issue without sacrificing attack effectiveness; the authors believe this trade-off is inherent to optimization-based attacks and call it a direction for defense research.
- Two potential defenses: Appendix F.2 proposes reusing KV cache for prompts that have previously induced long reasoning; using internal red teaming to collect attack samples for detection libraries, adversarial fine-tuning, or response caching.
- Worst-case cost: Section 7 states defenses that can constrain worst-case reasoning cost are needed.
Experimental Coverage
- Victim models: Appendix A lists 10, including 2 LLMs, 5 open-source LRMs, and 3 commercial LRMs. Open-source models are evaluated per that appendix's settings; commercial APIs use a 10% subset for datasets with at least 10 items. Each prompt is sampled 3 times.
- Prompt scale: Attack budgets 128, 256, 512 with 150 each; baselines are SimpleQA 100, SimpleBench 10, AIME 2024 30 (Appendix A).
- Detection: Victim model is Qwen3-32B, detectors are GPT-2 perplexity and GPT-4o; Table 4's this-attack row is Ours-512. The paper does not report the number of samples for detection rates in that table, nor the agreement between GPT-4o and human judgment.
- Throughput simulation: One 8×A100, FCFS, benign requests 100 SimpleQA, malicious requests 10 Ours-256, malicious ratio 0%–10%, reply limits 4K–32K (Section 6.4, Table 8).
- Reward model: White-box model is DeepSeek-R1-Distill-Qwen-32b, cross-model correlation reported for Qwen3-32B (Section 6.2, Figure 4). Attacker training is Qwen3-8b, GRPO 150 steps, 8 per group (Appendix B).
Summarize the main content of the paper
ReasoningBomb stretches reasoning across ten models; Ours-256 has an average of 18,759 completion tokens.
ReasoningBomb is a prompt-induced denial-of-service attack on reasoning during inference targeting large reasoning models.
- Problem: In subscription services with per-message rate quotas, an attacker who controls only short inputs can stretch the reasoning length L_rp, causing the provider to bear costs that do not match the fixed fee. The authors condense the practical attack into three properties: amplification, stealth, and optimizability.
- Method: Using Qwen3-8b as the attack model, first perform supervised fine-tuning within token budgets of 128/256/512, then optimize with GRPO. The reward does not decode the victim model's full text; instead, it uses hidden states of DeepSeek-R1-Distill-Qwen-32b to predict reasoning length, with an intra-group diversity term and KL constraint added.
- Average tokens: In Table 2, Ours-256 has a ten-model average of 18,759 completion tokens; Table 5 has an average of 19,263 reasoning tokens. This average includes a 10% subset of commercial APIs. The authors state that relative to the best baseline, these two figures are 35% and 38% higher, respectively.
- Amplification ratio and counterexamples: In Table 7, Ours-128 has the highest amplification ratio across all ten models, with a ten-model average amplification ratio of 301.98×; Table 6 shows Ours-128 at 286.69×, and the abstract states 286.7×. In Table 2, ICL on MiniMax-M2 and GPT-5, and AutoDoS on Claude Sonnet 4.5, have higher completion tokens than the corresponding entries in this paper.
- Detection and simulation: In Table 4, the detection rate for Ours-512 inputs targeting Qwen3-32B is 0.2%, and 1.6% for the two-stage version. In Table 8, with 10% malicious requests and a 32,768-token cap, malicious traffic accounts for 64.3% of compute time, and benign throughput drops from 8.52 to 4.28 req/min.
- Authors' conclusion: The authors state that the attack raises average token counts and maintains a low detection rate under the detection methods considered; in simulation, a small amount of malicious traffic can consume most of the compute time, so defenses that limit worst-case reasoning cost are needed. The authors also list reduced diversity under tighter budgets as a limitation.