Meet the Future Halfway: Foresight-Guided Speculative Decoding for Looped Transformers

arXiv:2611.40037 · cs.AI · Submitted 2026-11-29 · Read on arXiv

cs.AI

Submitted: 2026-11-29

Updated: 2026-11-29

License: http://creativecommons.org/licenses/by/4.0/

The gist: Looped transformers gain effective depth through repeated use of shared layers, but sequential recurrence makes autoregressive generation expensive.

Terminology

Abstract

Looped transformers gain effective depth through repeated use of shared layers, but sequential recurrence makes autoregressive generation expensive. Existing self-speculative pipelines overlap shallow prediction with full-depth verification, while their lookahead remains token-wise. We propose LoopAhead, a training-free decoding framework that uses early bonus logits to sustain longer drafts and advance them through the pipeline as blocks. An online draft automaton incorporates first-stage top- k predictions before final verification completes, supplying fresh contextual candidates for compact draft trees. Shallow verification selects token sequences whose computed states advance together through the remaining loops in a block wavefront pipeline, overlapping drafting with verification. Across six models and five benchmarks, our method achieves average speedups of 3.75 -- 7.97 times over SGLang autoregressive decoding under greedy generation. Code: https://github.com/whucs21Mzy/loopahead.

Related papers