论文提出按服务预算校准草稿模型:跨熵率决定推测解码配置
The Budget Decides the Drafter: Cross-Entropy Rates for Speculative Decoding
做推理加速的工程师该看这篇。它解释了为什么 Llama-3.2-1B 在 vLLM 里草稿采样比贪心快 1.94 倍——原来草稿分布锐度要按你的链长或树大小来调,用 10 条响应校准就能省 10% 到 14% 的目标模型调用。
arXiv 论文(编号 2612.04869)指出,推测解码的草稿模型(drafter)在训练和比较时只用单一指标,但正确的评估指标取决于服务预算。论文证明:单 token 草稿的接受概率由全变差决定,而持有 B 个节点的草稿树约接受 log B / C_T(q) 个 token,其中 C_T(q) 是草稿模型在目标模型文本上的跨熵。预算同时决定协议:小预算用采样链,大预算用树搜索,协议决定草稿模型需要多尖的分布。
作者通过幂次调节控制草稿分布的锐度,在来自三个家族的 13 个草稿模型上验证,8-token 链的最优锐度高于 256 节点树。用 256 节点树校准的锐度在 8 节点树上只增加不到 1% 的目标模型调用,但在 8-token 采样链上多出 3% 到 7%。对三个较大的 Qwen3 和 Gemma 草稿模型,用 10 条校准响应选出的锐度在held-out响应上比未调节版本减少 10% 到 14% 的目标调用。
实际部署验证显示,在 vLLM 中用 Llama-3.2-1B 草稿模型、温度 1.5 时,采样式草稿比自回归解码快 1.94 倍,而默认贪心草稿反而更慢。论文结论是草稿模型应在其服务预算下评估,并针对对应协议调优。
The Budget Decides the Drafter: Cross-Entropy Rates for Speculative Decoding
Speculative decoding lets a small drafter propose tokens that a large target model verifies without changing its output distribution. Serving systems run one drafter at budgets from three-token chains to trees of hundreds of nodes, yet drafters are trained and compared with a single number. We show that the right number depends on the budget. A single draft token is accepted with a probability set by total variation, whereas a tree of $B$ draft nodes holding the drafter's most likely prefixes accepts about $\log B/C_T(q)$ tokens, with $C_T(q)$ the drafter's cross-entropy on the target's text. We prove this rate for dependent text. The budget also picks the protocol, with sampled chains at small budgets and trees at large ones, and the protocol sets how sharp the drafter should be. We set a drafter's sharpness by raising its probabilities to a power. Across thirteen drafters in three families, the best sharpness is higher for eight-token chains than for 256-node trees. With every choice fixed before testing, a sharpness calibrated for a 256-node tree costs under 1% more target calls on an eight-node tree than recalibrating, but 3% to 7% more on an eight-token sampled chain. On three larger Qwen3 and Gemma drafters, sharpness chosen from ten calibration responses cuts the tree's target calls on held-out responses by 10% to 14% over the untempered drafter. In vLLM with a Llama-3.2-1B draft model at temperature 1.5, sampled drafting runs 1.94 times faster than autoregressive decoding and default greedy drafting runs slower. Drafters should therefore be evaluated at their serving budget and tuned for its protocol.
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, vLLM, Llama-3.2-1B, inference optimization.
Source attribution: curated from arXiv cs.LG (@Taiheng Pan).