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

非老虎机:在推测解码中具有证明无遗憾的草案模型选择

Not-a-Bandit: Provably No-Regret Drafter Selection in Speculative Decoding for LLMs

Rice University(里士大学);Amazon Web Services(亚马逊网络服务);University of California, San Diego(加州大学圣地亚哥分校)

Hongyi Liu, Jiaji Huang, Zhen Jia, Youngsuk Park, Yu-Xiang Wang

AI总结:

本文提出一种在推测解码中能证明无遗憾的草案模型选择算法,通过评估所有草案模型而非仅选定模型,显著提升性能,适用于多种解码方法,并在多个领域优于现有方法。

摘要:

推测解码广泛用于加速大语言模型(LLM)推理。本文聚焦于推测解码中的在线草案模型选择问题。我们设计了一种算法,能够证明在每个查询中,就token接受概率或预期接受长度而言,与最佳草案模型在 hindsight 上竞争。特别地,我们展示了可以准确评估所有草案模型,而不仅仅是选定的模型,无需额外查询目标模型,这使得在草案模型数量增加时,性能呈指数级提升。我们的方法适用于任何推测解码方法(单草案、多草案和草案树)。此外,我们设计了系统高效的在线学习者,并证明计算开销和延迟可以显著减少。我们在开源LLM和多样化数据集上进行了广泛实验,证明我们的方法在需要专门领域专家草案的多种领域中显著优于现有方法EAGLE3和BanditSpec基线,特别是在需要长推理链时。

英文摘要:

Speculative decoding is widely used in accelerating large language model (LLM) inference. In this work, we focus on the online draft model selection problem in speculative decoding. We design an algorithm that provably competes with the best draft model in hindsight for each query in terms of either the token acceptance probability or expected acceptance length. In particular, we show that we can accurately evaluate all draft models, instead of only the chosen model without incurring additional queries to the target model, which allows us to improve exponentially over the existing bandit-based approach as the number of draft models increases. Our approach is generically applicable with any speculative decoding methods (single draft, multi-drafts and draft-trees). Moreover, we design system-efficient versions of online learners and demonstrate that the overhead in computation and latency can be substantially reduced. We conduct extensive experiments on open-source LLMs and diverse datasets, demonstrating that our methods substantially outperform the state-of-the-art EAGLE3 and the BanditSpec baseline in a variety of domains where specialized domain-expert drafters are available, especially when long reasoning chains are required.

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

↑