arXiv(opens in a new tab)cs.AIOct 2026Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:2610.21594

LoopAhead: Speculating Ahead for Faster Decoding in Looped Language Models

Zixuan Liu, Nan Xue, Rui Bao, Yuhang Xu, Xiaofeng Cao, Jiangchao Yao, Zhiyong Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 LoopAhead, 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.82×7.82\times decoding speedup over autoregressive decoding while preserving the target model's output distribution.

1 Introduction

Looped Transformers have recently attracted increasing attention as a parameter-efficient architecture for large language models (McLeish et al., 2025; Geiping et al., 2026). By repeatedly applying a shared Transformer stack across recurrent depths, they achieve performance comparable to substantially deeper and larger models while using significantly fewer parameters (Saunshi et al., 2025; Dehghani et al., 2018; Zhu et al., 2025). However, under full-depth autoregressive decoding, a looped model completes all configured recurrent passes before producing each token (Cho et al., 2026),

Key observation

Figure

Faster Lossless Decoding

LoopSpec LoopAhead

Figure 1: Key observations and decoding speedups of LoopAhead. Top left shows Ouro-1.4B's task accuracy when generating at a fixed loop depth r. Top right shows token agreement between depth-r and full-depth predictions under the same prefixes. The bottom panel shows representative decoding speedups over AR, with percentages indicating throughput gains over LoopSpec.

and its parameters are repeatedly accessed across iterations for every generated token, leading to increased memory-bandwidth pressure (Hooper et al., 2025). The resulting latency makes inference acceleration particularly relevant to looped models (Schwethelm et al., 2026; Cho et al., 2026).

Speculative decoding accelerates autoregressive inference by generating candidate tokens with a lightweight drafter and verifying them in parallel with the target model (Leviathan et al., 2023; Chen et al., 2023; Jiang et al., 2026). Feature-based methods further improve drafting using target hidden representations (Li et al., 2024b,a, 2025; Zhang et al., 2025). However, these methods generally separate drafting from verification and do not fully exploit the shared recurrent structure of looped Transformers. Recent methods such as LoopSpec (Cho et al., 2026) and WaveFront (Ha and Kim, 2026) address this by pipelining early-loop proposals with full-depth verification, allowing tokens

∗^{*}Corresponding author.

at different recurrent depths to be processed together. In particular, LoopSpec achieves substantial speedups without training an additional drafter. Nevertheless, each new proposal requires its predecessor to reach a specified recurrent depth, limiting how early future tokens can be generated. Moreover, incorrect branches may continue consuming computation until full-depth verification.

To go beyond the speedup achieved by pipelining alone, we explore how recurrent states can support both drafting and early candidate checking. Prior work has shown the value of target features and early-layer predictions for speculative drafting (Li et al., 2024b; Elhoushi et al., 2024). Our observation in Figure 1 shows that generating complete answers using only early loops can substantially reduce task accuracy. Yet early-loop predictions already show high token agreement with full-depth outputs under the same prefixes, and this agreement rises rapidly over subsequent loops. These observations motivate using early-loop states to draft multiple future tokens and using intermediate-loop feedback to guide execution of speculative branches before full-depth verification.

Motivated by these observations, we introduce LoopAhead, a novel speculative decoding framework for looped language models that combines early-loop multi-token drafting with intermediate-loop feedback-guided scheduling. A separately trained lightweight lookahead drafter predicts multiple future candidates from selected early-loop states and a native proposal anchor. Feedback from intermediate loops guides the recurrent computation, suspension and resumption. Our experiments show that feedback-guided scheduling reduces computation on unpromising branches while improving decoding throughput, making early lookahead more efficient. LoopAhead remains lossless since the scheduler only controls speculative execution, while all final output decisions remain determined by the full-depth target verification rule. Our contributions are:

• We introduce LoopAhead, a lossless speculative decoding framework for looped language models. Its lookahead drafter uses early-loop states and native proposal anchors to predict multiple future positions, and uses a compact draft vocabulary to reduce drafting overhead.

• We design a feedback-guided scheduling mechanism that leverages intermediate recurrent representations to dynamically suspend and resume speculative branches under bounded execution budgets. Experimental results demonstrate that our scheduling strategy effectively limits wasted computation caused by unpromising speculative paths.

• We evaluate LoopAhead across diverse looped language models and benchmarks under both greedy and sampling decoding settings. LoopAhead achieves up to 7.82×7.82\times decoding speedup over AR as shown in Figure 1. Further analysis and ablation studies demonstrate the effectiveness of components and their complementary contributions to performance.

References (43)