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

从标记到步骤:面向验证的推测解码用于高效多步推理

From Tokens to Steps: Verification-Aware Speculative Decoding for Efficient Multi-Step Reasoning

IIT Kharagpur(印度克哈格普尔理工学院);Adobe Research(Adobe研究院)

Kiran Purohit, Ramasuri Narayanam, Soumyabrata Pal

AI总结:

本文提出SpecGuard框架,通过模型内部信号进行步骤级验证,提升多步推理的准确性和效率,实验显示在多个推理基准上准确率提升3.6%且延迟降低11%。

摘要:

推测解码(SD)通过轻量级草案模型提出输出,由更强的目标模型验证以加速大语言模型推理。然而,其以标记为中心的性质导致错误步骤传播。先前方法通过外部奖励模型缓解此问题,但带来额外延迟、计算开销和泛化限制。我们提出SpecGuard,一种面向验证的推测解码框架,利用模型内部信号进行步骤级验证。在每一步,SpecGuard采样多个草案候选,并选择最一致的步骤,然后通过两种轻量级模型内部信号的组合进行验证:(i)基于注意力的接地分数,衡量对输入和已接受步骤的归因;(ii)基于对数概率的分数,捕捉令牌级置信度。这些信号共同决定步骤是否被接受或重新计算,选择性分配计算资源。在多个推理基准上的实验表明,SpecGuard在准确率上提升3.6%,延迟降低约11%,优于SD和奖励引导的SD。

英文摘要:

Speculative decoding (SD) accelerates large language model inference by allowing a lightweight draft model to propose outputs that a stronger target model verifies. However, its token-centric nature allows erroneous steps to propagate. Prior approaches mitigate this using external reward models, but incur additional latency, computational overhead, and limit generalizability. We propose SpecGuard, a verification-aware speculative decoding framework that performs step-level verification using only model-internal signals. At each step, SpecGuard samples multiple draft candidates and selects the most consistent step, which is then validated using an ensemble of two lightweight model-internal signals: (i) an attention-based grounding score that measures attribution to the input and previously accepted steps, and (ii) a log-probability-based score that captures token-level confidence. These signals jointly determine whether a step is accepted or recomputed using the target, allocating compute selectively. Experiments across a range of reasoning benchmarks show that SpecGuard improves accuracy by 3.6% while reducing latency by ~11%, outperforming both SD and reward-guided SD.

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

↑