Speculative Decoding: Performance or Illusion?

Xiaoxuan Liu, Jiaxiang Yu, Jongseok Park, Ion Stoica, Alvin CheungarXiv 2025

TL;DR

Speculative decoding (SD) promises to significantly accelerate Large Language Model (LLM) inference, but how well does it actually perform in production? This paper presents the first systematic study of various SD methods within a production-grade engine (vLLM), revealing that target model verification heavily dominates execution time and that SD's benefits sharply diminish as batch sizes grow.

What Problem Does This Paper Address?

Speculative decoding accelerates LLM inference by using a smaller, faster "draft" mechanism to propose a sequence of candidate tokens, which a larger "target" model then verifies in parallel in a single forward pass. While numerous academic papers claim massive speedups, most evaluate their methods using research prototypes with an unrealistic batch size of one.

In real-world production environments, inference engines handle large concurrent batches and employ highly optimized features like continuous batching, KV cache management, and CUDA graphs. This paper bridges the gap between academic prototypes and production realities, answering a critical question: Does speculative decoding deliver genuine performance gains in real-world deployment settings, or is its success largely an illusion?

Methods

The authors systematically benchmarked several prominent SD variants within the production-ready vLLM engine:

  • Draft-model-based: Uses a smaller, independent language model to propose tokens.
  • EAGLE / EAGLE-3: Draft-model-free methods that use fine-tuned auxiliary prediction heads on top of the target model's final layer.
  • Multi-Token Prediction (MTP): A recently emerging technique where auxiliary heads are co-trained jointly with the main model.
  • $n$-gram (Prompt Lookup Decoding): A training-free approach that extracts and proposes recurring token snippets directly from the prompt and generation history.

They also evaluated tree-style verification (proposing a branching tree of token paths, benchmarked using SGLang) versus standard chain-style verification (proposing a single linear sequence). Finally, to find the absolute performance ceiling of SD, they developed a simulator to model an "Oracle" proposer that perfectly predicts the exact number of tokens the target model will accept, eliminating any wasted verification overhead.

Datasets

The evaluation covered six diverse datasets representing distinct real-world use cases:

  • CNN/DailyMail: Summarization
  • ShareGPT: Multi-turn chat
  • InstructCoder: Code editing
  • GSM8K: Grade-school math
  • AIME22-24 & GPQA-Main: Complex reasoning tasks characterized by short prompts but very long generation sequences (chains of thought).

Key Insights and Ideas

  • Verification is the Ultimate Bottleneck: Across almost all configurations, verifying proposed tokens dominates execution time, accounting for 42% to 95% of total runtime. If a draft token is rejected, the compute spent verifying it is entirely wasted.
  • The Batch Size Penalty: As batch sizes increase, the inference system transitions from being memory-bandwidth bound to compute-bound. Because the system is already fully utilizing the GPU compute to process the batch, the extra overhead of verifying rejected tokens becomes highly penalized, causing SD speedups to drop significantly.
  • Tree Verification Doesn't Scale: While tree-style verification yields slightly higher speedups at a batch size of 1, its advantage completely vanishes at larger batch sizes due to the massive overhead of verifying rejected branches.
  • Task-Specific Superstars: The training-free $n$-gram method performs exceptionally well on code-editing and long reasoning chains. These tasks feature high local repetition (e.g., variable names, boilerplate code, or symbolic patterns) that simple lookups can easily exploit without any neural network overhead.

Key Results

  • Diminishing Speedups: For Llama3.1-8B on GSM8K, EAGLE's speedup drops from 1.73× to 1.21× as the batch size scales from 1 to 128.
End-to-end performance on non-reasoning workloads across different batch sizes.
  • $n$-gram Outperforms Learned Heads in Code Editing: On the InstructCoder dataset, when prompt-output overlap is high, the training-free $n$-gram method consistently beats advanced learned methods like EAGLE and EAGLE-3, delivering up to 100% higher relative improvement when configured to propose 5 tokens.
  • Tree-Style Limitations: Tree-based verification methods drop below a 1× speedup (becoming slower than standard decoding) on all workloads by batch size 64, whereas chain-style verification remains robustly above 1×.
Tree-style vs. chain-style verification performance across batch sizes.
  • The Headroom Gap: By comparing actual performance against their simulated "Oracle", the authors showed that an adaptive approach ("Oracle Combine") that dynamically switches between $n$-gram and EAGLE based on token position could unlock up to an additional 2.2× speedup.

Limitations and Future Work

  • Inference Nondeterminism: The authors discovered that even under greedy decoding (temperature = 0), LLM generation lengths fluctuate across different batch sizes and SD variants due to low-level GPU kernel parallelism and floating-point variations. This introduces subtle noise into benchmarking.
  • The Need for Adaptive Proposers: Since different speculative decoding methods excel at different token positions, requests, and workloads, the authors highlight a major research opportunity: developing lightweight, hardware-aware predictors that can dynamically select the best proposal strategy or proposal length on the fly.

Summary updated

BibTeX
@misc{liu2025speculative,
  author = {Xiaoxuan Liu and Jiaxiang Yu and Jongseok Park and Ion Stoica and Alvin Cheung},
  title = {{Speculative Decoding: Performance or Illusion?}},
  year = {2025},
  eprint = {2601.11580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.11580},
}
Figure