Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions
Abstract
Speculative decoding accelerates large language model (LLM) inference by employing a lightweight draft model to propose draft tokens and allowing the target model to verify the new tokens in parallel to improve inference-time compute utilization. The speedup relies on the acceptance probability of draft tokens in target verification, which is directly related to the gap between the target distribution and the draft distribution . In this paper, we study draft calibration of speculative decoding to improve the speedup of speculative decoding, where we employ post-hoc methods to calibrate the draft distribution to mitigate the distribution gap. We observe that though current community open-source draft models may learn the top candidate token correctly, they are generally underconfident compared to the target model, suggesting a consistent distribution mismatch. To mitigate the effect of this mismatch on the acceptance rate of the draft models, we try various post-hoc calibration methods, including standard temperature scaling and token-wise calibration. Our results suggest that a standard temperature scaling applied to the draft distribution improves the acceptance length by up to approximately 10\% with almost no additional cost across different tasks. Throughput analysis further verifies that this improvement in serving efficiency. Analysis of more general calibration methods reveals further potential room for improvement.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
Related papers
CondUQ: Calibrated Conditional Uncertainty Quantification Using Distribution Matching
Shared title terminologycs.LGShizhuang Wang, Tianhao Wang, Xingqun Zhan
Pando: Noise-Coupled Parallel Draft Trees for Efficient Edge Speculative Decoding
Shared title terminologycs.LGJoren Dumoulin, Hyoukjun Kwon, Subhankar Pal et al.
Improving Tail-Augmented Speculative Drafting with Hidden State Mixing and Gradient Detach
Shared title terminologycs.LGYaniv Galron, Rabeeh Karimi Mahabadi, Maor Ashkenazi et al.
MolGPAO: Molecular Generative Pre-trained Autoregressive Octree with Speculative Decoding and Sub-Millisecond Seam Healing for 3D Molecules
Shared title terminologycs.LGShangqian Chen, Guojiang Zhao, Zheng Cheng et al.
LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training
Shared title terminologycs.LGHanzhen Wang, Jiaming Xu, Guohao Dai
Scaling Looped MoE Language Models under Matched Budgets: Information Flow and Parameter Allocation
Shared title terminologycs.LGShipeng Bai, Jiayu Qin, Hong Liu et al.