LoopFill:面向循环Transformer的流水线多Token推测解码
研究论文 · 2026/11/17
LoopFill 是一种无需训练的推测解码算法,用于循环 Transformer 的自回归解码。它结合多令牌后缀草稿与浅层循环预测,构建单一草稿树,使多个未来令牌能同时进入流水线,并通过全深度验证保持模型输出分布。在七个基准测试中,LoopFill 在 Ouro-2.6B 和 Huginn-3.5B 上分别实现 5.85 倍和 5.13 倍的平均加速,比最强基线 LoopAhead 分别高出 40% 和 25%。
LoopFill 显著降低了循环 Transformer 的解码延迟,无需训练即可实现高达 5.85 倍的加速,且保持输出分布不变,对高效部署循环大模型具有重要价值。
Looped Transformers improve parameter efficiency by repeatedly applying the same Transformer layers. During autoregressive decoding, however, generating each token requires several sequential passes through these layers, leading to high decoding latency. Pipelined self-speculative methods use shallow-loop predictions to process tokens at different loops in the same batch, but each token must reach the drafting depth before the next can enter the pipeline. We introduce LoopFill, a training-free speculative decoding algorithm for looped LLM that combines multi-token suffix drafts with shallow-loop predictions in a single draft tree. Both drafters contribute to one tree, so a suffix lookup can immediately extend a shallow prediction and several future tokens can enter the pipeline together. The shared block computes the highest-scoring draft candidates at different loop depths in one batch, and full-depth verification preserves the model's autoregressive output distribution. Across seven benchmarks, LoopFill's average speedup over greedy autoregressive decoding is 5.85times on Ouro-2.6B and 5.13times on Huginn-3.5B. The speedups exceed those of LoopAhead, the strongest baseline, by \(40\%\) on Ouro-2.6B and \(25\%\) on Huginn-3.5B.