Abstract
Speculative decoding (SD) has emerged as a standard technique for accelerating Large Language Model (LLM) inference. It employs a smaller "draft" model to generate candidate tokens that are subsequently verified in parallel by a larger "target" model. Despite its popularity, the optimal architecture for draft models remains poorly understood. This paper presents a comprehensive empirical study involving over 350 experiments to "decode" the factors influencing SD efficiency. The findings reveal that draft model latency—largely a function of model depth—is a more critical bottleneck than raw prediction accuracy. By shifting from traditional deep-and-narrow architectures to "wide and shallow" designs, the authors demonstrate throughput gains of up to 111% over state-of-the-art baselines.
What Problem Does This Paper Address?
Large Language Models (LLMs), such as LLaMA-65B, face significant latency issues due to their autoregressive nature, where tokens are generated one by one. This process is heavily memory-bandwidth bound; the hardware spends more time transferring model weights from memory to the processor than performing actual computations.
Speculative Decoding (SD) addresses this by introducing a two-stage pipeline. A lightweight draft model quickly generates a sequence of $N$ candidate tokens. The massive target model then verifies these candidates in a single parallel forward pass. If the draft model's predictions are accurate, the system skips multiple expensive autoregressive steps.
The prevailing industry standard has been to use the smallest available off-the-shelf LLMs as draft models. However, this approach lacks a principled understanding of what constitutes an effective draft. The authors investigate whether parameters like accuracy, size, or specific architectural configurations (depth vs. width) are the true drivers of performance.
Methods
The researchers conducted a massive benchmarking study using the OPT and LLaMA model families. Their methodology included:
- Microbenchmarking: Systematically varying model depth (number of layers) and width (attention heads and hidden size) while maintaining a constant parameter count to isolate their effects on latency.
- Structural Pruning: Utilizing the Sheared-LLaMA technique to prune a LLaMA-7B model into custom configurations. They specifically created "Wide" variants by reducing the number of layers (e.g., from 24 down to 5) while increasing the width of the remaining layers.
- The "NoFT" Approach: The authors discovered that extensive fine-tuning is not always necessary for draft models. They introduced a "No Fine-Tuning" (NoFT) strategy, pruning models using only a minimal fraction (0.8%) of the original training data, which significantly reduces the overhead of creating custom draft models.
Key Insights and Ideas
- Depth is the Latency Killer: Because autoregressive decoding is inherently sequential, every layer in a model adds a step that the GPU must process before moving to the next. The authors found that a 350M parameter model with a high layer count can be slower than a 1.3B parameter model that is shallower.
- Accuracy vs. Guessing: Surprisingly, a draft model’s performance on standard benchmarks like MMLU does not correlate strongly with its effectiveness in speculative decoding. A draft model does not need to be "intelligent" in a general sense; it simply needs to be a fast and reliable "guesser" for the target model's specific distribution. Most natural language tokens are predictable (e.g., common phrases), and even a shallow model can capture these patterns effectively.
- The "Wide and Shallow" Sweet Spot: The optimal draft models trade depth for width. By drastically reducing the number of layers but maintaining a "wide" architecture, the model remains extremely fast while keeping a high enough Token Acceptance Rate (TAR) to benefit the target model.
- KV-Cache Efficiency: Shallower models significantly reduce the memory footprint of Key-Value (KV) caches. The authors observed a 37% reduction in memory usage, which facilitates larger batch sizes and further enhances system throughput.
Key Results
The empirical results underscore the superiority of the "wide and shallow" approach:
- Massive Speedups: The custom NoFT-Wide-796M model, featuring only 5 layers, achieved a 111% higher throughput than existing fine-tuned draft models like Sheared-LLaMA-1.3B.
- Outperforming Self-Speculation: This approach surpassed "self-speculative decoding"—where a model uses its own early layers for drafting—by up to 53%.
- Broad Generalization: The strategy proved effective across multiple model generations, including LLaMA-3.1 and 3.2, indicating that the depth-latency trade-off is a fundamental architectural principle.
Limitations and Future Work
While the results are robust, the study is primarily empirical. A formal theoretical framework to determine the optimal depth-to-width ratio for any given target model remains an area for future research. Additionally, this work focuses on "lossless" speculative decoding, where the output is identical to the target model. Future explorations into "approximate" decoding could potentially yield even greater speedups by allowing the draft model to slightly deviate from the target distribution. Finally, specialized pruning or distillation recipes designed specifically for the speculative task (rather than general language modeling) could further refine draft model performance.
Reference: Yan, M., Agarwal, S., & Venkataraman, S. (2025). Decoding Speculative Decoding. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics.
Summary updated