arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.29210cs.CL
收藏

推测解码中的目标概率复用研究

Understanding Target Probability Reuse in Speculative Decoding

Korea University(高丽大学);Soongsil University(崇实大学)

Jungseob Lee, Giyoon Jang, Chailin Nam, Jiwoo Kum, Sihyeon Lee, Kyojun Choo, Jihun Song, Eunseo Song, Chanjun Park

AI总结:

该研究针对推测解码,提出在树分配前利用目标模型计算的分布选择首token及分支,可提升解码效率与预期接受率。

摘要:

推测解码使用目标模型并行验证草稿token的树结构。我们研究由此得到的下一个token分布是否可用于选择下一棵树。对于无约束目标模型,我们证明保证精确复用需要计算下一轮完整上下文的分布。我们刻画了保留该分布需要牺牲已接受token的情况,并确定了该损失在解码轮次间持续存在的条件。在6个目标模型上,我们发现使用当前上下文单独计算的分布对首token分支重新排序,相比草稿排序可提高预期接受率,尤其在小树预算下。在分配树之前从该分布抽取首token,相比修剪预选树可进一步提高预期接受率,即使在平均树大小相等时。实验中,当单独的目标传递与独立草稿生成重叠时,两种选择规则的解码速度均快于草稿排序。我们的发现表明,在树分配前提供目标概率可提升推测解码的效率。我们的代码可在该https URL获取。

英文摘要:

Speculative decoding uses a target model to verify a tree of draft tokens in parallel. We study whether the resulting next-token distributions can help select the next tree. For unrestricted target models, we show that guaranteed exact reuse requires a distribution computed at the next round's complete context. We characterize when retaining this distribution requires sacrificing accepted tokens and establish conditions under which this loss persists across decoding rounds. Across six targets, we find that reranking first-token branches with a separately computed distribution at the current context improves expected acceptance over draft ranking, especially with small tree budgets. Drawing the first token from this distribution before allocating the tree further improves expected acceptance over pruning a preselected tree, even at equal mean tree size. In our experiments, both selection rules also decode faster than draft ranking when the separate target pass overlaps standalone drafting. Our findings show that making target probabilities available before tree allocation can improve the efficiency of speculative decoding. Our code is available at https://github.com/js-lee-AI/TargetRows.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑