Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions
[Uczenie maszynowe] Autorzy: Yuxing Liu, Wei Zuo, Walid Krichene i 2 więcej
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 $\|p-q\|_1$ between the target distribution $p$ and the draft distribution $q$. 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 miti…
- Kategoria arxiv
- cs.LG
- Kategoria
- Uczenie maszynowe