LoopFill: Pipelined Multi-Token Speculative Decoding for Looped Transformers

Siqi Zhu, Suozhi Huang, Yi Zhao, Jiaxuan YouarXiv 2026 · arXiv

TL;DR

LoopFill is a training-free speculative decoding algorithm designed to accelerate "Looped Transformers"—models that reuse the same layers multiple times to process a single token. By combining the model’s own internal "shallow-loop" guesses with a data-driven suffix-tree drafter, LoopFill achieves over $5\times$ speedups in decoding latency while remaining mathematically lossless.

What Problem Does This Paper Address?

Looped Transformers (like the Ouro and Huginn models) are highly parameter-efficient because they pass hidden states through a shared block of layers multiple times ($T$ iterations) before emitting a token. This "recurrent" depth allows for better latent reasoning but creates a massive bottleneck: decoding is painfully slow because each token requires $T$ sequential passes.

Previous "self-speculative" methods tried to fix this by using shallow loops (e.g., loop 1 of 4) to guess the next token. While this allows for a pipeline where different tokens are at different stages of completion, it’s limited. These methods typically only propose one token at a time, leaving "bubbles" of idle compute in the pipeline. Furthermore, if a guess is wrong, the whole pipeline stalls. The challenge is: how do we predict multiple tokens ahead in a looped architecture without the overhead of training auxiliary "draft" models?

Methods

LoopFill introduces a dual-drafter approach that coordinates two distinct sources of speculation into a single, unified draft tree:

  1. Shallow-Loop Drafting: The model uses its own internal state after just a few iterations (depth $d < T$) to predict the most likely next tokens.
  2. Suffix-Tree Drafting: A training-free, data-driven drafter that looks for matching sequences in the current prompt or historical outputs. If the model just generated "I would like," the suffix tree might suggest "to join" based on previous patterns.

Key Innovations: * Unified Draft Tree: Both drafters contribute to the same tree. This allows a suffix lookup to immediately extend a shallow-loop prediction, letting multiple future tokens enter the pipeline simultaneously. * Path-Score Pruning: To keep the computational cost in check, LoopFill maintains a "node budget" ($N$). It ranks potential tokens based on a combination of model probabilities and suffix frequencies, pruning less likely branches. * Pipelined Verification: The shared Transformer block processes candidates at different loop depths in a single batched pass. The final "full-depth" (loop $T$) output is used to verify the drafts, ensuring the model's original output distribution is perfectly preserved.

Datasets

The authors evaluated LoopFill across seven diverse benchmarks to test reasoning, coding, and general knowledge:

  • Math: GSM8K, MATH-500.
  • Reasoning: BigBench Hard (BBH).
  • Coding: HumanEval+, MBPP+.
  • SQL: Spider.
  • Multi-domain: SpecBench.

Evaluations were performed on three looped models: Ouro-1.4B, Ouro-2.6B, and Huginn-3.5B. For comparison against trained baselines (like LoopAhead), they used datasets including CodeAlpaca and UltraChat for training.

Key Insights and Ideas

  • Training-Free is Sufficient: One of the most surprising findings is that LoopFill outperforms trained speculative drafters (like LoopAhead). By leveraging the inherent "copy-paste" nature of language via suffix trees, it fills pipeline bubbles more effectively than specialized neural heads.
  • Complementary Strengths: Shallow loops are excellent at maintaining local linguistic coherence, while suffix trees are great at retrieving long-range repetitions from the prompt. Combining them creates a much longer "correct draft length" than either could achieve alone.
  • The "Bubble" Solution: In standard pipelined decoding, you can only start a new token every $d$ steps. Suffix trees allow the model to "jump the gun" and insert multiple tokens into the pipeline at once, effectively saturating the GPU's compute capacity.
  • Lossless Acceleration: Because the final verification always uses the full $T$ loops, LoopFill is a "plug-and-play" acceleration that doesn't sacrifice a single point of accuracy or change the model's behavior.

Key Results

  • Massive Speedups: LoopFill achieved an average decoding speedup of $5.85\times$ on Ouro-2.6B and $5.13\times$ on Huginn-3.5B compared to standard greedy decoding.
  • Outperforming SOTA: It exceeded the performance of LoopAhead (the previous strongest baseline) by 40% on Ouro-2.6B and 25% on Huginn-3.5B.
  • Throughput Gains: In high-concurrency scenarios (batch size 16), LoopFill maintained a $2.50-2.81\times$ throughput advantage over standard autoregressive decoding.
  • High Hit Rates: On Ouro-2.6B, the top-1 token after just one loop matches the final output 88.8% of the time. Adding the suffix tree extended the mean correct draft length from 1.34 to 2.28 tokens.

Limitations and Future Work

  • Predictability Dependence: The suffix-tree drafter relies on patterns existing in the prompt or history. In highly creative or unpredictable tasks, the "hit rate" for suffix drafts drops, reducing the speedup.
  • Node Budget Trade-offs: While a larger node budget ($N$) improves single-request latency, it can decrease total system throughput when many requests are being served simultaneously because the extra draft nodes compete for GPU memory and compute.
  • Future Directions: The authors suggest exploring adaptive budgets that can dynamically adjust the number of draft nodes based on how predictable the current sequence is or how busy the server is.

Summary updated

Abstract

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.85\times$ on Ouro-2.6B and $5.13\times$ 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.
BibTeX
@misc{zhu2026loopfill,
  author = {Siqi Zhu and Suozhi Huang and Yi Zhao and Jiaxuan You},
  title = {{LoopFill: Pipelined Multi-Token Speculative Decoding for Looped Transformers}},
  year = {2026},
  eprint = {2611.19649},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19649},
}
Figure