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

通过无损分层推测解码克服联合不可解性

Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding

Qwen Team, Alibaba Inc.(阿里云团队,阿里巴巴公司);University of Washington(华盛顿大学)

Yuxuan Zhou, Fei Huang, Heng Li, Fengyi Wu, Tianyu Wang, Jianwei Zhang, Junyang Lin, Zhi-Qi Cheng

AI总结:

本研究提出分层推测解码方法,通过平衡概率质量克服联合不可解性,提升解码效率并保持分布保真度。

摘要:

验证是在保持分布保真度的同时提高推理速度的关键瓶颈所在。近期研究表明,序列级验证相比逐个token验证能够接受更多的token。然而,现有解决方案往往依赖于代理近似或受到部分信息的限制,难以应对联合不可解性。在本工作中,我们提出了一种可证明无损验证的方法——分层推测解码(HSD),该方法显著提高了预期接受token的数量,并通过在可访问分支之间平衡过剩和不足的概率质量来克服联合不可解性。我们的大规模实验表明,HSD在不同模型家族和基准上均实现了接受率的一致提升。此外,其强大的可解释性和通用性使其能够轻松整合到各种推测解码框架中。值得注意的是,将HSD整合到EAGLE-3中可获得超过12%的性能提升,建立了无需牺牲分布保真的最新解码效率。代码可在https://github.com/ZhouYuxuanYX/Hierarchical-Speculative-Decoding获取。

英文摘要:

Verification is a key bottleneck in improving inference speed while maintaining distribution fidelity in Speculative Decoding. Recent work has shown that sequence-level verification leads to a higher number of accepted tokens compared to token-wise verification. However, existing solutions often rely on surrogate approximations or are constrained by partial information, struggling with joint intractability. In this work, we propose Hierarchical Speculative Decoding (HSD), a provably lossless verification method that significantly boosts the expected number of accepted tokens and overcomes joint intractability by balancing excess and deficient probability mass across accessible branches. Our extensive large-scale experiments demonstrate that HSD yields consistent improvements in acceptance rates across diverse model families and benchmarks. Moreover, its strong explainability and generality make it readily integrable into a wide range of speculative decoding frameworks. Notably, integrating HSD into EAGLE-3 yields over a 12% performance gain, establishing state-of-the-art decoding efficiency without compromising distribution fidelity. Code is available at https://github.com/ZhouYuxuanYX/Hierarchical-Speculative-Decoding.

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

↑