arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.20104cs.LGcs.AI
收藏

少写多取:用于推测解码的混合树构建

Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding

Zhejiang University(浙江大学);Qwen Applications Business Group of Alibaba(阿里巴巴量子计算实验室)

Yuhao Shen, Tianyu Liu, Xinyi Hu, Quan Kong, Baolin Zhang, Jun Dai, Jun Zhang, Shuang Ge, Lei Chen, Yue Li, Mingcheng Wan, Cong Wang

AI总结:

本文提出了一种混合树构建方法Graft,通过结合剪枝和检索操作,解决了推测解码中资源分配的帕累托权衡问题,实现了在不同部署场景下的速度提升和接受率优化。

摘要:

推测解码(SD)通过 draft-then-verify 模式加速大语言模型推理。为最大化接受率,近期方法构建了 expansive draft trees,但导致严重的 VRAM 带宽和计算开销,成为端到端加速的瓶颈。虽然动态深度剪枝可通过移除边际分支减少延迟,但也会丢弃潜在有效的候选,阻碍接受率达到密集树的上限。在本文中,我们识别了资源分配中的关键机会:从密集到剪枝的转换释放了显著的计算预算。为了打破这一帕累托权衡,我们引入 Graft,一种补偿框架,将剪枝和检索作为相互强化的操作。剪枝提供足够的预算用于检索,而检索补偿剪枝引起的覆盖损失并恢复接受长度。通过采用顺序的 `prune-then-graft' 机制,Graft 将高预测性的检索 token 插入剪枝打开的位置,用几乎零开销填补拓扑缺口。Graft 完全无训练且无损失。全面评估显示,Graft 在实际部署设置中建立了新的帕累托前沿,包括短上下文生成、长上下文生成和大规模模型。在短上下文基准上,它实现了高达 5.41× 的加速,并在大规模 Qwen3-235B 上将平均加速率提高至 EAGLE-3 的 21.8%。我们还初步探讨了将 Graft 应用于 DFlash 风格的块解码范式,提供了扩展 grafting 以超越自回归 draft trees 的初步证据和见解。

英文摘要:

Speculative decoding (SD) accelerates large language model inference by leveraging a draft-then-verify paradigm. To maximize the acceptance rate, recent methods construct expansive draft trees, which unfortunately incur severe VRAM bandwidth and computational overheads that bottleneck end-to-end speedups. While dynamic-depth pruning can reduce this latency by removing marginal branches, it also discards potentially valid candidates, preventing the acceptance rate from reaching the upper bound of dense trees. In this paper, we identify a critical opportunity in resource allocation: the transition from dense to pruned drafting frees up significant computational budget. To break this Pareto tradeoff, we introduce Graft, a compensation framework that couples pruning and retrieval as mutually reinforcing operations. Pruning supplies sufficient budget for retrieval, while retrieval compensates for pruning-induced coverage loss and recovers accepted length. By employing a sequential `prune-then-graft' mechanism, Graft attaches highly predictive retrieved tokens into positions opened by pruning, filling the topological gaps with near-zero overhead. Graft is entirely training-free and lossless. Comprehensive evaluations show that Graft establishes a new Pareto frontier across practical deployment settings, including short-context generation, long-context generation, and large-scale models. On short-context benchmarks, it achieves up to 5.41$\times$ speedup and improves average speedup over EAGLE-3 by up to 21.8% on the large-scale Qwen3-235B. We also provide a preliminary exploration of applying Graft to the DFlash-style block drafting paradigm, offering initial evidence and insights for extending grafting beyond autoregressive draft trees.

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

↑