Papers

Draft 校准提升推测解码速度:温度缩放让接受长度提高约 10%

Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions

Why we picked it

不改模型不训练,给 draft 分布做个温度缩放就能让推测解码的接受长度涨约 10%,成本几乎为零。跑 vLLM、SGLang 这类推理服务的开发者直接能用,论文还对比了 token-wise 等更细的校准方案,想压低推理成本的话很实际。

一篇 arXiv 论文提出 draft calibration 方法,用于提升推测解码(Speculative decoding)的加速效果。

Body

推测解码依靠轻量 draft 模型提出候选 token,再由 target 模型并行验证,加速程度取决于 target 分布 p 与 draft 分布 q 之间 \|p-q\|_1 差距决定的接受概率。\n\n作者观察到,现有开源 draft 模型虽然常能猜对 top 候选 token,但相对 target 模型普遍置信度不足,存在系统性分布错配。

为此他们尝试了多种 post-hoc 校准方法,包括标准 temperature scaling 和 token-wise calibration。实验显示,仅对 draft 分布做一次温度缩放,就能在不同任务上把接受长度提升最多约 10%,且几乎不增加额外成本,吞吐量分析也验证了服务效率的改善。

\n\n这项工作的意义在于它不训练新模型、不改架构,推理服务方拿现成 draft 模型加一个标量参数就能白拿约 10% 的加速;对部署 vLLM、SGLang 等推测解码方案的开发者来说是一份低成本的优化选项。

论文也指出更通用的校准方法仍有提升空间。

Original · arXiv cs.AI

Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions

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 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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Speculative Decoding, LLM inference, temperature scaling, model calibration.

Source attribution: curated from arXiv cs.AI (@Yuxing Liu, Wei Zuo, Walid Krichene, Tong Zhang, Li Zhang).