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

Manuscript Offprint

arXiv:2610.12582

One Model to Loop Them All: Elastic Latent Recurrence for Language Models

Faisal Ladhak, Shantanu Acharya, Santiago Akle Serano, Simeng Sun, Boris Ginsburg, Krishna C Puvvada

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

Abstract

A latent recurrent language model applies a shared block of layers repeatedly, so one checkpoint can trade inference compute for accuracy by changing the loop count. At one loop, however, such models typically fall well short of a non-recurrent model of the same size, a one-loop tax that makes a separate non-recurrent model the better choice whenever latency matters. We present Elastic Latent Recurrence (ELR), a recipe for training looped language models without this tax. At one loop, an ELR model costs the same to serve as a non-recurrent model of the same size and, trained on the same data, reaches similar accuracy. Each additional loop then buys more accuracy for more inference compute. Three choices make this work: a gated state update with a learned step size, loop counts mixed within each optimizer update, and conditioning each pass on its loop index and budget. The first two preserve one-loop accuracy, and the third lowers loss at every additional loop. Mixed depths can be introduced late in pretraining to limit the added training cost, and with zero-initialized conditioning added at the switch, this late schedule reaches lower loss than mixed-depth training from scratch. In MoE models, reusing first-loop expert routes on later loops cuts mixed-depth update time by 11.7% with no measurable change in accuracy. At inference, keeping only the last loop's attention KV cache holds attention KV memory at its one-loop level while retaining most of the gain from additional loops. On 4B dense and 30B-A3B MoE hybrid models, ELR at one loop is 0.52 points below and 1.04 points above its matched baseline on a ten-task average, and four loops add 7.25 and 4.75 points. Carried through post-training, the recipe yields Koi-4B, a single checkpoint that scores an estimated 18 on the Artificial Analysis Intelligence Index at one loop, matching Qwen3.5-4B, and 29 at four loops.

1. Introduction

Latent recurrent, or looped, language models (LMs) apply a shared block of layers repeatedly, so a single checkpoint can spend more inference compute per token by running more loops (Dehghani et al., 2019; Geiping et al., 2025; Zhu et al., 2025). When the loop count is varied during training, the same weights can be served at several depths, a property we call elastic depth (Geiping et al., 2025; Jeddi et al., 2026). This is an attractive property for model deployment. The loop count enables simple control of quality vs test-time-compute tradeoff, similar to reasoning-effort setting for chain-of-thought, with the difference that no extra tokens are generated.

Existing elastic-depth models fall far short of a non-recurrent model of equal depth at one loop. For example, Huginn LM, trained with a mean recurrence of 32, trails its fixed-depth baseline on nearly every task, scoring 34.9 against 46.4 on ARC-Easy even after 800B tokens (Geiping et al., 2025). Parcae is below its Transformer baseline at one loop and above it at eight (Prairie et al., 2026). We call this gap the one-loop tax. A model that pays it must spend several loops recovering ground before additional compute buys anything, so a separately trained non-recurrent model remains

∗^{*}Equal contribution.

© 2026 NVIDIA. All rights reserved.

Figure

Figure 1 | Elastic Latent Recurrence. The shared recurrent block Rθ\mathcal{R}_{\theta} is applied k times between the input I\mathcal{I} and output O\mathcal{O} blocks. Each loop i re-injects hinh^{\mathrm{in}} and updates the state with the adaptive-delta rule (Eq. 2), using a gate computed from s~i\tilde{s}_{i}. At k=1k = 1, every unique layer executes exactly once.

the better choice for the latency-sensitive tier. A small loop range does not remove the tax on its own. In our ablations, sampling uniformly over one to five loops still leaves the one-loop endpoint behind the baseline (Section 6.4). Avoiding the tax is a different question from whether looping is a compute-efficient way to scale a model (Prairie et al., 2026; Schwethelm et al., 2026b; Gao et al., 2026). We take the non-recurrent model as baseline, and ask what it costs to make it elastic without paying the one-loop tax.

We present Elastic Latent Recurrence (ELR), a training recipe for looped language models that avoids the tax. ELR partitions a backbone into input, shared recurrent, and output blocks, so that at one loop every unique layer executes exactly once and the model has the same parameters and inference compute as a non-recurrent model of the same size. Three choices then make the model elastic. The first is the state update. Rather than replacing the state with the recurrent block's output, ELR takes a gated step along the proposed change, with a learned step size per token and channel. The second is where loop counts are mixed. Sampling one loop count per optimizer step and varying it across steps, as in Huginn's locked-step sampling, does not preserve the one-loop endpoint even when one loop is drawn a third of the time. Mixing loop counts within each step does. We implement this by having a rotating subset of data-parallel ranks run one loop on every microbatch. The first two choices decide whether the one-loop endpoint survives mixed-depth training. The third is conditioning each pass on its loop index and budget, which lets passes specialize and lowers loss at every added loop. Although recurrent-depth models have been reported to diverge at learning rates that non-recurrent models tolerate (Prairie et al., 2026), every ELR model in this paper trains with its baseline's optimizer settings unchanged.

The recipe is cheap to apply. Mixed-depth training runs the recurrent block several times per example, but that cost need not be paid over the whole run. Training at one loop for the first three quarters of pretraining and at mixed depth only for the last quarter costs an estimated 16% more training FLOPs than the baseline against 62% for mixed-depth training throughout (for the 4B configuration (Eq. 5)). The conditioning heads are zero-initialized at the switch, so the conditioned model starts as exactly the one-loop checkpoint, and with them the late schedule outperforms mixed-depth training from scratch. For recurrent MoE models, cross-loop route replay evaluates each router once, on the first loop, and reuses its assignments on later loops, cutting mixed-depth update time by 11.7% with no measurable change in accuracy. During inference, last-loop KV caching keeps a single cache that each loop overwrites, so attention KV memory stays at the one-loop level at every loop count.

We validate the core of the recipe at two pretraining scales and the full recipe end to end, using a 0.5B model to ablate every design choice. We train ELR alongside non-recurrent baselines on the same data at two scales, a 4B hybrid model for 1T tokens and a 30B-A3B hybrid mixture-of-experts model for 300B tokens. At one loop, ELR is 0.5 points below its baseline on a ten-task average at 4B and 1.0 point above it at 30B-A3B. At four loops it is 6.7 and 5.8 points above. Applying the full recipe end to end yields Koi-4B, a single checkpoint that scores 18 on the Artificial Analysis Intelligence Index at one loop, the level of comparable 4B models, and 29 at four loops, within a fixed 4B-parameter footprint.

Our contributions are as follows:

  • A recipe for elastic depth without a one-loop tax. A gated state update and within-step mixing of loop counts preserve the one-loop endpoint; ablations show the common alternatives do not. At one loop, ELR reaches similar accuracy to a non-recurrent baseline trained on the same data, and every additional loop of the same checkpoint improves it.

• Elastic depth acquired late in pretraining. Mixed-depth training in the final quarter of the run gives the full loop range for an estimated 16% more training FLOPs than the baseline, and zero-initialized loop conditioning grafted at the switch makes this schedule outperform training at mixed depth from the start.

  • Cross-loop route replay for looped MoE models. Reusing first-loop expert assignments on later loops cuts mixed-depth update time by 11.7% in our experiments with no measurable change in accuracy.

• Koi-4B. A post-trained elastic-depth model whose single checkpoint spans 18 to 29 on the Artificial Analysis Intelligence Index by loop count alone.

References (50)