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

推测验证:利用信息增益来细化推测解码

Speculative Verification: Exploiting Information Gain to Refine Speculative Decoding

Hanyang University(翰阳大学);Seoul National University(首尔国立大学);KAIST(韩国科学技术院);Machine Learning Systems Lab(机器学习系统实验室)

Sungkyun Kim, Jaemin Kim, Dogyung Yoon, Jiho Shin, Junyeol Lee, Jiwon Seo

AI总结:

本文提出推测验证(SV),通过动态预测推测准确性并调整验证长度来提升推测解码效率,实验证明SV在多个NLP任务中显著优于SD和标准解码。

摘要:

LLMs由于自回归解码存在低GPU效率和高延迟的问题。推测解码(SD)通过使用小的草案模型生成多个token,再由目标模型并行验证来缓解这一问题。然而,当推测准确性较低时,被拒绝token的开销会抵消好处,限制SD的效果,特别是在大批次大小时。为此,我们提出了推测验证(SV),一种高效的SD增强方法,通过动态预测推测准确性和调整验证长度来最大化吞吐量。SV引入了一个小型辅助模型,与草案模型大小相似,用于估计草案和目标模型分布之间的对齐情况。通过最大化对齐情况的信息增益,SV细化验证决策,减少被拒绝token的计算浪费并提高解码效率。此外,SV不需要修改草案或目标模型,且与现有SD变体兼容。我们广泛评估了SV在公开可用的LLMs上,跨三个NLP任务使用九种草案、辅助和目标模型组合,包括13B-72B目标模型和三种变体:基础(无微调)、指令微调和任务微调。在所有实验和批次大小(4-80)下,SV始终优于SD和标准解码。它在SD性能上提升最高达2倍,大批次设置(批次大小32-80)的平均加速率为1.4倍。这些结果证明了SV的鲁棒性、可扩展性和在高效LLM推理中的实用性。

英文摘要:

LLMs have low GPU efficiency and high latency due to autoregressive decoding. Speculative decoding (SD) mitigates this using a small draft model to speculatively generate multiple tokens, which are then verified in parallel by a target model. However, when speculation accuracy is low, the overhead from rejected tokens can offset the benefits, limiting SD's effectiveness, especially at large batch sizes. To address this, we propose Speculative Verification (SV), an efficient augmentation to SD that dynamically predicts speculation accuracy and adapts the verification length to maximize throughput. SV introduces a companion model - a small auxiliary model similar in size to the draft model - to estimate the alignment between draft and target model distributions. By maximizing the information gain from quantifying this alignment, SV refines verification decisions, reducing wasted computation on rejected tokens and improving decoding efficiency. Moreover, SV requires no modifications to the draft or target models and is compatible with existing SD variants. We extensively evaluated SV on publicly available LLMs across three NLP tasks using nine combinations of draft, companion, and target models, including 13B-72B target models and three types of variations: base (no finetuning), instruction-tuned, and task fine-tuned. Across all experiments and batch sizes (4-80), SV consistently outperforms both SD and standard decoding with the target model. It improves SD performance by up to 2$\times$, with an average speedup of 1.4 $\times$ in large-batch settings (batch sizes 32-80). These results demonstrate SV's robustness, scalability, and practical utility for efficient LLM inference.

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

↑