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

Goose:用于无训练推测解码的各向异性推测树

Goose: Anisotropic Speculation Trees for Training-Free Speculative Decoding

Japan Advanced Institute of Science and Technology (JAIST)(日本先端科学技术大学院大学)

Tao Jin, Phuong Minh Nguyen, Naoya Inoue

AI总结:

Goose通过构建适应性脊柱树,利用高接受率的上下文匹配令牌和低接受率的替代分支,实现无训练推测解码的各向异性树结构,提升解码速度。

摘要:

推测解码通过在单次前向传递中起草多个候选令牌并验证它们来加速大语言模型推理。候选者被组织成树状结构:更深层次的树每步接受更多令牌,但增加深度会牺牲广度(回退选项)在固定验证预算下。现有无训练方法从单一令牌源起草并塑造树状结构,不区分候选者质量的来源。我们发现两种常见的无训练令牌源——n-gram匹配从输入上下文复制的令牌,以及来自先前前向传递的统计预测——在接受率上差异显著(~6倍中位数差距,范围2-18倍,五种模型和五种基准)。我们证明当存在此类质量差距时,最优树是各向异性的(不对称):可靠令牌应形成深链,而不可靠令牌则扩展为宽分支,突破平衡树的深度限制。我们实现了这种结构,通过GOOSE无训练框架构建适应性脊柱树——一个由高接受率上下文匹配令牌组成的深链,每个节点都有低接受率替代分支的宽分支。我们证明每步接受的令牌数至少与单独使用任一来源相同。在五种LLM(7B-33B)和五种基准上,GOOSE实现了1.9-4.3倍无损加速,比平衡树基线在同一预算下提升了12-33%。

英文摘要:

Speculative decoding accelerates large language model inference by drafting multiple candidate tokens and verifying them in a single forward pass. Candidates are organized as a tree: deeper trees accept more tokens per step, but adding depth requires sacrificing breadth (fallback options) under a fixed verification budget. Existing training-free methods draft from a single token source and shape their trees without distinguishing candidate quality across origins. We observe that two common training-free token sources -- n-gram matches copied from the input context, and statistical predictions from prior forward passes -- differ sharply in acceptance rate (~6x median gap, range 2-18x across five models and five benchmarks). We prove that when such a quality gap exists, the optimal tree is anisotropic (asymmetric): reliable tokens should form a deep chain while unreliable tokens spread as wide branches, raising the depth ceiling of balanced trees. We realize this structure in GOOSE, a training-free framework that builds an adaptive spine tree: a deep chain of high-acceptance context-matched tokens with wide branches of low-acceptance alternatives at each node. The resulting tree provably accepts at least as many tokens per step as either source alone. On five LLMs (7B-33B) and five benchmarks, GOOSE achieves 1.9-4.3x lossless speedup, outperforming balanced-tree baselines by 12-33% under the same budget.

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

↑