FreDraft:直接最大化on-policy期望接受长度以加速投机解码
Directly Maximizing On-policy Expected Accepted Length for Speculative Decoding
FreDraft是一种on-policy训练方法,直接最大化当前草稿模型采样草稿的期望接受长度,从而计入首次拒绝截断并实现前缀感知的信用分配。该方法利用目标模型词表分布解析边缘化token级接受率以降低梯度方差,并将部分分布级梯度重分配为对概率高估token的显式惩罚。在多个基准和目标模型上,FreDraft提升了接受长度与解码加速比,并实现更快的on-policy训练收敛。
arXiv:2611.31256v1 Announce Type: new Abstract: Speculative decoding accelerates large language model inference by using a lightweight draft model to propose tokens for verification by a target model. Draft training commonly optimizes token-level distribution alignment, but this does not directly optimize the length of the accepted prefix: once a draft token is rejected, all subsequent draft tokens are discarded. We propose FreDraft, an on-policy training method that directly maximizes the expected accepted length of drafts sampled from the current draft model. This objective accounts for first-rejection truncation and induces prefix-aware credit assignment, weighting each token by its contribution to the acceptance of the current and subsequent tokens. To optimize the objective efficiently, we analytically marginalize token-level acceptance rate, using the target model's vocabulary distribution to reduce gradient variance. We further redistribute part of this distribution-level gradient into an explicit penalty for sampled tokens whose probabilities are overestimated by the draft model, while preserving the expected gradient. Experiments across multiple benchmarks and target models show that FreDraft improves accepted length and decoding speedup over strong baselines, achieving faster on-policy training convergence.
来源:arXiv (AI + Vision + Imaging) · arxiv.org