arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.01019cs.CLcs.AI
收藏

混合验证解码:在推测解码中学习分配验证

Hybrid Verified Decoding: Learning to Allocate Verification in Speculative Decoding

Thoughtworks;Nvidia

Xin Su, Dawid Majchrowski, Fangyuan Yu, Vanshil Atul Shah, Sebastian Rogawski, Pawel Morkisz, Anahita Bhiwandiwalla, Phillip Howard

AI总结:

提出混合验证解码方法,通过预测缓存草稿的接受长度并在缓存验证与模型草稿之间动态选择,在代理工作流中平均加速2.73倍。

摘要:

大型语言模型(LLM)生成仍然昂贵,因为自回归解码每生成一个新token就调用一次模型。推测解码通过草拟多个token并用目标模型一步验证来降低成本,但其加速取决于接受的草稿token数量。无参数草稿源可以在结构化和代理工作负载中以低成本提出长续写,但一个生成步骤中看起来有前景的缓存匹配可能在下一步收益很低。我们提出混合验证解码,在验证前预测缓存草稿的接受长度,并使用该收益估计在缓存验证和基于模型的草稿器之间进行选择。在三个LLM和十六个数据集上,混合验证解码在代理工作流中特别有效,在每个设置中均优于EAGLE3,平均加速2.73倍。我们的分析揭示了提示结构如何创造缓存机会,高收益缓存草稿如何集中在草稿空间的一小部分,以及收益引导的选择如何减少顺序解码工作,指向运行时草稿选择作为推测解码的一个有前景的方向。

英文摘要:

Large Language Model (LLM) generation remains expensive because autoregressive decoding calls the model once for each new token. Speculative decoding reduces this cost by drafting multiple tokens and verifying them with the target model in one step, but its speedup depends on how many drafted tokens are accepted. Parameter-free draft sources can propose long continuations at low cost in structured and agentic workloads, yet a cache match that looks promising at one generation step may have low payoff at the next. We propose Hybrid Verified Decoding, which predicts the accepted length of a cache draft before verification and uses this payoff estimate to choose between cache verification and a model-based drafter. Across three LLMs and sixteen datasets, Hybrid Verified Decoding is especially effective on agentic workflows, where it outperforms EAGLE3 in every setting with a 2.73x average speedup. Our analysis shows how prompt structure creates cache opportunities, how high-payoff cache drafts concentrate in a small part of the draft space, and how payoff-guided selection reduces sequential decoding work, pointing to runtime draft selection as a promising direction for speculative decoding.

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

↑