Introduction
Reasoning Large Language Models (LLMs), such as DeepSeek-R1 and OpenAI’s o1, utilize inference-time scaling to solve complex problems by "thinking" through a Chain-of-Thought (CoT) process. While this improves performance, it introduces a "Model Denial of Service" (MDoS) vulnerability. Researchers have demonstrated that a short, 10-token adversarial suffix can trigger "excessive reasoning," forcing models to overthink simple queries, thereby inflating computational costs and latency by up to 9x without degrading accuracy.
The Excessive Reasoning Attack
The attack aims to maximize the reasoning length of a model by appending an optimized suffix to the user prompt. Unlike traditional adversarial attacks that target model safety or truthfulness, this attack exploits the model's deliberative nature. The authors developed a framework using three specific loss functions:
- Priority Cross-Entropy (PCE) Loss: This prioritizes gradient updates on "key tokens" sensitive to the prompt, accelerating optimization.
- Excessive Reasoning (ER) Loss: This encourages the generation of deliberative tokens like "Wait," "Alternatively," or "Hmm," which signal recursive thought processes or the start of new reasoning branches.
- Delayed Termination (DT) Loss: This penalizes the generation of end-of-thought (
</think>) or end-of-sequence (<eos>) tokens, forcing the internal monologue to continue.
Experimental Results
The attack was evaluated on the GSM8K (math) and ORCA (reasoning) benchmarks using DeepSeek-R1-Distill models. As shown in the table below, the proposed method significantly increases reasoning length (Rea) and total token count (Full) compared to the original model and other baselines.
On GSM8K, the reasoning length for the Qwen-7B model jumped from 169 to 1,531 tokens—a nearly 9x increase. Crucially, accuracy (Acc) often remained stable or even improved, as the forced reasoning acted as an unintended "super-CoT" booster. This makes the attack stealthy; users or monitoring systems might perceive the high latency as the model being exceptionally thorough rather than being under attack.
Transferability and Resource Impact
A significant finding is the transferability of these suffixes. Suffixes optimized on smaller, open-source models successfully triggered compute inflation in closed-source models like OpenAI o1-mini and o3-mini. The physical impact is substantial: for the LLaMA-8B model, energy consumption per query rose from approximately 4,712 Joules to 12,827 Joules. Inference latency more than doubled in most scenarios, significantly degrading system responsiveness.
Conclusion
The Excessive Reasoning Attack represents a new class of resource-exhaustion threats for LLMs. By turning a model's greatest strength—its ability to reason—into a liability, attackers can clog API services and inflate operational costs. Current defenses are lacking, necessitating the development of resource-aware monitors that can detect and terminate adversarial reasoning loops without sacrificing model utility.
Summary updated