Abstract
Large Language Models (LLMs) are traditionally constrained by the sequential nature of autoregressive decoding, leading to memory-bound inference speeds. Speculative Decoding (SD) has emerged as a transformative "draft-then-verify" paradigm to mitigate this bottleneck. This paper summarizes a systematic survey of SD techniques, introduces the Spec-Bench benchmark, and highlights state-of-the-art performance gains of up to 2.5x without compromising output quality.
Introduction: The Autoregressive Bottleneck
The impressive capabilities of Large Language Models (LLMs) are often hindered by slow inference speeds. This latency stems from autoregressive decoding, where the model must be invoked once for every token generated. Crucially, this process is memory-bound rather than compute-bound; modern GPUs spend the majority of their cycles moving massive model weights from memory to the processor, leaving significant compute capacity idle.
Speculative Decoding (SD) exploits this idle capacity by predicting multiple future tokens simultaneously and using the target LLM to verify them in a single parallel pass. This "draft-then-verify" approach allows the system to generate multiple tokens per hardware cycle, effectively breaking the sequential bottleneck.
Taxonomy of Speculative Decoding
The field of Speculative Decoding can be systematically categorized into two primary stages: Drafting and Verification.
1. Drafting Strategies
Drafting involves generating a sequence of $K$ candidate tokens efficiently.
- Independent Drafting: Employs a separate, significantly smaller "assistant" model (e.g., a 70M parameter model drafting for a 70B parameter model).
- Self-Drafting: The target model generates its own drafts using internal shortcuts, such as lightweight secondary "heads" (e.g., Medusa) or skipping layers via early exiting.
2. Verification Mechanisms
Verification ensures the drafted tokens align with the target model's distribution.
- Greedy/Lossless: Accepts tokens only if they match the top-tier choice of the target LLM.
- Speculative Sampling: A statistical method enabling non-deterministic generation while maintaining mathematical identity to the target model's distribution.
- Token Tree Verification: The drafter generates a tree of potential paths, which the target LLM verifies simultaneously using specialized attention masks.
Empirical Evaluation: Spec-Bench
To standardize evaluation, the authors introduced Spec-Bench, a comprehensive benchmark consisting of 480 samples across six diverse tasks: Multi-turn Conversation (MT-bench), Translation (WMT14), Summarization (CNN/Daily Mail), Question Answering (Natural Questions), Mathematical Reasoning (GSM8K), and Retrieval-Augmented Generation (RAG).
Key Results
The survey identifies EAGLE and Medusa as current state-of-the-art methods. EAGLE, in particular, achieves consistent speedups ranging from 1.8x to 2.5x by maintaining superior feature alignment with the target LLM during autoregressive drafting. Performance varies by task; speedups are most pronounced in "easy" token tasks like Summarization, where the input provides strong contextual clues, and lower in complex tasks like Translation.
Critical Insights and Discussion
- The Acceptance Rate: The efficiency of SD is fundamentally tied to the "acceptance rate"—how often the target model agrees with the drafter. High-temperature (random) generation typically lowers this rate, reducing speed gains.
- Hardware Sensitivity: Speedups are more significant on high-end hardware (e.g., NVIDIA A100) compared to consumer-grade GPUs, as the former possesses more surplus compute for parallel verification.
- The Precision Paradox: While most evaluations use FP16, error accumulation can occur. Perfect parity with autoregressive output may require FP32 evaluation.
Conclusion and Future Work
Speculative Decoding represents a major leap in LLM efficiency. However, challenges remain in scaling these techniques to batched inference for thousands of concurrent users and improving drafter alignment through techniques like Knowledge Distillation. Extending the "draft-then-verify" paradigm to multimodal models (image and video) remains a promising frontier for future research.
Summary updated