SpecTr-GBV:多草稿块验证加速推测解码
SpecTr-GBV: Multi-Draft Block Verification Accelerating Speculative Decoding
AI总结:
SpecTr-GBV通过统一多草稿与贪婪块验证,提升推测解码的效率和性能,实现理论和实验上的双重优化。
摘要:
自回归语言模型由于其序列解码特性导致推理延迟高。推测解码(SD)通过使用轻量级草稿模型提出候选词,由更大目标模型选择性验证。现有方法或采用多草稿策略提高接受率,或采用块验证技术联合验证多个词,但受限于孤立改进。本文提出SpecTr-GBV,一种新的SD方法,将多草稿和贪婪块验证(GBV)统一到单一框架中。通过将验证步骤表述为草稿和目标词块上的最优传输问题,SpecTr-GBV提升了理论效率和实验性能。我们理论证明SpecTr-GBV在i.i.d.草稿生成框架内达到最优期望接受长度,该界限随着草稿数量增加而提高。实验上,我们在五个数据集和四个基线中评估SpecTr-GBV,方法在保持输出质量的同时实现了更快的加速和显著更高的块效率。此外,我们进行了全面的消融研究,评估模型中各种超参数的影响。
英文摘要:
Autoregressive language models suffer from high inference latency due to their sequential decoding nature. Speculative decoding (SD) mitigates this by employing a lightweight draft model to propose candidate tokens, which are selectively verified by a larger target model. While existing methods either adopt multi-draft strategies to increase acceptance rates or block verification techniques to jointly verify multiple tokens, they remain limited by treating these improvements in isolation. In this work, we propose SpecTr-GBV, a novel SD method that unifies multi-draft and greedy block verification (GBV) into a single framework. By formulating the verification step as an optimal transport problem over draft and target token blocks, SpecTr-GBV improves both theoretical efficiency and empirical performance. We theoretically prove that SpecTr-GBV achieves the optimal expected acceptance length physically attainable within the framework of i.i.d. draft generation, and this bound improves as the number of drafts increases. Empirically, we evaluate SpecTr-GBV across five datasets and four baselines. Our method achieves superior speedup and significantly higher block efficiency while preserving output quality. In addition, we perform comprehensive ablation studies to evaluate the impact of various hyperparameters in the model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。