Loop Behind: Rethinking Where Extra Loops Pay Off in Looped Language Models

Community Article
Published November 24, 2026

Xijie Gong, Tonghan Wang†

College of AI, Tsinghua University, Beijing, China

Correspondence to: Tonghan Wang (thw@mail.tsinghua.edu.cn)

Code: https://github.com/XijieGo/LoopBehind

Abstract

Looped language models (LoopLMs) improve performance by repeatedly applying shared layers, with gains commonly attributed to giving the current token extra computation to refine its next-token prediction. Yet each loop also writes key-value states (Loop KV) read by later tokens, so native decoding couples both effects. To disentangle them, we independently vary how many loops the current token runs before readout and the depth of the Loop KV it reads. On Dory-4B across 12 benchmarks, one loop reading Loop KV from loop 2 recovers 6.8 of the 7.2 points gained by native two-loop decoding, whereas two loops reading from loop 1 recover only 0.8. Thus, a token's extra loops pay off primarily by providing deeper Loop KV for later tokens rather than refining its own next-token prediction. We propose Loop-Behind (LB) Decoding, which reads out each token after its first loop and runs its remaining loops in parallel with later tokens. Without retraining, LB closely matches multi-loop accuracy with a one-loop KV cache and near-one-loop speed. Our finding and LB also apply to Huginn-0125 (matching 16-loop accuracy at 1.75× speedup). Our code is available at https://github.com/XijieGo/LoopBehind.

1. Introduction

Looped language models (LoopLMs) scale computation through recurrent depth rather than additional parameters (Dehghani et al., 2018; Geiping et al., 2025; Zhu et al., 2025). For each token, LoopLMs repeatedly apply a shared block of Transformer layers. Each application is a loop, and previous work shows that LoopLMs can simulate multi-step chain-of-thought (CoT) reasoning in latent space (Saunshi et al., 2025) and additional loops can improve performance on reasoning tasks (Geiping et al., 2025; Zhu et al., 2025). These results have helped shape a common view of LoopLMs as latent reasoners (Geiping et al., 2025; Zhu et al., 2025): extra loops help by giving the model more latent computation at the current token before it predicts the next. Conventional decoding reflects this view by finishing all loops serially before readout, so each extra loop directly adds serial depth to every decoding step.

Yet the effects of an extra loop do not end with the current token. Each loop writes key-value (KV) states that later tokens can attend to, and we refer to these states as Loop KV. Geiping et al. (2025) observe that a token's early loops can attend to deeper Loop KV from preceding tokens, so the effective depth can exceed the loop count. What remains unclear is how much Loop KV contributes to the gains from extra loops. We therefore ask: How much of the gain from extra loops comes from running them at the current token before readout, and how much comes from the deeper Loop KV supplied by preceding tokens?

Screenshot 2026-11-24 at 19.25.18

We design experiments to investigate this question in Huginn-style LoopLMs, which place a recurrent block between an input block and an output block (Figure 1, left). Let KVl\mathrm{KV}_l denote the Loop KV written at loop ll. The two native configurations, L1\mathrm{L}_1 and L2\mathrm{L}_2, run one and two loops per token, respectively, with each loop ll reading KVl\mathrm{KV}_l from preceding tokens. We additionally introduce two decoupled variants, where the bracket indicates which Loop KV the current token reads.

(I) L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] predicts the next token after a single loop, as in L1\mathrm{L}_1, while reading KV2\mathrm{KV}_2 written by preceding tokens under native L2\mathrm{L}_2.

(II) L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] predicts the next token after two loops, as in L2\mathrm{L}_2, while both loops read KV1\mathrm{KV}_1 written by preceding tokens under native L1\mathrm{L}_1.

Thus, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] should approach L2\mathrm{L}_2 if extra-loop gains come from deeper Loop KV, whereas L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] should do so if they come from deeper computation at the current token before readout.

We evaluate these configurations on Dory-4B (NVIDIA, 2026), a Huginn-style LoopLM, across 12 benchmarks spanning coding, agentic tasks, mathematics, science, and logic. On average, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] reaches 47.3% accuracy, nearly matching native L2\mathrm{L}_2 (47.7%), whereas L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] remains at 41.3%, barely above native L1\mathrm{L}_1 (40.5%). Reading KV2\mathrm{KV}_2 alone thus recovers 6.8 of the 7.2 percentage points gained by L2\mathrm{L}_2 over L1\mathrm{L}_1, compared with only 0.8 points from adding a second loop at the current token while keeping KV1\mathrm{KV}_1. This advantage of L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] over L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] holds on all 12 benchmarks, with native L2\mathrm{L}_2 adding only a small gain over L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] on a few of them. Together, these results pinpoint where extra loops pay off: a token's extra loops contribute mainly through the deeper Loop KV they produce for subsequent tokens, rather than by refining that token's own prediction before readout.

This finding challenges the common belief regarding when the extra loop needs to run. Since the second loop contributes primarily through the Loop KV it writes for later tokens, the model can instead loop behind the readout—deferring it to the next decoding step. We realize this idea in Loop-Behind (LB) Decoding. In the two-loop setting, LB reads out each token after its first loop, then executes its second loop in parallel with the next token's first loop in a single forward pass (Figure 3). Within this pass, causal attention allows the new token to read the KV2\mathrm{KV}_2 newly written by the previous token without recomputing them under native L2\mathrm{L}_2 as in L1[KV2]\mathrm{L}_1[\mathrm{KV}_2]. More generally, for LL loops, LB executes the remaining loops of up to L−1L-1 pending earlier tokens alongside the new token's first loop in the same forward pass.

LB thus shifts the extra loop from serial depth to parallel width across tokens. This breaks the conventional paradigm of strictly sequential token processing: computation of the next token can begin before all loops for the current token have completed. LB requires no retraining, no architectural changes, and only a KV cache of one-loop size. Parallel looped Transformers (Wu et al., 2025; Yang et al., 2026) also overlap loops across tokens, but require training.

We implement LB in vLLM (Kwon et al., 2023). Across two to four loops on Dory-4B, LB retains most of native multi-loop accuracy on 12 benchmarks (reaching 47.2% at L=2L=2 and 48.3% at L=4L=4, up from 40.5% for L1\mathrm{L}_1) with only a one-loop KV cache and native prefill cost. On a single H100 GPU, LB stays near L1\mathrm{L}_1 decoding speed, delivering a 1.36–1.53× speedup over L2\mathrm{L}_2 across 1K–96K contexts and up to 2.56× over L4\mathrm{L}_4. Compared with self-speculative decoding, it trades a slight drop in accuracy for substantially better decoding speed, KV memory, and prefill efficiency. We observe the same asymmetry between deeper Loop KV and deeper current-token computation before readout in Huginn-0125 (Geiping et al., 2025), where LB matches the 57.4% accuracy of native 16-loop decoding while achieving a 1.75× speedup.

2. Preliminaries

2.1. Looped Language Models

LoopLMs follow two main designs, which we name after their representative models.

Huginn-style LoopLMs (Geiping et al., 2025; NVIDIA, 2026) divide their layers into three blocks. An input block P\mathcal{P} maps the tokens to input states, a recurrent block R\mathcal{R} is applied LL times, and an output block C\mathcal{C} predicts the next token. For token tt,

et=P(x≤t),ht(ℓ)=R(ht(ℓ−1),et),ℓ=1,…,L,p(xt+1∣x≤t)=C(ht(L)).(1) \begin{aligned} e_t &= \mathcal{P}(x_{\leq t}),\\ h_t^{(\ell)} &= \mathcal{R}\left(h_t^{(\ell-1)},e_t\right), \quad \ell=1,\ldots,L,\\ p(x_{t+1}\mid x_{\leq t}) &= \mathcal{C}\left(h_t^{(L)}\right). \end{aligned} \tag{1}

Each application of R\mathcal{R} is one loop, and the recurrent block receives the input state ete_t anew at every loop. The initial state ht(0)h_t^{(0)} is random noise in Huginn and the input state ete_t in Dory. All three blocks consist of causal Transformer layers, so token tt attends to preceding tokens inside every block. We write LK\mathrm{L}_K for native decoding with KK loops, K≥1K\geq 1.

Ouro-style LoopLMs (Zhu et al., 2025) loop the whole model and have no separate input or output block. The token embedding ht(0)h_t^{(0)} enters the first loop, and every loop applies the same stack of causal Transformer layers F\mathcal{F} to the hidden state of the previous loop,

ht(ℓ)=F(ht(ℓ−1)),p(xt+1∣x≤t)=H(ht(ℓ)).(2) h_t^{(\ell)}=\mathcal{F}\left(h_t^{(\ell-1)}\right), \quad p(x_{t+1}\mid x_{\leq t})=\mathcal{H}\left(h_t^{(\ell)}\right). \tag{2}

A shared head H\mathcal{H} can predict the next token after any loop ℓ\ell, a learned exit gate decides how many loops a token uses, and every loop again writes its own KV.

2.2. KV Caching and Reuse in LoopLMs

At each loop, every attention layer of the recurrent block computes keys and values for the current token, and later tokens reuse this Loop KV through causal attention. In per-loop caching, the Loop KV of all LL loops is retained separately, so each loop of a token reads the Loop KV that preceding tokens wrote at the same loop. This preserves loop-specific KV but requires storing LL sets of recurrent-block KV.

Alternatively, last-loop caching retains only one set of KV per token and recurrent layer, overwriting earlier-loop KV as computation proceeds. Once a preceding token has completed its loops, later tokens reuse its final-loop KV across their own loops. This reduces the recurrent-block KV cache to the size of a single loop, although it changes which KV the intermediate loops read (Geiping et al., 2025; Zhu et al., 2025; Huang et al., 2026b).

2.3. Experimental Setup

Model. We work on Dory-4B (NVIDIA, 2026), a post-trained Huginn-style LoopLM, with 8 input layers, 20 recurrent layers, and 8 output layers that interleave sliding-window and full attention. Dory supports one to four loops during inference, with two loops as its recommended default.

Screenshot 2026-11-24 at 21.14.39

Benchmarks. We evaluate 12 benchmarks across coding and agentic tasks, mathematics and science, and logic (Table 1); details are given in Appendix A.

Protocol. All runs use temperature 1.0, top-p 0.95, and a context limit of 96K tokens. Each configuration generates one response per problem using the same prompt and random seed. We report accuracy from a single response per problem.

3. Where Does the Extra Loop Pay Off?

3.1. Separating Two Effects of an Extra Loop

An extra loop produces two effects (Figure 1): it performs additional computation on the current token before readout, and it writes deeper Loop KV that later tokens attend to. Native decoding does not distinguish these two effects because every token runs the same number of loops and reads preceding tokens' Loop KV at the matching depth, and adding a loop changes both simultaneously. To disentangle them, we design an intervention that varies two factors: how many loops the current token runs before readout, and how many loops preceding tokens use to write their Loop KV.

The two native configurations, denoted by L1\mathrm{L}_1 and L2\mathrm{L}_2, perform one and two loops per token, respectively. We additionally introduce two decoupled variants, where the bracket specifies the Loop KV ( KVℓ\mathrm{KV}_\ell for loop ℓ\ell) that the current token reads from preceding tokens:

(I) L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] generates the current token using a single loop, as in L1\mathrm{L}_1, but this loop reads KV2\mathrm{KV}_2 from preceding tokens. After readout, the token is recomputed under native L2\mathrm{L}_2 to construct KV2\mathrm{KV}_2 for later tokens.

(II) L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] performs two loops to generate the current token, as in L2\mathrm{L}_2, but both loops read KV1\mathrm{KV}_1 from preceding tokens.

Because Huginn-style LoopLMs' output block also performs causal attention after the recurrent block, its own KV differs under schemes L1\mathrm{L}_1 and L2\mathrm{L}_2. To isolate recurrent-block Loop KV from the output-block KV, we hold the output-block KV of preceding tokens fixed to native L1\mathrm{L}_1 in both decoupled variants. Thus, relative to L1\mathrm{L}_1, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] changes only the recurrent-block Loop KV ( KV1→KV2\mathrm{KV}_1\rightarrow\mathrm{KV}_2), whereas L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] changes only the number of loops run at the current token ( 1→21\rightarrow 2).

3.2. Most Gains Come from Loop KV

Screenshot 2026-11-24 at 19.25.30

Across the 12 benchmarks on Dory-4B (Figure 2), accuracy groups by the depth of the Loop KV the current token reads rather than how many loops it runs before readout: on average, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] closely matches native L2\mathrm{L}_2 (47.3% vs. 47.7%), whereas L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] stays close to L1\mathrm{L}_1 (41.3% vs. 40.5%). This ordering holds on all 12 benchmarks across coding and agentic tasks, math and science, and logic. Specifically, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] matches or slightly exceeds L2\mathrm{L}_2 on five benchmarks and trails it by only a small margin on the rest, leaving limited room for further refinement at the current token. In contrast, L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] falls slightly below L1\mathrm{L}_1 on half of the benchmarks. SciCode is the sole exception where L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] yields a substantial gain over L1\mathrm{L}_1, yet even there L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] outperforms it and matches L2\mathrm{L}_2. Although the weak performance of L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] may partly reflect cross-loop mismatch with KV1\mathrm{KV}_1, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] recovers nearly the full gain despite an analogous unseen mismatch and while holding the output block to its native L1\mathrm{L}_1 KV cache (Section 3.1). Thus, most of the accuracy gained from an extra loop comes specifically from the recurrent block's deeper Loop KV.

3.3. Prediction Distributions Follow the Loop KV

Aggregate benchmark accuracy alone cannot tell whether L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] genuinely reproduces L2\mathrm{L}_2's token-level behavior or matches its accuracy through different reasoning paths. We therefore compare the next-token distributions of L1\mathrm{L}_1, L2[KV1]\mathrm{L}_2[\mathrm{KV}_1], and L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] against native L2\mathrm{L}_2 under identical prefixes. Specifically, we randomly select 20 logic and coding problems from BBEH and LiveCodeBench where L2\mathrm{L}_2 succeeds and L1\mathrm{L}_1 fails. For each problem, we feed the tokens of its successful L2\mathrm{L}_2 reasoning trace as fixed prefixes into all four configurations to obtain their next-token distributions at every position. Along each trace, we sample 50 positions where native L1\mathrm{L}_1 and L2\mathrm{L}_2 prefer different next tokens, yielding 1,000 positions in total (Appendix E).

Screenshot 2026-11-24 at 21.15.27

Across these 1,000 positions, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] closely tracks native L2\mathrm{L}_2 across all three metrics (Table 2). Relative to L1\mathrm{L}_1, L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] cuts mean KL divergence to L2\mathrm{L}_2 by 85%, whereas L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] reduces it by only 21%. This separation holds consistently across positions and problems: the 75th-percentile KL of L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] remains below the 25th percentile of L2[KV1]\mathrm{L}_2[\mathrm{KV}_1], and L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] achieves lower KL than L2[KV1]\mathrm{L}_2[\mathrm{KV}_1] on all 20 problems. Thus, reading deeper Loop KV enables a single loop to closely approximate L2\mathrm{L}_2's token-level behavior, rather than merely matching aggregate accuracy through other reasoning paths.

Taken together, our benchmark- and token-level findings reveal an asymmetry: the current token often does not require a second loop before readout, provided preceding tokens supply KV2\mathrm{KV}_2. This directly opens the door to running the extra loop behind readout rather than blocking it.

4. Parallelizing Extra Loops Behind Readout

4.1. Loop-Behind Decoding

Native decoding runs all LL loops of token tt before the output block predicts xt+1x_{t+1}. Denoting the numbers of layers in the input, recurrent, and output blocks by nPn_P, nRn_R, and nCn_C, respectively, each decoding step passes sequentially through Dnative(L)=nP+LnR+nCD_{\mathrm{native}}(L)=n_P+Ln_R+n_C layers (36 for one loop and 56 for two loops in Dory; Figure 3a). Since the prediction of xt+1x_{t+1} depends mainly on the first loop of token tt and the deeper Loop KV of preceding tokens (Section 3), Loop-Behind (LB) Decoding reads out each token after its first loop and runs its remaining loops over the following steps, in parallel with subsequent tokens (Figure 3b). Native decoding spends an extra loop as depth, and LB spends the same loop as width.

Screenshot 2026-11-24 at 21.15.49

Screenshot 2026-11-24 at 21.16.17

Algorithm 1. Loop-Behind Decoding with LL loops.

Algorithm 1 details this schedule. LB maintains a pending buffer B\mathcal{B} of preceding tokens that have not yet finished all LL loops. By default, prompt prefill runs standard native LL\mathrm{L}_L with last-loop KV—matching native prefill speed and yielding exact LL\mathrm{L}_L prompt KV caches with B\mathcal{B} initially empty. Each decoding step tt then executes in three stages within a single forward pass.

First, only the new token tt passes through the input block P\mathcal{P} and joins B\mathcal{B}, ordered from oldest to newest (holding at most LL tokens in steady-state decoding). Second, all tokens in B\mathcal{B} pass through the recurrent block R\mathcal{R} together in parallel, each advancing by one loop and overwriting its own recurrent KV slot; because they are ordered by position, causal attention lets newer tokens (including token tt) immediately read the freshly updated KV of preceding tokens within the same pass. Third, only token tt passes through the output block C\mathcal{C} to sample xt+1x_{t+1}, and any token in B\mathcal{B} that has completed loop LL is dropped.

Consequently, each decoding step traverses only

DLB(L)=nP+nR+nC D_{\mathrm{LB}}(L)=n_P+n_R+n_C

layers in sequence, independent of LL. More generally, when rr divides LL, LB extends to reading out after rr loops rather than one: each decoding step advances every token in B\mathcal{B} by a block of rr recurrent loops in parallel, reducing the serial depth per step to nP+rnR+nCn_P+rn_R+n_C and holding at most L/rL/r tokens in B\mathcal{B} in steady-state decoding (e.g., r=8r=8 for 16-loop Huginn in Section 5).

LB requires no retraining or architectural changes. Because each loop overwrites a token's previous recurrent KV, it requires only a one-loop KV cache and adds just a small pending buffer B\mathcal{B}. In our vLLM implementation (Kwon et al., 2023), LB modifies only the scheduler, model runner, and forward pass, retaining full support for compilation, CUDA graphs, and asynchronous scheduling (Appendix F).

4.2. Results

Screenshot 2026-11-24 at 21.16.39

Table 3 compares LB against native decoding across two to four loops on Dory-4B in terms of both accuracy and decoding speed. With two loops, LB substantially accelerates decoding while closely matching native L2\mathrm{L}_2. It also nearly matches the 47.3% of L1[KV2]\mathrm{L}_1[\mathrm{KV}_2] (Section 3.2), showing that LB preserves the accuracy of our decoupled variant without recomputing each token under native L2\mathrm{L}_2. With three and four loops, the decoding speedup grows further and LB continues to track native behavior (including native L3\mathrm{L}_3's drop on BFCL), though the average accuracy gap widens modestly to 1.0 point at L=4L=4. This trade-off is expected under a one-loop readout schedule: when L>2L>2, reading out after the first loop omits more current-token refinement steps, and the L−2L-2 most recent preceding tokens supply Loop KV from depths below LL. Even with four loops, however, LB still retains 89% of native L4\mathrm{L}_4's accuracy gain over L1\mathrm{L}_1 while more than doubling decoding speed.

In terms of efficiency, both KV memory and decoding latency under native per-loop decoding grow steadily as the number of loops increases. Native last-loop caching eliminates the extra KV memory, yet leaves decoding latency largely unchanged because the loops remain sequential. Self-spec lowers decoding latency by drafting tokens cheaply with L1\mathrm{L}_1 and verifying multiple drafts in a single L4\mathrm{L}_4 pass, but this parallel verification requires maintaining separate KV caches for L1\mathrm{L}_1 and per-loop L4\mathrm{L}_4, substantially inflating both KV memory and prefill time. In contrast, by parallelizing extra loops behind readout and overwriting recurrent KV slots, LB achieves L1\mathrm{L}_1 decoding latency with a one-loop KV cache while matching native LL\mathrm{L}_L prefill speed, outperforming Self-spec on all three efficiency metrics.

4.3. Speedup Without Reducing FLOPs

LB performs the exact same FLOPs per token as native decoding, yet accelerates generation through parallel computation across tokens. Decoding is bandwidth-bound when step latency is limited by reading weights and KV cache from GPU memory rather than FLOPs, and compute-bound when compute throughput becomes the bottleneck. Autoregressive decoding typically falls in the bandwidth-bound regime, turning compute-bound only at large batch sizes and short contexts. In native LL-loop decoding, each step runs the recurrent block R\mathcal{R} sequentially LL times, reading the recurrent weights and KV cache from GPU memory LL times. By contrast, LB processes the LL pending tokens of each sequence—each at a different loop stage—in a single forward pass through R\mathcal{R}. Because these tokens belong to the same sequence, they share both the recurrent weights and the prefix KV cache, allowing the GPU to read them only once and amortize this memory-read cost across all LL loop stages. Under the ideal bandwidth-bound assumption, the speedup is therefore approximated by the ratio of layer reads:

S(L)=Dnative(L)DLB(L)=nP+LnR+nCnP+nR+nC,(3) S(L)=\frac{D_{\mathrm{native}}(L)}{D_{\mathrm{LB}}(L)} =\frac{n_P+Ln_R+n_C}{n_P+n_R+n_C}, \tag{3}

which estimates speedups of 1.56×, 2.11×, and 2.67× for Dory-4B at L=2,3,4L=2,3,4, respectively.

Screenshot 2026-11-24 at 21.17.04

To verify this analysis empirically, we benchmark Dory-4B alongside larger random-weight variants (Dory-32B and Dory-64B) across 92 batch-size and context-length settings (Figure 4; roofline classification in Appendix G). Across the 81 bandwidth-bound settings, LB decodes 1.36–1.53× faster than L2\mathrm{L}_2 at the same batch size, closely approaching the theoretical bound and nearly matching L1\mathrm{L}_1. Even across the seven settings near the compute-bound boundary, LB still achieves a 1.22–1.38× speedup.

A natural question is whether LB still accelerates decoding when the bandwidth-bound assumption breaks down. In our sweep, compute-bound regimes arise only in the remaining four settings (Dory-32B and Dory-64B at 1K context with at least 256 requests), yet LB still delivers a consistent 1.13–1.20× speedup. Two factors explain this gain: attention remains bandwidth-bound even at large batches, and batching two rows per request in the recurrent block improves compute efficiency, raising model FLOPs utilization (MFU) from 27–39% to 33–44%. Overall, LB speeds up decoding in both regimes, and because reasoning and agentic contexts routinely grow to tens of thousands of tokens, practical decoding predominantly remains bandwidth-bound, where LB stays close to its theoretical speedup.

5. Generalization to Other LoopLMs

We test whether the asymmetry between the two decoupled variants extends beyond Dory by repeating the intervention on Huginn-0125 (Geiping et al., 2025) and Ouro-1.4B Base (Zhu et al., 2025), representing the two architectures in Section 2.1. We evaluate them on 10 standard benchmarks and WikiText-2 perplexity. We compare aa and 2a2a loops, with a=8a=8 for Huginn and a=2a=2 for Ouro. As in Dory, the bracket names the deepest Loop KV that the current token reads: in La[KV2a]\mathrm{L}_a[\mathrm{KV}_{2a}], loop ℓ\ell reads KVa+ℓ\mathrm{KV}_{a+\ell}, and in L2a[KVa]\mathrm{L}_{2a}[\mathrm{KV}_a], loops ℓ\ell and a+ℓa+\ell both read KVℓ\mathrm{KV}_\ell (Appendices B and C).

Screenshot 2026-11-24 at 21.17.27

Huginn-style LoopLMs. Huginn reproduces the asymmetry observed in Dory (Table 4). Across 10 benchmarks, L8[KV16]\mathrm{L}_8[\mathrm{KV}_{16}] achieves 56.7%, close to the 57.4% of native L16\mathrm{L}_{16}, whereas L16[KV8]\mathrm{L}_{16}[\mathrm{KV}_8] reaches only 52.9%, near the 52.4% of L8\mathrm{L}_8. The ordering holds across all 10 benchmarks and is consistent with WikiText perplexity (Appendix C). The effect is particularly pronounced on GSM8K: deeper Loop KV alone raises accuracy from 15.3% to 34.1%, approaching the 38.0% of L16\mathrm{L}_{16}, while additional loops at the current token before readout reach only 17.0%. Unlike Dory, Huginn initializes its recurrent state with random noise and receives no reasoning post-training, showing that this asymmetry does not depend on either factor. Consequently, LB is applicable to Huginn without retraining, matching the 57.4% average accuracy of L16\mathrm{L}_{16} while decoding 1.75× faster in our single-request implementation.

Ouro-style LoopLMs. Ouro-1.4B Base exhibits a different pattern (Table 4). Although increasing loops from 2 to 4 raises average accuracy from 59.6% to 66.9%, L2[KV4]\mathrm{L}_2[\mathrm{KV}_4] drops to 51.8% (below L2\mathrm{L}_2) and collapses on GSM8K from 65.7% to 0.2%. Meanwhile, L4[KV2]\mathrm{L}_4[\mathrm{KV}_2] reaches 63.3%—recovering half of the average gain but only 1.9 of the 12.6 points gained on GSM8K—showing that deeper Loop KV remains important in Ouro, yet early loops cannot read it. This happens because Ouro loops the entire Transformer stack without a separate input block: its early layers process raw token embeddings in loop 1 but full-stack outputs in later loops, causing their keys to drift sharply across loops. Specifically, in Ouro's first layer on WikiText-2, the attention keys computed at loop 1 and loop 3 have a mean cosine similarity of −0.35 (vs. at least 0.77 in every recurrent layer of Huginn; Appendix D), so loop-1 queries in L2[KV4]\mathrm{L}_2[\mathrm{KV}_4] cannot match KV3\mathrm{KV}_3. This also distinguishes our early-readout setting from Zhu et al. (2025), where retaining only last-loop KV of generated tokens preserves accuracy because every token still executes all four loops, including the later loops trained to attend to deeper KV. Thus, running loops behind readout requires cross-loop attention compatibility, so we do not apply LB to Ouro.

6. Related Work

Looped language models and latent reasoning. Recent work trains and scales LoopLMs to strengthen reasoning through recurrent depth (Geiping et al., 2025; Zhu et al., 2025; NVIDIA, 2026; McLeish et al., 2026), complementing theoretical results showing that looped Transformers can simulate multi-step latent reasoning (Giannou et al., 2023; Saunshi et al., 2025). These works primarily frame extra loops as per-token test-time computation for predicting the next token. Following this view, adaptive halting and routing methods dynamically decide how many loops each token runs before readout (Geiping et al., 2025; Zhu et al., 2025; Bae et al., 2025b; Fu et al., 2026). Our findings challenge this view: extra loops pay off mainly through the deeper Loop KV written for later tokens, rather than through extra computation at the current token before readout.

Cross-token computation and KV sharing. Prior work has recognized that preceding tokens carry important information through their KV caches. Huginn observes that early loops can attend to KV written by later loops of preceding tokens (Geiping et al., 2025), and Ouro shows that retaining only last-loop KV preserves nearly all accuracy whereas first-loop KV drops GSM8K accuracy from 78.9% to 18.7% (Zhu et al., 2025). Building on this, terminal KV sharing and Koi reuse later-loop KV to reduce cache overhead (Huang et al., 2026b; Ladhak et al., 2026), while PLT pairs first-loop global KV with gated sliding-window attention and LoopKV analyzes loop- and layer-wise KV sensitivity for cache compression (Wu et al., 2025; Zhou et al., 2026). These studies establish that Loop KV matters for accuracy and memory efficiency, but they focus on KV reuse or compression rather than independently varying current-token computation and Loop KV depth to attribute the gains from extra loops.

Screenshot 2026-11-24 at 21.17.56

Parallel loops and efficient decoding. Prior approaches to efficient LoopLM decoding fall into two categories (Table 5). Parallel-loop methods such as PLT and LoopCoder-v2 overlap recurrent computation across token positions using cross-loop position shifts, while NS-PLT and LoopFold explore alternative parallel recurrence designs (Wu et al., 2025; Yang et al., 2026; Ekbote et al., 2026; Song et al., 2026). These methods shorten the serial path between predictions, but all require retraining; PLT also still predicts from final-loop shifted representations, and NS-PLT and LoopFold retain per-loop KV caches. Conversely, training-free batching methods such as depth-wise batching and CDB improve cross-request scheduling (Bae et al., 2025a; Schwethelm et al., 2026), and the KV-reuse methods above cut memory overhead, yet neither shortens the serial recurrent path. Self-speculative decoding (drafting with L1\mathrm{L}_1 and verifying in parallel with LL\mathrm{L}_L) is also training-free, but parallel verification requires retaining per-loop target KV alongside a separate draft KV cache, incurring large memory and prefill overhead (Table 3). In contrast, LB achieves all three properties in Table 5: it is training-free, keeps a one-loop KV cache, and shortens the serial path by reading out each token after its first loop so that later loops contribute to future predictions only through the KV cache.

Most closely related is concurrent work by Jin et al. (2026), which also recognizes the role of deeper Loop KV and overlaps KV computation across decoding steps. Rather than reading deeper Loop KV in an early loop, their late entry method skips initial loops and runs only the final KK loops, creating an entry-state mismatch that requires fine-tuning. To preserve exact greedy outputs, they further pair this schedule with speculative block decoding and rollback-based verification. By contrast, we show that existing Huginn-style LoopLMs already derive most of their extra-loop gains from deeper Loop KV rather than from deeper computation at the current token. As a result, LB closely matches the accuracy of native multi-loop decoding while running nearly as fast as one-loop decoding, requiring no fine-tuning, speculative verification, or rollbacks, and only a one-loop KV cache. Finally, our analysis of Ouro-1.4B shows that severe cross-loop key drift prevents training-free early readout, explaining why Ouro-style models need adapted late entry whereas Huginn-style models support LB directly.

7. Discussion

Extra loops at a token directly refine only its own next-token prediction, whereas the Loop KV it writes can be reused by many later tokens. This broader reach may explain why a token's extra loops pay off primarily through the Loop KV written for later tokens rather than through its own immediate readout. It also suggests a new paradigm for adaptive computation based on two questions: whether the next token is hard to predict from the current position, and whether the current token's KV will be useful to future tokens. Prior work has focused mainly on the former (Fu et al., 2026), while the latter has been largely overlooked. Finally, our results favor Huginn-style architectures for next-generation LoopLMs. Alongside recent work showing broader advantages of Huginn-style designs (Wang et al., 2026; Huang et al., 2026a), decoupling the recurrent block from raw token embeddings preserves cross-loop key alignment—avoiding Ouro's severe early-layer key drift—and directly enables training-free parallel decoding LB.

8. Limitations

Our main experiments use Dory-4B, with additional evidence from Huginn-0125 and Ouro-1.4B Base. The observed asymmetry holds in the two tested Huginn-style models but not in Ouro, so its generality across architectures and training procedures remains uncertain. Our decoupled variants also introduce cross-loop distribution mismatches. Finally, LB reduces serial execution and memory traffic without eliminating the extra loop's FLOPs, so its speedup diminishes in compute-bound regimes.

9. Conclusion

We find that, in Huginn-style LoopLMs, a token's extra loops pay off primarily through the deeper Loop KV they write for later tokens, with limited benefit for that token's own immediate readout. Building on this finding, Loop-Behind Decoding reads out each token after its first loop and executes its remaining loops over subsequent steps, in parallel with later tokens. Without retraining, LB retains most of native multi-loop accuracy at nearly one-loop decoding speed, shifting computation from serial depth to parallel width across tokens.

Impact Statement

This paper studies how looped language models use extra computation and proposes a faster decoding schedule for them. Faster decoding lowers the latency, energy, and cost of serving these models. We do not see ethical concerns beyond those that apply to language models in general.

References

Community

Sign up or log in to comment