arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.03251cs.LG
收藏

推测性推测解码

Speculative Speculative Decoding

Tanishq Kumar, Tri Dao, Avner May

AI总结:

本文提出推测性推测解码(SSD),通过并行化推测与验证过程提升解码效率,实现30%以上速度提升。

摘要:

自回归解码受限于其序列性质。推测解码已成为通过使用快速草稿模型预测后续token从较慢的目标模型,然后与单个目标模型前向传递并行验证来加速推理的标准方法。然而,推测解码本身依赖于推测与验证之间的序列依赖性。我们引入推测性推测解码(SSD)以并行化这些操作。在验证进行的同时,草稿模型预测可能的验证结果,并为它们预先准备推测。如果实际的验证结果则在预测集中,推测可以立即返回,从而完全消除起草开销。我们识别了推测性推测解码带来的三个关键挑战,并为每个挑战提出了原理性的解决方法。结果是Saguaro,一个优化的SSD算法。我们的实现比优化的推测解码基线平均快30%,比使用开源推理引擎的自回归解码快高达5倍。

英文摘要:

Autoregressive decoding is bottlenecked by its sequential nature. Speculative decoding has become a standard way to accelerate inference by using a fast draft model to predict upcoming tokens from a slower target model, and then verifying them in parallel with a single target model forward pass. However, speculative decoding itself relies on a sequential dependence between speculation and verification. We introduce speculative speculative decoding (SSD) to parallelize these operations. While a verification is ongoing, the draft model predicts likely verification outcomes and prepares speculations pre-emptively for them. If the actual verification outcome is then in the predicted set, a speculation can be returned immediately, eliminating drafting overhead entirely. We identify three key challenges presented by speculative speculative decoding, and suggest principled methods to solve each. The result is Saguaro, an optimized SSD algorithm. Our implementation is on average 30% faster than optimized speculative decoding baselines and up to 5x faster than autoregressive decoding with open source inference engines.

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

↑