LoopAhead: Speculating Ahead for Faster Decoding in Looped Language Models

Zixuan Liu, Nan Xue, Rui Bao, Yuhang Xu, Xiaofeng Cao +2 more
10/15/2026
cs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Looped Transformers improve parameter efficiency by repeatedly applying the same Transformer layers. However, generating each token still involves sequential computation and repeated access to model weights, leading to high decoding latency. Recent pipelined self-speculative decoding methods reduce this delay by drafting tokens from early-loop predictions and asynchronously advancing tokens at different recurrent depths in the same batch, but they do not fully exploit early-loop features for longer lookahead and still spend computation verifying incorrect speculative branches. We introduce \method, a speculative decoding framework for looped transformers that enables earlier drafting of future tokens and assigns complementary roles to different recurrent depths. A lightweight lookahead drafter (LAD) predicts multiple future tokens with early-loop states, and deeper-loop feedback helps decide which draft branches to continue and which to pause, while the full-depth model makes the final token decisions. LoopAhead achieves up to 7.82x decoding speedup over autoregressive decoding while preserving the target model's output distribution.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026loopahead,
  title  = {LoopAhead: Speculating Ahead for Faster Decoding in Looped Language Models},
  author = {Zixuan Liu and Nan Xue and Rui Bao and Yuhang Xu and Xiaofeng Cao and Jiangchao Yao and Zhiyong Chen},
  year   = {2026},
  eprint = {2610.21594},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.21594v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.21594.svg)](https://codeofpaper.com/paper/2610.21594)

Discussion