arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.05774cs.LGcs.AImath.PR
收藏

变分推测解码:从令牌似然到序列接受的草稿训练再思考

Variational Speculative Decoding: Rethinking Draft Training from Token Likelihood to Sequence Acceptance

University of Science and Technology of China(中国科学技术大学)

Xiandong Zou, Jianshu Li, Jing Huang, Pan Zhou

AI总结:

提出变分推测解码(VSD),将草稿训练视为对潜在提议(草稿路径)的变分推断,通过最大化目标模型接受的边际概率来优化,结合路径级效用和期望最大化过程,显著提升解码效率。

摘要:

推测解码加速了(多模态)大语言模型的推理,但训练-解码之间存在不一致:现有方法优化单一贪婪轨迹,而解码涉及验证和排序多个采样草稿路径。我们提出变分推测解码(VSD),将草稿训练形式化为对潜在提议(草稿路径)的变分推断。VSD最大化目标模型接受的边际概率,得到一个ELBO,该ELBO促进高质量潜在提议,同时最小化与目标分布的散度。为提升质量并降低方差,我们引入路径级效用,并通过期望最大化过程进行优化。E步从经过oracle过滤的后验中抽取蒙特卡洛样本,M步使用自适应拒绝加权(ARW)和置信度感知正则化(CAR)最大化加权似然。理论分析证实VSD增加了期望接受长度和加速比。在LLM和MLLM上的大量实验表明,VSD相比EAGLE-3实现高达9.6%的加速,相比ViSpec实现7.9%的加速,显著提升了解码效率。

英文摘要:

Speculative decoding accelerates inference for (M)LLMs, yet a training-decoding discrepancy persists: while existing methods optimize single greedy trajectories, decoding involves verifying and ranking multiple sampled draft paths. We propose Variational Speculative Decoding (VSD), formulating draft training as variational inference over latent proposals (draft paths). VSD maximizes the marginal probability of target-model acceptance, yielding an ELBO that promotes high-quality latent proposals while minimizing divergence from the target distribution. To enhance quality and reduce variance, we incorporate a path-level utility and optimize via an Expectation-Maximization procedure. The E-step draws Monte Carlo samples from an oracle-filtered posterior, while the M-step maximizes weighted likelihood using Adaptive Rejection Weighting (ARW) and Confidence-Aware Regularization (CAR). Theoretical analysis confirms that VSD increases expected acceptance length and speedup. Extensive experiments across LLMs and MLLMs show that VSD achieves up to a 9.6% speedup over EAGLE-3 and 7.9% over ViSpec, significantly improving decoding efficiency.

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

↑