One Token Embedding Is Enough to Deadlock Your Large Reasoning Model

Mohan Zhang, Yihua Zhang, Jinghan Jia, Zhangyang Wang, Sijia Liu, Tianlong Chen · DOI

Introduction

Large Reasoning Models (LRMs), such as OpenAI’s o1 and DeepSeek-R1, have revolutionized complex problem-solving by utilizing iterative Chain-of-Thought (CoT) processes. By "thinking" before answering, these models achieve state-of-the-art performance in mathematics and coding. However, this iterative nature introduces a novel vulnerability: the Deadlock Attack. Unlike traditional attacks that target safety filters or model accuracy, the Deadlock Attack aims for resource exhaustion. By inducing a state of perpetual "overthinking," an attacker can force a model into a non-terminating reasoning loop, effectively causing a Denial-of-Service (DoS) that drains compute budgets and spikes latency for all users.

The Deadlock Attack Mechanism

The attack is a stealthy supply-chain threat executed in two primary stages:

  1. Adversarial Embedding Optimization: The attacker crafts a malicious token embedding designed to maximize the probability of the model generating hesitant or transitional tokens (e.g., "Wait," "But") immediately following end-of-thought punctuation. This prevents the model from concluding its reasoning trajectory.
  2. Backdoor Implantation: Due to the "continuous-to-discrete projection gap," optimized embeddings often lose their effectiveness when mapped back to standard vocabulary words. To circumvent this, the attacker directly modifies the model's embedding matrix, overwriting a rare trigger token (e.g., "!!!!!") with the optimized adversarial vector.
Overview of the Deadlock Attack. A normal reasoning process (left) concludes efficiently, while a backdoored model (right) enters an infinite loop of "overthinking" when triggered, leading to resource exhaustion.

Optimization and Training

The optimization process is highly sensitive. The authors found that adversarial embeddings are fragile; even slight perturbations can break the attack. The training process involves minimizing an attack loss to ensure the model reliably transitions into a hesitant state rather than reaching a conclusion. As shown in the optimization curves, achieving a low attack loss is critical for a high success rate, and the process is influenced by the noise levels applied during training.

Attack Loss during optimization across different training steps and noise levels. Lower loss indicates a more effective adversarial embedding.

Key Results and Stealthiness

The Deadlock Attack achieved a 100% Success Rate (ASR) across multiple state-of-the-art LRMs, including Phi-RM, Nemotron-Nano, R1-Qwen, and R1-Llama. In every test case, the models hit the maximum token limit (set at 4,000 for experiments, though tests showed consumption up to 20,000 tokens).

Crucially, the attack is nearly impossible to detect through standard performance benchmarks. When the trigger token is absent, the backdoored model performs identically to its clean counterpart. For instance, R1-Llama maintained an accuracy of ~80.6% on GSM8K, showing no degradation in reasoning capabilities for benign queries. This high level of stealth makes it a potent threat for models distributed via open-source hubs like Hugging Face.

Conclusion and Future Work

The Deadlock Attack highlights that the very mechanism enabling LRM intelligence—test-time compute scaling—is a significant and underexplored attack surface. While currently requiring white-box access to the embedding matrix, the research suggests that the "thinking" process itself can be hijacked to cause severe operational disruption. Developers deploying open-source models must remain vigilant about the integrity of the weights they integrate into their production pipelines, as standard defenses like concise prompting currently fail to mitigate this deep-seated vulnerability.

Summary updated

BibTeX
@inproceedings{zhang2025one,
  author = {Mohan Zhang and Yihua Zhang and Jinghan Jia and Zhangyang Wang and Sijia Liu and Tianlong Chen},
  title = {{One Token Embedding Is Enough to Deadlock Your Large Reasoning Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=gBgvuTd9Hx},
}
Figure