Meet the Future Halfway: Foresight-Guided Speculative Decoding for Looped Transformers
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
- Beyond Moral Performance: Empirical Assessment of LLMs' Moral Competence Through Judgment Stability
- K12Vista: Exploring the Boundaries of MLLMs in K-12 Education
- A Matter of TASTE: Improving Coverage and Difficulty of Agent Benchmarks
- FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing
- Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
- VESTA: Visual Exploration with Statistical Tool Agents