arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.23765cs.CLcs.AI
收藏

基于熵的推测解码:改进大语言模型推理

Entropy-Aware Token Rejection for Improving Speculative Decoding

School of Economics and Management(经济管理学院)

Tiancheng Su, Meicong Zhang, Guoxiu He

AI总结:

基于熵的推测解码通过动态熵惩罚提升大语言模型推理性能,实验表明其在多数情况下优于目标模型。

摘要:

推测解码(SD)通过使用一个小的草稿模型生成候选标记来加速大语言模型(LLM)的推理过程,这些标记由目标LLM直接接受或在拒绝时重新生成。然而,草稿模型与目标模型之间的过度对齐限制了SD的性能。为了解决这一限制,我们提出了基于熵的推测解码(EASD),这是一种无需训练的增强方法。在标准SD的基础上,EASD引入了动态基于熵的惩罚。在每个解码步骤中,我们利用采样分布的熵来量化模型的不确定性。当两个模型都表现出高熵且它们的前N个预测之间有显著重叠时,相应的标记会被拒绝,并由目标LLM重新采样。这种惩罚防止低置信度的错误传播。通过整合草稿模型验证,EASD使超越目标模型固有性能成为可能。在多个推理基准测试中,EASD在大多数情况下都优于现有的SD方法,并且在大多数情况下超过了目标LLM本身。我们进一步证明,EASD的效率与SD相当。代码可在补充材料中找到。

英文摘要:

Speculative decoding (SD) accelerates large language model (LLM) inference by using a lightweight draft model to propose tokens and a stronger target model to verify them. However, standard SD is mainly designed for acceleration, and its output quality is typically constrained by the target model. In this work, we propose Entropy-Aware Speculative Decoding (EASD), a lightweight and training-free extension of SD that improves reasoning quality through token-level entropy-guided rejection. EASD detects cases where both draft and target models exhibit high uncertainty while strongly overlapping in their top predictions. In such uncertain-agreement cases, EASD rejects the aligned token and resamples from the target distribution, preventing low-confidence errors from propagating. Experiments on challenging reasoning benchmarks show that EASD consistently improves accuracy over standard SD and reward-guided variants while maintaining comparable inference efficiency. Notably, EASD can surpass the standalone performance of the target model, suggesting that speculative decoding can serve not only as an acceleration method but also as an effective mechanism for improving reasoning quality. The code is available at https://github.com/ECNU-Text-Computing/EASD.

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

↑