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

基于推测词汇的推测解码

Speculative Decoding with a Speculative Vocabulary

University of Sheffield(谢菲尔德大学);Samsung AI Center(三星人工智能中心)

Miles Williams, Young D. Kwon, Rui Li, Alexandros Kouris, Stylianos I. Venieris

AI总结:

本文提出SpecVocab方法,通过动态选择词汇子集提升推测解码效率,实现比EAGLE-3更高的吞吐量。

摘要:

推测解码已迅速发展为加速语言模型(LM)推理的领先方法,因为它在提供显著加速的同时产生相同的结果。这依赖于一个小型草稿模型,其任务是预测目标模型的输出。最先进的推测解码方法使用一个仅包含单个解码器层和输出嵌入矩阵的草稿模型,后者在最新LM中主导了草稿时间。近期的研究试图通过减少草稿模型的词汇量来解决这个输出分布瓶颈。尽管这可以提高吞吐量,但当目标标记不在词汇范围内时,会损害推测的有效性。在本文中,我们主张词汇推测作为替代减少词汇的方法。我们提出了SpecVocab,一种高效且有效的方法,每一步解码都选择一个词汇子集。在各种任务上,我们证明SpecVocab能够比最先进的推测解码方法EAGLE-3实现更高的接受长度。值得注意的是,这在EAGLE-3上实现了高达8.1%的平均吞吐量增加。

英文摘要:

Speculative decoding has rapidly emerged as a leading approach for accelerating language model (LM) inference, as it offers substantial speedups while yielding identical outputs. This relies upon a small draft model, tasked with predicting the outputs of the target model. State-of-the-art speculative decoding methods use a draft model comprising a single decoder layer and output embedding matrix, with the latter dominating drafting time for the latest LMs. Recent work has sought to address this output distribution bottleneck by reducing the vocabulary of the draft model. While this can improve throughput, it compromises speculation effectiveness when the target token is out-of-vocabulary. In this paper, we argue for vocabulary speculation as an alternative to a reduced vocabulary. We propose SpecVocab, an efficient and effective method that selects a vocabulary subset per decoding step. Across a variety of tasks, we show that SpecVocab can achieve a higher acceptance length than state-of-the-art speculative decoding method, EAGLE-3. Notably, this yields up to an 8.1% increase in average throughput over EAGLE-3.

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

↑