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

TALON:具有自适应令牌树的置信度感知推测解码

TALON: Confidence-Aware Speculative Decoding with Adaptive Token Trees

University of Science and Technology of China(中国科学技术大学);Shanghai AI Laboratory(上海人工智能实验室);Zhejiang University(浙江大学)

Tianyu Liu, Qitan Lv, Yuhao Shen, Xiao Sun, Xiaoyan Sun

AI总结:

TALON通过自适应令牌树扩展框架,在不牺牲质量的前提下提升LLM推理速度,实现5.16倍的端到端加速。

摘要:

推测解码(SD)已成为加速LLM推理而不牺牲输出质量的标准技术。最近的推测解码进展从基于链式顺序的草稿生成转向了树结构的生成,其中草稿模型构建候选令牌的树来并行探索多个可能的草稿。然而,现有的树状SD方法通常构建固定宽度和深度的草稿树,这无法适应令牌和上下文的差异难度。因此,草稿模型无法动态调整树结构以在困难令牌上提前停止并在简单令牌上扩展生成。为了解决这些挑战,我们引入了TALON,一种无需训练、基于预算的自适应树扩展框架,可嵌入现有的树状方法中。与静态方法不同,TALON迭代构建草稿树,直到满足固定令牌预算,使用一种混合扩展策略,自适应地将节点预算分配给草稿树的每一层。该框架自然地将草稿树塑造成“深且窄”的形式用于确定性上下文,以及“浅且宽”的形式用于不确定的分支,有效优化了在给定预算下的探索宽度和生成深度之间的权衡。在5个模型和6个数据集上的广泛实验表明,TALON在性能上一致优于最先进的EAGLE-3,达到自回归解码的最高5.16倍端到端加速。

英文摘要:

Speculative decoding (SD) has become a standard technique for accelerating LLM inference without sacrificing output quality. Recent advances in speculative decoding have shifted from sequential chain-based drafting to tree-structured generation, where the draft model constructs a tree of candidate tokens to explore multiple possible drafts in parallel. However, existing tree-based SD methods typically build a fixed-width, fixed-depth draft tree, which fails to adapt to the varying difficulty of tokens and contexts. As a result, the draft model cannot dynamically adjust the tree structure to early stop on difficult tokens and extend generation for simple ones. To address these challenges, we introduce TALON, a training-free, budget-driven adaptive tree expansion framework that can be plugged into existing tree-based methods. Unlike static methods, TALON constructs the draft tree iteratively until a fixed token budget is met, using a hybrid expansion strategy that adaptively allocates the node budget to each layer of the draft tree. This framework naturally shapes the draft tree into a "deep-and-narrow" form for deterministic contexts and a "shallow-and-wide" form for uncertain branches, effectively optimizing the trade-off between exploration width and generation depth under a given budget. Extensive experiments across 5 models and 6 datasets demonstrate that TALON consistently outperforms state-of-the-art EAGLE-3, achieving up to 5.16x end-to-end speedup over auto-regressive decoding.

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

↑