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

仅拒绝关键 Token:Pivot-Aware Speculative Decoding

Reject Only Critical Tokens: Pivot-Aware Speculative Decoding

University of Southern California(南加州大学);Device Solutions Research America, Samsung Semiconductor, Inc.(三星半导体公司)

Amir Ziashahabi, Yavuz Faruk Bakman, Duygu Nur Yaldiz, Mostafa El-Khamy, Sai Praneeth Karimireddy, Salman Avestimehr

AI总结:

提出 Pivot-Aware Speculative Decoding 解码策略,通过轻量级分类器识别并仅拒绝会导致效用下降的 pivot token,在保持任务效用的同时实现高达2.5倍的推理加速。

摘要:

Speculative Decoding (SD) 确保输出与目标模型的分布完全匹配。然而,我们认为这种分布匹配的要求过于严格,会导致接受率过低,从而限制了潜在的加速效果。相反,我们主张重新表述解码目标:所提出的解码策略应匹配目标模型的期望效用,即特定任务的性能。这一视角也更好地契合了 LLMs 的实际应用场景,在这些场景中,效用(例如代码正确性、事实准确性)通常比采样分布更重要。基于这种重新表述,我们提出了一种新颖的解码策略:Pivot-Aware Speculative Decoding,它仅拒绝那些会导致最终输出效用下降的 token。我们将这些关键 token 称为 pivot token。我们提出了一种将 token 标记为关键或非关键的方法,并训练了一个轻量级分类器来检测它们。该方法可被视为标准 SD 的放松版本,在保持效用的同时提供了更高的接受率。我们在各种数据集上评估了我们的方法,证明我们可以在具有可比效用的前提下实现高达 $2.5\ imes$ 的加速。源代码可在 https://github.com/amir-zsh/PAD 获取。

英文摘要:

Speculative Decoding (SD) ensures that the output matches the target model's distribution exactly. However, we argue that this distribution matching requirement is too stringent and results in unnecessarily low acceptance rates, limiting potential speedups. Instead, we advocate a reformulation of the decoding objective: the proposed decoding strategy should match the expected utility, i.e., the task-specific performance, of the target model. This perspective also aligns better with real-world use cases of LLMs, where utility (e.g., code correctness, factual accuracy) is often more important than sampling distribution. Based on this reformulation, we propose a novel decoding strategy: Pivot-Aware Speculative Decoding, which rejects only those tokens that would lead to a utility drop in the final output. We refer to these critical tokens as pivot tokens. We propose a method for labeling tokens as pivotal or non-pivotal and train a lightweight classifier to detect them. This method can be viewed as a relaxed version of standard SD, which offers much higher acceptance while preserving utility. We evaluate our method across various datasets, demonstrating that we can achieve up to $2.5\times$ speedup with comparable utility. Source code is available at https://github.com/amir-zsh/PAD.

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

↑