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

校准的推测解码:基于频率的候选选择以实现高效的推理

Calibrated Speculative Decoding: Frequency-Guided Candidate Selection for Efficient Inference

Shanghai Jiao Tong University(上海交通大学);Alibaba Cloud Computing(阿里云 computing)

Xuwen Zhou, Fangxin Liu, Chao Wang, Xiao Zheng, Hao Zheng, Min He, Li Jiang, Haibing Guan

AI总结:

本文提出校准的推测解码,通过频率引导的候选选择和概率保护的接受机制,提升大语言模型推理效率,实测效果优于现有方法。

摘要:

推测解码通过让草稿词绕过完整验证来加速自回归生成,但传统框架常因频繁的假拒绝而受限,尤其是在草稿模型生成语义正确但词法不同的输出时。本文提出了校准的推测解码(CSD),一种无需训练的框架,通过频率引导的候选选择和概率保护的接受机制,恢复被标准验证丢弃的有效词。CSD包含两个轻量级模块:在线纠正记忆,通过聚合历史拒绝提出反复分歧模式作为救援候选;语义一致性门控,通过概率比验证候选的可接受性而非精确词匹配。在多种大语言模型上的评估表明,CSD在推理效率上优于现有方法,最大吞吐量提升达2.33倍。CSD在所有任务中保持模型准确性,同时在复杂推理数据集上进一步提升性能。这些结果证明CSD是实用大语言模型部署中高效、轻量的解决方案。

英文摘要:

Speculative decoding accelerates autoregressive generation by letting draft tokens bypass full verification, but conventional frameworks suffer from frequent false rejections, particularly when draft models produce semantically correct but lexically divergent outputs. In this paper, we present Calibrated Speculative Decoding (CSD), a training-free framework that recovers valid tokens discarded by standard verification. Guided by the principle of "Frequency-Guided Candidate Selection and Probability-Guarded Acceptance," CSD incorporates two lightweight modules: Online Correction Memory, which aggregates historical rejections to propose recurring divergence patterns as rescue candidates, and Semantic Consistency Gating, which verifies candidate admissibility using probability ratios instead of exact token matching. Our evaluation across diverse large language models demonstrates that CSD outperforms existing methods, achieving a peak throughput speedup of 2.33x. CSD preserves model accuracy across all tasks while further boosting performance on complex reasoning datasets. These results establish CSD as a highly effective, lightweight solution for practical LLM deployments.

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

↑