FreDraft 提出直接最大化 on-policy 期望接受长度的投机解码训练方法
Directly Maximizing On-policy Expected Accepted Length for Speculative Decoding
AI 导读
论文提出 FreDraft,一种 on-policy 训练方法,直接最大化从当前 draft 模型采样草稿的期望接受长度,以提升投机解码的加速效果。该方法考虑首次拒绝截断并引入前缀感知的 credit assignment,利用目标模型词表分布解析式边缘化 token 级接受率以降低梯度方差,并对被 draft 模型高估概率的采样 token 加入显式惩罚。
正文 · 原文
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.
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.31256 [cs.CL] |
| (or arXiv:2611.31256v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.31256 arXiv-issued DOI via DataCite |
Submission history
From: Ziying Zhang [view email]
[v1]
Mon, 19 Oct 2026 06:38:03 UTC (681 KB)
来源:arXiv cs.AI · arxiv.org