arXiv:2610.35556cs.CLOct 2026

Manuscript Offprint

arXiv:2610.35556

LoopFold: Parallelizing Recurrent Depth in Looped Transformers

Feichen Song, Boyi Zeng, Yiqin Hao, Shixiang Song, He Li, Yizhou Yang, Zitong Wang, Yifan Liu, Ziwei He, Zhouhan Lin

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

Abstract

Looped Transformers increase computation per token by repeatedly applying a shared backbone, offering a way to improve language modeling and downstream task performance at a fixed backbone parameter count. However, each loop depends on the preceding loop, so increasing recurrent depth also increases decoding latency. Existing approaches include Parallel Loop Transformers, which reduce latency by overlapping loop computation across token positions, but yield rapidly diminishing marginal accuracy gains at larger depths. To address this challenge, we introduce LoopFold, which folds computation at multiple recurrent depths into parallel batches for the same token prefix. A lightweight predictor estimates inputs to later loops so they can start before earlier loops finish. A corrector then refines the outputs of these later loops using newly available results from earlier loops. All components are trained jointly using only the final next-token prediction loss. In experiments with 1.4B models, deeper LoopFold configurations achieve progressively higher average zero-shot accuracy across eight tasks, rising from 53.41% to 56.38%. Vanilla looped models and PLT show limited gains over the same depth range. Compared with a nine-loop vanilla model, LoopFold uses five sequential stages and additional parallel computation to reduce decoding latency by 46%.

1. Introduction

Looped Transformers increase computation per token by repeatedly applying a shared backbone (Dehghani et al., 2019; Geiping et al., 2025a). This recurrent depth can improve language modeling and downstream task performance at a fixed backbone parameter count (Saunshi et al., 2025). However, each loop depends on the preceding loop's output, so greater depth requires more sequential backbone stages and increases the wall-clock time needed to generate each token.

Existing approaches reduce decoding latency by overlapping recurrent computation across token positions. Parallel Loop Transformers (PLT) shift hidden states by one token between loops, allowing different loop depths to run concurrently using states from neighboring tokens (Wu et al., 2025). Adding loops initially improves accuracy, but the positional mismatch persists at every loop and the marginal gains quickly diminish at larger depths (Yang et al., 2026). Recurrent-depth parallel samplers refine several token drafts in parallel, but reducing the number of recurrent refinement steps between draft updates trades accuracy for faster decoding (Geiping et al., 2025b). The challenge is to start later loops before their inputs are available while still incorporating the results of earlier loops.

We introduce LoopFold to fold recurrent depth into parallel computation by batching hidden states from different depths of the same token prefix. Specifically, a lightweight predictor estimates the inputs to later loops, allowing them to start before the preceding loops finish. After each batched evaluation, a corrector uses the newly available earlier-loop results to refine outputs computed from the estimated inputs. These corrected states feed the next stage, and the deepest corrected state predicts the next token.

With 1.4B models, LoopFold achieves lower PPL and higher mean zero-shot accuracy as the target depth index increases (Figures 3 and 4). At target depth index D = 9, LoopFold requires only five sequential stages rather than nine, reducing latency by 46%. It improves accuracy on all eight evaluated tasks, with Avg-8 increasing by 2.20 percentage points relative to the vanilla looped model, at the cost of additional parallel computation. At matched training backbone-compute budgets of 1.68 and 2.16 ZFLOPs, and separately at comparable decoding latency, LoopFold achieves lower PPL and higher mean zero-shot accuracy than vanilla looped models. LoopFold thus improves the use of recurrent computation in two complementary ways: it can yield better quality at a fixed total backbone budget, and it can exploit available parallelism to perform additional recurrent computation without proportionally increasing decoding latency.

References (24)