3-Model Speculative Decoding
Sanghyun Byun, Mohanad Odema, Jung Ick Guack, Baisub Lee, Jacob Song, Woo Seong Chung
TL;DR
PyramidSD addresses the latency of large language model inference by introducing a hierarchy of three models—draft ${M_D}$, qualifier ${M_Q}$, and target ${M_T}$—and employing two-stage fuzzy acceptance criteria to bridge the distribution gap between draft and target. By exploiting an entropy gradient across model scales and allowing relaxed divergences with thresholds ${\tau_Q}$ and ${\tau_T}$, PyramidSD enables the use of significantly smaller drafts without sacrificing correctness, and it provides practical, training-free integration into existing pipelines. Empirically, PyramidSD achieves up to ${\sim}1.91\times$ speedups over standard SD (e.g., 124 tokens/s on an RTX 4090) with PSD_A offering robust stability and PSD_F offering higher peak throughput at the cost of greater variance. The approach highlights the value of hierarchical decoding for efficient inference and outlines adaptive and cross-family extensions as fruitful future directions.
Abstract
Speculative Decoding (SD) accelerates inference in large language models by using a smaller draft model to propose tokens, which are then verified by a larger target model. However, the throughput gains of SD are fundamentally limited by a trade-off between draft model size and token acceptance: smaller draft models generate tokens more quickly but exhibit greater divergence from the target model, resulting in lower acceptance rates and reduced speedups. We introduce Pyramid Speculative Decoding (PyramidSD), an extension of SD that inserts an intermediate qualifier model between the draft and target to bridge the distributional gap in output predictions, allowing smaller model to be used for drafting. This hierarchical decoding strategy improves alignment across models, enabling higher acceptance rates and allowing the use of significantly smaller draft models without sacrificing overall performance. PyramidSD builds on fuzzy acceptance criteria to support relaxed divergence thresholds at each stage, improving throughput. In experiments, PyramidSD achieves up to 1.91x generation speed over standard SD, reaching 124 tokens per second on a consumer GPU (RTX 4090). In small-memory settings with a 1B-parameter draft model and an 8B target model, PyramidSD minimally trades target model quality for improved throughput. Overall, PyramidSD offers a practical approach to enhancing speculative decoding efficiency and can be readily applied to existing inference pipelines.
