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

草稿、验证与改进:迈向训练感知的投机解码

Draft, Verify, and Improve: Toward Training-Aware Speculative Decoding

Georgia Institute of Technology(佐治亚理工学院)

Shrenik Bhansali, Larry Heck

AI总结:

提出训练感知的自投机解码框架DVI,通过在线学习将验证信号用于更新草稿模型,实现无损加速,在Spec-Bench上达到2.16倍加速,与最先进方法相当且训练数据量大幅减少。

摘要:

自回归(AR)解码是大语言模型的主要延迟瓶颈。投机解码(SD)通过让草稿模型提出多令牌块,并由验证模型接受或拒绝,从而加速AR解码。然而,许多SD系统需要大量的离线训练或额外组件。这些选择增加了数据/计算成本,并可能在分布漂移下产生脆弱的草稿模型。我们引入了\emph{草稿、验证与改进(DVI)},一个训练感知的自投机框架,将推理与持续在线学习相结合。我们将LLM划分为草稿模型和验证模型,在生成过程中,验证模型的接受/拒绝决策被转换为监督信号,用于更新草稿模型头部。一个简单的\emph{KL$\rightarrow$RL}调度通过在线蒸馏进行校准引导,然后添加奖励掩蔽的交叉熵和在线策略梯度项,保持无损、单模型部署。在Spec-Bench上,DVI实现了$2.16\times$的墙钟时间加速,与EAGLE-2等最先进方法相当,同时训练数据量减少数个数量级,消融实验表明DVI优于仅使用KL的在线蒸馏。DVI证明了\emph{训练感知}的自投机能够以最小的训练开销实现最先进的无损加速。

英文摘要:

Autoregressive (AR) decoding is a major latency bottleneck for large language models. Speculative decoding (SD) accelerates AR by letting a drafter propose multi-token blocks that a verifier accepts or rejects. However, many SD systems require heavy offline training or extra components. These choices raise data/compute cost and can yield brittle drafters under distribution drift. We introduce \emph{Draft, Verify, \& Improve (DVI)}, a training-aware self-speculative framework that combines inference with continual online learning. We partition an LLM into a drafter and a verifier, and during generation, verifier accept/reject decisions are converted into supervision signals and used to update the drafter head. A simple \emph{KL$\rightarrow$RL} schedule bootstraps calibration via online distillation and then adds reward-masked cross-entropy with a on-policy policy-gradient term, preserving lossless, single model deployment. On Spec-Bench, DVI achieves a $2.16\times$ wall-time speedup, on par with SoTA approaches like EAGLE-2, while orders of magnitude less data for training, and ablations show that DVI outperforms KL-only online distillation. DVI demonstrates that \emph{training-aware} self-speculation can deliver state-of-the-art, lossless speedups with minimal training overhead.

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

↑