Manuscript Offprint
arXiv:2610.12582One Model to Loop Them All: Elastic Latent Recurrence for Language Models
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 1 | Elastic Latent Recurrence. The shared recurrent block is applied k times between the input and output blocks. Each loop i re-injects and updates the state with the adaptive-delta rule (Eq. 2), using a gate computed from . At , 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.
We describe a latent recurrent model as a composition of three blocks: an input block with layers, a recurrent block with layers and parameters , and an output block with layers. Given a token sequence , the input block produces a fixed representation , from which a recurrent state is initialized and refined by applications of the recurrent block:
The transition map wraps and specifies how the state is updated at each iteration, with shared across all applications. The output block and language-model head then map the final state to logits . The choices of Init and vary across architectures: Huginn (Geiping et al., 2025) initializes from a truncated Gaussian and projects the concatenation of and , whereas Ouro (Zhu et al., 2025) has no separate input or output blocks, initializing from the token embeddings and repeating the full stack without input re-injection.
The model has distinct layers, but a forward pass with loop count traverses
layers, so each additional loop adds layers of inference compute and latency at a fixed parameter count. The loop count may be held constant or sampled from a distribution during training. We use the term elastic depth for a model trained over a range of loop counts and served at any within that range, so that the loop count acts as an inference-time compute knob.
3. Method
This section introduces Elastic Latent Recurrence (ELR), a latent recurrent architecture and training recipe for serving a single checkpoint at any loop count within its trained range while avoiding the one-loop tax (Figure 1).
3.1. Elastic Latent Recurrence
ELR uses the three-block architecture defined in Section 2, with approximately the middle half of the layers in and the remaining layers split evenly between and . At , every unique layer executes exactly once, with , matching a non-recurrent model of the same size in parameters and compute.
The recurrent state is initialized as . At each loop , re-injects into the current state, passes the result through , and applies a state update rule:
Adaptive-delta update. ELR uses an adaptive-delta rule that updates the state as
where the gate sets a per-token, per-channel step size along the recurrent block's proposed revision :
Here softplus( ) is a learned per-channel base rate, scaled by a sigmoid gate for each token and channel. The parameters , , and are shared across loops and add parameters for hidden dimension , independent of . We initialize and to zero and to 0, giving an initial step size of approximately 0.35. Section 6.1 compares adaptive delta with alternative state update rules.
3.2. Mixed-Depth Training with One-Loop Rank Overrides
To serve a single checkpoint at multiple loop counts, ELR is trained with mixed depths. For each microbatch, a loop count is sampled uniformly, for , and the standard next-token loss is backpropagated through all applications of the recurrent block. Uniform sampling improves accuracy at but fails to match the non-recurrent baseline at (Section 6.4). We therefore force a rotating fraction of the data-parallel ranks to use on every microbatch, while the remaining ranks use the sampled count. A rank then executes one loop with marginal probability , and the model is trained at a mean loop count :
Unlike globally raising the sampling probability of , the override places one-loop and -loop gradients in the same update whenever the sampled count exceeds one, and data-parallel reduction averages them before the optimizer step (Section 6.3). We choose for each so that remains approximately one third, and study sensitivity to this choice in Section 6.4.
3.3. Loop-Conditioned Modulation
Without explicit loop conditioning, the recurrent block applies the same function at every pass, with no direct signal of its position or the loop budget. We find that adding this signal further improves ELR accuracy at every additional loop. Following prior looped language models (Jeddi et al., 2026; Chen et al., 2026b), we condition loop of on progress and budget , where is the maximum training loop count:
Here is a sinusoidal embedding. The output block uses , and the input block is unconditioned. Following AdaLN (Peebles & Xie, 2023) and FiLM (Perez et al., 2018), modulates each recurrent and output layer in three ways. It scales and shifts the normalized input, adds a low-rank correction with a loop-dependent gate, and rescales the output before the residual addition:
Here , , , and are linear heads of , and and are adapter projections, all specific to each layer and shared across loops.
From the second loop onward, entry modulation renormalizes the recurrent input and adds a loop-dependent input re-injection:
so the first loop receives , as in the one-loop checkpoint. At exit, a loop-dependent factor scales the adaptive-delta step of , whose gate still uses the unmodulated :
We introduce conditioning at the switch to mixed-depth training (Section 3.4), initializing all conditioning heads to zero. Per-layer modulation is then the identity, the first loop reproduces the checkpoint's update, and later loops leave the state unchanged through zero exit factors. The model therefore initially preserves the one-loop checkpoint's function at every k, in exact arithmetic. Since depends only on , conditioning vectors and head outputs can be precomputed at inference.
3.4. Reducing the Cost of Recurrence
Delayed mixed-depth training. Mixed-depth training raises the compute of each step to about times that of a one-loop step (Eqs. 1 and 3). To limit this overhead, we train at k = 1 for most of the token budget and apply the schedule of Section 3.2 only in a final continuation phase. The two phases use the same architecture and differ only in the distribution over k, so the adaptive-delta gate is trained from the start, and the optimizer state and learning-rate schedule carry over unchanged. If the mixed-depth phase covers a fraction of the training tokens, total training compute relative to the non-recurrent baseline is approximately
Section 6.5 studies how trades one-loop quality against gains at additional loops.
Cross-loop route replay. In a recurrent MoE model, every loop re-executes the router of each MoE layer in the recurrent block. Cross-loop route replay instead computes each layer's expert assignments and routing weights on the first loop and reuses them on subsequent loops of the same forward pass. The selected experts still process each loop's updated representations, so replay removes repeated router evaluation while retaining expert dispatch, communication, computation, and output combination. During training, the load-balancing auxiliary loss is computed once on the first loop and scaled by the realized loop count k, matching the total weight it receives when accumulated over all k loops under dynamic routing. Replay assumes that first-loop routes remain useful at later loops. Section 4.3 tests this assumption by measuring how routing changes across loops and comparing dynamic routing with replay applied at inference only or during training, and reports the resulting training and inference cost.
Last-loop KV caching. During inference, latent recurrent models keep one KV cache per loop for each recurrent attention layer. Last-loop KV caching keeps a single cache that each loop overwrites, so during decoding, the loop-i query attends to earlier tokens' final-loop keys and values and to the current token's own loop-i key and value. Attention KV memory then matches the one-loop model at every k. Applied at inference to a model trained with per-loop caches, the scheme assumes final-loop keys and values remain useful to earlier-loop queries. Section 5.3 shows that the scheme retains the gains from additional loops at close to one-loop cache memory.
4. One-Loop Accuracy and Gains from Additional Loops
This section validates the first two choices of the recipe, the adaptive-delta update and within-step mixing with the delayed schedule, against non-recurrent baselines matched in parameters, data, and training horizon. The models here carry no loop conditioning; Section 5 applies the full recipe to a post-trained model, and Section 6.6 isolates the effect of conditioning.
4.1. Experimental Setup
Models. We evaluate ELR on two hybrid models: GDP-Hybrid-4B, a dense model with approximately 4B parameters, and GDP-Hybrid-30B-A3B, a mixture-of-experts model with approximately 30B total and 3B active parameters. Both share a 52-layer layout of 23 Gated DeltaProduct (GDP) (Siems et al., 2025), 6 self-attention, and 23 feed-forward layers, which are dense MLPs in GDP-Hybrid-4B and MoE layers in GDP-Hybrid-30B-A3B. Each ELR model partitions these layers into 14 input, 24 recurrent, and 14 output layers and is compared with a non-recurrent baseline with the same backbone configuration. All ELR models evaluated in this section follow the architecture of Section 3.1 without loop-conditioned modulation. For GDP-Hybrid-30B-A3B, we also train an ELR model with cross-loop route replay (Section 3.4). More details are provided in Appendix A.1.
Training. GDP-Hybrid-4B is trained for 1T tokens with AdamW, and GDP-Hybrid-30B-A3B for 300B tokens with Muon and AdamW. Both use a subset of the pretraining data used for Nemotron

(a) GDP-Hybrid-4B

(b) GDP-Hybrid-30B-A3B
Figure 2 | Average downstream benchmark accuracy across ten tasks versus inference loop count. Each curve represents a single model evaluated at multiple loop counts. Dashed horizontal lines mark the non-recurrent baselines. Per-task scores are in Tables 8 and 9.
3 Ultra (NVIDIA, 2026a), with a sequence length of 8,192 and a global batch size of 768. Each non-recurrent baseline is trained on the same data and token budget as its ELR counterpart. All ELR models evaluated in this section use delayed mixed-depth training (Section 3.4), training at one loop for the first 75% of tokens and then continuing with and a 10% one-loop rank override, which gives and (Eq. 3). By Eq. 5, this schedule has an estimated layer-execution cost of about the baseline's. For GDP-Hybrid-30B-A3B, the ELR models with and without cross-loop route replay begin the mixed-depth phase from the same one-loop checkpoint. Full training settings are provided in Appendix A.
Evaluation. Each recurrent curve shows a single final checkpoint evaluated at every loop count in its trained range. We report the downstream accuracy on MMLU, MMLU-Pro, ARC-Challenge, GSM8K, WinoGrande, CommonsenseQA, RACE-high, HumanEval, MBPP, and MATH-500, and report their average. See Appendix B.1 for more details.
4.2. Main Results
One-loop accuracy. At k = 1, ELR retains near-baseline accuracy at both scales (Figure 2). On GDP-Hybrid-4B, its ten-task average of 65.13 is 0.52 points below the non-recurrent baseline's 65.65. On GDP-Hybrid-30B-A3B, ELR and ELR+Route Replay reach 66.08 and 65.95, slightly above the baseline's 65.04. Per-task scores are reported in Tables 8 and 9. At one loop, individual tasks move in both directions; on GDP-Hybrid-4B, ELR trails the baseline by 5.3 points on GSM8K and leads by 5.2 on MATH-500.
Gains from additional loops. Each additional loop improves the ten-task average accuracy of ELR (Figure 2). From k = 1 to k = 4, the average rises by 7.25 points for GDP-Hybrid-4B and by 4.75 points for GDP-Hybrid-30B-A3B. The largest per-task gains are on GSM8K (+11.8 points) and MATH-500 (+11.3) for GDP-Hybrid-4B, and on MMLU-Pro (+7.5) and GSM8K (+6.5) for GDP-Hybrid-30B-A3B.
Diminishing returns. Most of the aggregate gain arrives in the first additional loop. For GDP-Hybrid-4B, two and three loops capture 79% and 96% of the gain from k = 1 to k = 4. For
Table 1 | Cross-loop route replay on GDP-Hybrid-30B-A3B, relative to dynamically routed ELR (A). (B) applies replay to A’s checkpoint at inference only while (C) is trained with replay. Validation loss and inference forward time are measured at on 8K-token sequences. Training update time is averaged over the mixed-depth training phase and profiled at fixed .
| Routing | Δ Val Loss at k = 4 | Δ Training Update Time | Δ Inference Forward Time | |
|---|---|---|---|---|
| Mixed-depth | Fixed k=4 | |||
| (A) Dynamic routing | reference | |||
| (B) Inference-only replay | +0.0055 | - | - | -1.2% |
| (C) Replay training | +0.0038 | -11.7% | -19.6% | -1.2% |
GDP-Hybrid-30B-A3B, they capture 87% and 91%. These curves show diminishing returns, which is consistent with later applications of appearing in fewer training examples. With the one-loop override, the marginal loop-count probabilities during mixed-depth training are and . An example reaches loop j only when , so loops two, three, and four occur in 67.5%, 45%, and 22.5% of mixed-depth examples, giving a mean loop count of (Eq. 3).
Inference cost. Because a one-loop forward pass executes each unique layer exactly once, ELR at matches the TTFT and per-token decode latency of its non-recurrent baseline. Each additional loop repeats only the recurrent block, reaching baseline TTFT and baseline decode latency at four loops for GDP-Hybrid-4B. Three loops therefore capture of the accuracy gain from one to four loops at baseline TTFT. Quality-cost curves and measurement details are given in Appendix D.
4.3. Cross-Loop Route Replay
Routing in GDP-Hybrid-30B-A3B ELR changes little across loops in aggregate but substantially per token (Table 13). On 256 held-out 2K-token windows, per-expert selection counts at loops one and four have a cosine similarity of 0.978, averaged over the ten recurrent MoE layers, yet individual tokens retain only 53% of their first-loop experts at loop four. To isolate the effect of this drift on each layer's computation, we give each recurrent MoE layer its loop-four input from the dynamically routed model and compute the routed-expert output twice: once with the experts and weights the router selects for that input, and once with those recorded for the same token at loop one. Because both computations share the same input, their difference reflects only the routing decision. The two outputs have a mean cosine similarity of 0.767. A control that shifts first-loop routes across positions within each document, so that each token receives another token's routes, gives 0.227. First-loop routes therefore retain much, but not all, of the token-specific routing information.
The resulting quality cost is small, while training time falls substantially (Table 1). Inference-only replay (B) raises four-loop validation loss by 0.0055, and training with replay (C) narrows this to 0.0038 while leaving the ten-task average at unchanged within noise (70.90 versus 70.83 for A). Replay reduces router evaluations from 53 to 23 per four-loop forward pass but retains expert dispatch and computation, so inference forward time falls by only at 8K tokens. Training benefits more because replay also removes later-loop auxiliary-loss calculations and the backward work through repeated router evaluations. Update time falls by over the mixed-depth training phase and by at fixed , with expert and all-to-all call counts unchanged. More details are given in Appendix E.
Koi-4B (ELR)

(a) AA-Index v4.1 Estimate

(b) Relative Output Tokens
Figure 3 | Koi-4B evaluated at . (a) AA-Index v4.1 estimates, rounded to the nearest integer; dashed lines mark non-recurrent reference models. (b) Output tokens per rollout relative to , as a geometric mean over eight of the AA-Index benchmarks (Appendix C.1). All results come from our evaluation harness, not official Artificial Analysis results.
5. Koi-4B: A Post-Trained GDP-Hybrid ELR Model
5.1. Experimental Setup
Model and Training. Koi-4B applies the full recipe of Section 3 to the GDP-Hybrid-4B architecture of Section 4, adding loop-conditioned modulation (Section 3.3). We chose the dense hybrid because it targets the setting where elastic depth matters most. On a device with a fixed memory budget, a 4B model fits where a 30B-total mixture of experts does not, and looping lets the model that fits spend compute to close the gap. Post-training the MoE variant is left for future work. We pretrain it for 7T tokens at an 8K sequence length on a subset of the Nemotron 3 Ultra pretraining corpus (NVIDIA, 2026a), using one loop for the first half and mixed-depth training for the second half (Appendix A.4). We then extend the context length with a 50B-token mid-training stage at a 256K sequence length, and post-train on the text-only data from Nemotron 3.5 Super (NVIDIA, 2026b) with four epochs of supervised fine-tuning (SFT) followed by 200 steps of reinforcement learning from verifiable rewards (RLVR). All stages after the switch use mixed-depth training. Pretraining, mid-training, and SFT sample loop counts uniformly with a 10% one-loop rank override, while RLVR samples with a 4:1:1:1 ratio, favoring one-loop rollouts, which are faster to generate. Unlike Section 4, this run has no matched non-recurrent baseline, so its one-loop accuracy is compared to open models of similar size rather than to a model trained on the same data.
Evaluation. We evaluate the single post-trained Koi-4B checkpoint at on the benchmark suite and weighting of the Artificial Analysis Intelligence Index v4.1 (Artificial Analysis, 2026): GDPval-AA v2 (Elo; 20%), Terminal-Bench 2.1 (16%), -Bench Banking (14%), Humanity's Last Exam (12%), AA-Omniscience accuracy (8%), SciCode (8%), GPQA Diamond (6%), AA-LCR (6%), CritPt (6%) , and AA-Omniscience non-hallucination (4%). We also report IFBench (Pyatkin et al., 2025), LiveCodeBench v6 (pass@1) (Jain et al., 2025), and MATH-500 (Lightman et al., 2024), which are outside the v4.1 index. All scores, for Koi-4B and the reference models alike, come from our own harness rather than from Artificial Analysis and may differ from published figures. Koi-4B has no matched non-recurrent baseline, so we compare it with open models of similar size and larger.
We do not run CritPt since models of this size score near zero.
Table 2 | Koi-4B with per-loop and last-loop KV caches. Score is last-loop minus per-loop at , in percentage points, computed before rounding. Output Tokens is the ratio of mean output tokens per rollout, last-loop to per-loop, at . Results at are in Appendix C.2.
| Benchmark | Per-loop | Last-loop | Score | Output Tokens | |
|---|---|---|---|---|---|
| Terminal-Bench 2.1 | 12.1 | 28.0 | 27.4 | -0.6 | 0.80× |
| -Bench Banking | 11.3 | 21.8 | 21.8 | 0.0 | 0.86× |
| Humanity's Last Exam | 5.9 | 11.9 | 10.5 | -1.4 | 0.93× |
| AA-Omniscience accuracy | 8.1 | 9.3 | 8.5 | -0.7 | 0.82× |
| SciCode | 17.7 | 33.4 | 32.0 | -1.4 | 0.97× |
| GPQA Diamond | 59.9 | 72.8 | 72.2 | -0.6 | 0.99× |
| AA-LCR | 51.3 | 68.3 | 65.3 | -3.0 | 0.93× |
| AA-Omniscience non-halluc. | 86.1 | 85.9 | 88.2 | +2.3 | 0.82× |
| IFBench | 61.2 | 71.8 | 71.5 | -0.3 | 0.98× |
| LiveCodeBench v6 | 50.5 | 71.9 | 70.2 | -1.6 | 0.98× |
| MATH-500 | 88.8 | 97.2 | 97.0 | -0.2 | 1.01× |
| Attention KV memory (rel. to ) | 1× | 2.5× | 1× | ||
5.2. Inference-Time Depth Scaling
Koi-4B's AA-Index v4.1 estimate rises with every additional loop, from 18 at to 26, 28, and 29 at (Figure 3). At one loop, it's on par with Qwen3.5-4B, an open model of the same size. The second loop contributes 8 of the 11 points gained from one to four loops, mirroring the diminishing returns in Section 4.2. Two loops already place Koi-4B above Qwen3.5-9B and Nemotron-3.5-Lightning and level with Gemma4-26B-A4B. At four loops, it scores 3 points above Gemma4-26B-A4B, which has about as many total parameters, and trails only Qwen3.6-35B-A3B, which has nearly as many total parameters. Each additional loop adds inference compute but no parameters, and Section 5.3 shows that attention KV memory can also stay at its one-loop level. Per-benchmark scores are given in Appendix C.
For the same prompts, the same checkpoint produces shorter responses at higher loop counts while scoring higher (Figure 3b). Relative to one loop, output tokens per rollout fall by , , and at (geometric mean over benchmarks), and as with accuracy, the second loop accounts for most of the change. Additional loops thus reach higher scores with shorter reasoning traces, consistent with the model substituting latent depth for explicit chain-of-thought tokens. The shorter generations partly offset the added per-token cost. At two loops, per-token decode latency is about that of one loop (Appendix D), but rollouts are as long, so decode time per rollout rises by only about . At four loops the figures are and , or about per rollout (Appendix C.1).
5.3. Last Loop KV-Cache Inference
Standard inference keeps a separate attention KV cache for each loop, so memory grows with depth. In Koi-4B, three of the six attention layers sit in the recurrent block, so at per-loop caching needs the one-loop KV memory, or 7.5 GiB against 3.0 GiB per 128K-token request in BF16. Last-loop KV inference instead shares one cache across loops. Each loop overwrites the cache, and subsequent tokens read earlier tokens' final-loop keys and values. The scheme requires no retraining and keeps attention KV memory at its one-loop size at every . GDP layers keep per-loop state, which does not grow with sequence length and stays below 25 MiB per request at .

(a) State Update Rules

(b) Fixed versus Mixed Depth Training
Figure 4 | Architectural and training ablations on GPT-0.5B. (a) State update rules: solid lines mark rules with learned step sizes, and dashed lines mark parameter-free rules. (b) Fixed-depth versus mixed-depth training: outlined cells mark matching training and evaluation depths.
Last-loop KV preserves most of the gain from additional loops (Table 2). At four loops, score reductions relative to per-loop caching range from 0–3%, while AA-Omniscience non-hallucination improves. Last-loop KV also produces fewer output tokens on nine of ten benchmarks, with much of the reduction coming from fewer requests reaching the output cap.
Koi-4B can therefore use additional inference depth with little increase in cache memory, at a small, benchmark-dependent accuracy cost. Additional details and results are in Appendix C.2.
6. Ablations
We isolate the architectural and training choices of ELR on GPT-0.5B, a dense Transformer trained for 300B tokens on a subset of the pretraining data used for Nemotron 3 Ultra (NVIDIA, 2026a), and report validation loss. Unless stated otherwise, each ELR variant trains with mixed-depth training from scratch with and a 15% one-loop rank override, giving (Eq. 3).
6.1. Adaptive Delta versus Alternative State Updates
Adaptive delta is the only state update rule that matches the baseline at , and it achieves the lowest loss at every loop count (Figure 4a). We compare it (Eq. 2) with two parameter-free rules, replace and residual , and with delta, which substitutes a learned, input-independent per-channel rate , initialized to 0.05, for the input-dependent gate . Delta ranks second at every depth but trails adaptive delta by 0.006–0.007, indicating that conditioning the step size on the input is better than a fixed per-channel rate. The parameter-free rules perform worst. Replace has the highest one-loop loss and its loss rises from four to five loops, while residual stops improving after three loops.
GPT-0.5B omits input re-injection . Re-injection changes losses by at most 0.005 and leaves the ordering of every ablation in this section unchanged (see Appendix F.1).
Table 3 | Loop sampling schemes on GPT-0.5B (validation loss). Weighted sampling spreads the probability remaining after uniformly over , so rows with the same share the same marginal distribution over . Depths/Update is the maximum number of distinct loop counts contributing gradients to one update. Step time is relative to synchronized uniform sampling.
| Sampling | Depths/Update | Step Time | ||||||
|---|---|---|---|---|---|---|---|---|
| - | Non-recurrent baseline | - | - | - | - | - | - | |
| 0.20 | Synchronized, uniform | |||||||
| Independent, uniform | ||||||||
| 0.32 | Synchronized, weighted | |||||||
| Synchronized, override | ||||||||
| Independent, weighted |
6.2. Fixed-Depth versus Mixed-Depth Training
Mixed-depth training makes a single model usable across multiple loop counts during inference (Figure 4b). A model trained at one fixed loop count reaches the lowest loss at that count and degrades at every other , with the gap growing with distance from its training depth in either direction. Because each fixed-depth model outperforms the mixed-depth model at its own depth, it serves as an empirical upper bound on the quality attainable at that depth. The mixed-depth model instead improves monotonically from one to five loops and trades this per-depth optimum for elasticity: a single checkpoint serves all five loop counts in place of five separately trained models, at some cost in loss at each depth.
The model trained only at reaches a lower loss than the non-recurrent baseline (1.660 versus 1.685), although both execute each unique layer once. Without input re-injection, the two differ only in the gate, which at one loop is a learned skip around the recurrent block, so the gate appears to help even without recurrence.
6.3. Synchronized versus Independent-Rank Loop Sampling
The sampling scheme determines how many depths contribute gradients to each optimizer update. Under synchronized sampling, all data-parallel ranks run the same loop count in a step, so each update covers one depth, or at most two with one-loop overrides. Under independent-rank sampling, each rank draws its own loop count, so one update can cover every depth, but the step waits for the rank with the largest count. At , the three schemes in Table 3 share the same marginal distribution over , with for , and differ only in how depths are grouped within updates. Loss decreases as more depths share an update. One-loop loss falls from 1.6871 under synchronized weighted sampling to 1.6830 with overrides and 1.6774 under independent-rank sampling, and the same ordering holds at every . Independent-rank sampling gives the lowest loss but increases step time by about . One-loop overrides recover part of this gain at synchronized step time so we use them in our main experiments.
6.4. One-Loop Rank Overrides
Under synchronized sampling, one-loop rank overrides are needed for one-loop parity (Figure 5b). Without overrides (), uniform sampling reaches one-loop loss above the baseline. One-loop loss decreases monotonically as increases, and () is the smallest tested fraction that falls below the baseline. Larger fractions buy further one-loop gains at the cost of

(a) Delayed Mixed-Depth Training

(b) One-Loop Override
Figure 5 | Training choices on GPT-0.5B. Each x-axis point is a separately trained model, and each line shows validation loss at one inference loop count k across these models. The dashed line marks the non-recurrent baseline (1.685). (a) Point at which training switches from one loop to mixed depth (f = 0.15); 0% is mixed-depth training from scratch, and added compute is estimated from Eq. 5. (b) One-loop override fraction f, with mixed-depth training from scratch.
deeper loops, which motivates choosing so that is approximately one third (Section 3.2). The benefit does not come from the higher one-loop marginal alone, since synchronized weighted sampling at the same without overrides remains above the baseline (Section 6.3).
6.5. Delayed Mixed-Depth Training
Delaying mixed-depth training retains most of the gain from additional loops at a fraction of its training cost (Figure 5a). Mixed-depth training from scratch costs an estimated the baseline's training compute (Eq. 5). Starting it after 25%, 50%, or 75% of training tokens lowers this to , , and , while retaining 97%, 90%, and 84% of the five-loop improvement over the baseline. At the 75% start, the estimated added training compute falls from about 79% to 20% for a 0.009 increase in five-loop loss, and one-loop loss stays below the baseline at every start point. We therefore use the 75% start for our main experiments (Section 4.1).
6.6. Loop-Conditioned Modulation
Loop-conditioned modulation leaves one-loop loss nearly unchanged and lowers loss at every additional loop, with gains growing with loop count (Figure 6). We add the modulation of Section 3.3 to the delayed model that switches to mixed depth after 75% of training tokens, introducing it at the switch with all heads initialized to zero. Loop-conditioned modulation adds 31.6M parameters (6.34% of the GPT-0.5B backbone). One-loop loss moves from 1.6748 to 1.6739, while loss falls by 0.009 at k = 2 and by 0.022 at k = 5, increasing the loss reduction from one to five loops from 0.038 to 0.059. The conditioned model also achieves lower validation-loss point estimates at every loop count than unconditioned mixed-depth training from scratch (1.6147 versus 1.6273 at five loops), despite using mixed depths only during the final quarter of training.

Figure 6 | Loop-conditioning on GPT-0.5B. Delayed models switch to mixed depth after 75% of tokens, and the from-scratch model trains at mixed depth throughout.
7. Related Work
Elastic recurrent depth. Huginn (Geiping et al., 2025) and Ouro (Zhu et al., 2025) train looped language models whose depth can vary at inference, Mixture-of-Recursions routes tokens to learned recursion depths (Bae et al., 2025b), and LoopFormer conditions a shared stack on normalized time and step size so that shortcut trajectories align with the full-depth trajectory (Jeddi et al., 2026). LoopMoE conditions each iteration on its index and the token's hidden state through an adaptive layer norm (Chen et al., 2026b), and Huginn reports that conditioning the recurrent block on the step index hurt its ability to extrapolate beyond the trained depth (Geiping et al., 2025). Our conditioning uses the same signal as LoopFormer, progress and budget, but is grafted onto a trained one-loop checkpoint with zero-initialized heads, so the conditioned model starts as that checkpoint and the deeper passes learn to depart from it; we do not evaluate extrapolation. LoopFormer's dense comparisons match either unique parameters or block-level inference FLOPs but not both. During training, Huginn samples a single recurrence depth per step, shared by all data-parallel workers (Geiping et al., 2025), whereas the one-loop rank override mixes one-loop and deeper gradients within a single update. Closest to our goal, stochastic RINS drops recursion rounds during training and, with depth-specific linear adapters, matches or exceeds a training-compute-matched baseline at one recursion in 600M-parameter models (Alabdulmohsin & Zhai, 2025). That result is reported in perplexity, and without the adapters, stronger one-recursion protection reduces gains at higher depths. ELR reaches one-loop parity without depth-specific parameters, with downstream evaluation at 4B dense-hybrid and 30B-A3B MoE scale.
Regulating recurrent dynamics. Hyperloop Transformers apply matrix-valued hyper-connections after each loop (Zeitoun et al., 2026), Parcae constrains input-injection dynamics with stability conditions derived from a linearized system (Prairie et al., 2026), STARS regularizes the Jacobian spectral radius (Yang et al., 2026), and Training-Free Looped Transformers reinterpret repeated frozen-model computation as damped substeps (Chen et al., 2026a). ELR's adaptive-delta update starts from a small step size but learns it end to end without explicit stability constraints, and is designed to match the non-recurrent baseline at one loop while improving with additional loops.
Acquiring recurrence late. Retrofitted Recurrence (McLeish et al., 2025) and Relaxed Recursive Transformers (Bae et al., 2025a) convert pretrained non-recurrent models into recurrent ones, using a recurrence curriculum and depth-specific low-rank adapters, respectively. Our delayed mixed-depth training instead continues a model that is recurrent by construction, changing only the loop-count distribution, with no architectural change or optimizer restart.
Recurrent MoE and serving. Sparse Universal Transformer (Tan et al., 2023) and Loop-MoE (Chen et al., 2026b) combine sparse expert routing with weight-shared depth. Loopie trains looped MoE models at up to 20B total parameters with a fixed two recurrent steps and asks whether looping beats parameter scaling at matched compute (Gao et al., 2026); we instead take the non-recurrent MoE as given and ask what it costs to make it elastic. Read-ME decouples routing from a non-recurrent MoE backbone so that expert decisions can be precomputed for scheduling (Cai et al., 2024), whereas cross-loop route replay reuses a looped model's own first-loop routes on later loops. Continuous Depth Batching schedules tokens that exit at different loop counts (Schwethelm et al., 2026a), whereas we serve each request at a fixed loop count.
8. Conclusion
Elastic Latent Recurrence shows that a looped model can serve a single checkpoint across a range of inference depths without paying a one-loop tax. Three choices make this work. A gated adaptive-delta update and within-step mixing of loop counts preserve the one-loop endpoint, and conditioning each pass on its loop index and budget lets passes specialize, lowering loss at every added loop. At one loop, an ELR model executes every unique layer exactly once; trained on the same data as its non-recurrent baseline, it is 0.5 points below the baseline at 4B and 1.0 point above it at 30B-A3B, and four loops of the same checkpoint add 7.25 and 4.75 points. Elastic depth need not be trained from scratch. Introducing mixed depths in the final quarter of pretraining costs about the baseline's training compute, and conditioning grafted at the switch with zero-initialized heads makes this late schedule outperform mixed-depth training from the start. Cross-loop route replay cuts mixed-depth update time in recurrent MoE models by 11.7%, and last-loop KV caching holds attention memory at the one-loop level at every depth. Carried through pretraining and post-training, the recipe yields Koi-4B, a single checkpoint that scores 18 on the Artificial Analysis Intelligence Index at one loop and 29 at four loops in our harness.
Several questions remain open. Gains diminish after the second loop, which is consistent with later loops appearing in fewer training examples, but we have not tested whether reweighting the loop-count distribution recovers them. Conditioning closes most of the gap to fixed-depth specialists at intermediate depths but not at the endpoints, and we have not isolated why. Our serving setting fixes the loop count per request; combining ELR with per-request or per-token adaptive depth, which budget conditioning complicates, and post-training the MoE variant are the next steps.
References
Ibrahim Alabdulmohsin and Xiaohua Zhai. Recursive inference scaling: A winning path to scalable inference in language and multimodal systems. In Advances in Neural Information Processing Systems, 2025.
Artificial Analysis. Artificial Analysis Intelligence Index v4.1: A shift toward agentic workloads, 2026. URL https://artificialanalysis.ai/articles/artificial-analysis-intelligence-index-v4-1/.
Jacob Austin, Augustus Odena, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.
Sangmin Bae, Adam Fisch, et al. Relaxed recursive transformers: Effective parameter sharing with layer-wise LoRA. In International Conference on Learning Representations, 2025a.
Sangmin Bae, Yujin Kim, et al. Mixture-of-recursions: Learning dynamic recursive depths for adaptive token-level computation. In Advances in Neural Information Processing Systems, 2025b.
Andrea Banino, Jan Balaguer, et al. PonderNet: Learning to ponder. In 8th ICML Workshop on Automated Machine Learning, 2021.
Ruisi Cai, Yeonju Ro, et al. Read-ME: Refactorizing LLMs as router-decoupled mixture of experts with system co-design. In Advances in Neural Information Processing Systems, 2024.
Lizhang Chen, Jonathan Li, et al. Training-free looped transformers. arXiv preprint arXiv:2605.23872, 2026a.
Mark Chen, Jerry Tworek, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
Wenkai Chen, Tianshu Li, et al. LoopMoE: Unifying iterative computation with mixture-of-experts for language modeling. arXiv preprint arXiv:2606.04438, 2026b.
Peter Clark, Isaac Cowhey, et al. Think you have solved question answering? Try ARC, the AI2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.
Karl Cobbe, Vineet Kosaraju, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
Mostafa Dehghani, Stephan Gouws, et al. Universal Transformers. In International Conference on Learning Representations, 2019.
Zitian Gao, Yilong Chen, Yihao Xiao, Xinyu Yang, Ran Tao, Joey Zhou, and Bryan Dai. Loop the loopies! arXiv preprint arXiv:2607.16051, 2026.
Jonas Geiping, Sean McLeish, et al. Scaling up test-time compute with latent reasoning: A recurrent depth approach. In Advances in Neural Information Processing Systems, 2025.
Alex Graves. Adaptive Computation Time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016.
Dan Hendrycks, Collin Burns, et al. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2021.
Naman Jain, King Han, et al. LiveCodeBench: Holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations, 2025.
Ahmadreza Jeddi, Marco Ciccone, et al. LoopFormer: Elastic-depth looped transformers for latent reasoning via shortcut modulation. In International Conference on Learning Representations, 2026.
Guokun Lai, Qizhe Xie, et al. RACE: Large-scale ReAding comprehension dataset from examinations. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, 2017.
Hunter Lightman, Vineet Kosaraju, et al. Let's verify step by step. In International Conference on Learning Representations, 2024.
Sean McLeish, Ang Li, et al. Teaching pretrained language models to think deeper with retrofitted recurrence. arXiv preprint arXiv:2511.07384, 2025.
NVIDIA. Nemotron 3 Nano: Open, efficient mixture-of-experts hybrid mamba-transformer model for agentic reasoning. arXiv preprint arXiv:2512.20848, 2025.
NVIDIA. Nemotron 3 Ultra: Open, efficient mixture-of-experts hybrid mamba-transformer model for agentic reasoning. arXiv preprint arXiv:2606.15007, 2026a.
NVIDIA. Nemotron-Post-Training-v3, 2026b. URL https://huggingface.co/collections/nvidia/nemotron-post-training-v3.
William Peebles and Saining Xie. Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), 2023.
Ethan Perez, Florian Strub, et al. Film: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI conference on artificial intelligence, 2018.
Hayden Prairie, Zachary Novack, et al. Parcae: Scaling laws for stable looped language models. arXiv preprint arXiv:2604.12946, 2026.
Valentina Pyatkin, Saumya Malik, et al. Generalizing verifiable instruction following. In Advances in Neural Information Processing Systems, 2025.
Keisuke Sakaguchi, Ronan Le Bras, et al. WinoGrande: An adversarial Winograd schema challenge at scale. Communications of the ACM, 2021.
Kristian Schwethelm, Daniel Rückert, et al. Depth-adaptive inference of looped language models via continuous depth batching. arXiv preprint arXiv:2608.09444, 2026a.
Kristian Schwethelm, Daniel Rückert, et al. How much is one recurrence worth? iso-depth scaling laws for looped language models. arXiv preprint arXiv:2604.21106, 2026b.
Julien Siems, Timur Carstensen, et al. DeltaProduct: Improving state-tracking in linear RNNs via Householder products. In Advances in Neural Information Processing Systems, 2025.
Alon Talmor, Jonathan Herzig, et al. CommonsenseQA: A question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, 2019.
Shawn Tan, Yikang Shen, et al. Sparse Universal Transformer. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023.
Yubo Wang, Xueguang Ma, et al. MMLU-Pro: A more robust and challenging multi-task language understanding benchmark. In Advances in Neural Information Processing Systems Datasets and Benchmarks Track, 2024.
Xiao-Wen Yang, Zi-Yu Han, et al. Stabilizing recurrent dynamics for test-time scalable latent reasoning in looped language models. In International Conference on Machine Learning, 2026.
Abbas Zeitoun, Lucas Torroba-Hennigen, et al. Hyperloop Transformers. arXiv preprint arXiv:2604.21254, 2026.
Rui-Jie Zhu, Zixuan Wang, et al. Scaling latent reasoning via looped language models. arXiv preprint arXiv:2510.25741, 2025.
A. Model Architecture and Training Details
All models are implemented in Megatron-LM. Each self-attention, feed-forward, GDP, and MoE layer counts as one layer. The ELR models in Section 4 and the GPT-0.5B ablations share their backbone configurations with their non-recurrent baselines. Without loop-conditioned modulation, ELR adds only the adaptive-delta gate, whose parameters amount to about 0.2% of the baseline parameters for GPT-0.5B and GDP-Hybrid-4B, and 0.02% of the total (0.2% of the active) parameters for GDP-Hybrid-30B-A3B. The loop-conditioned GPT-0.5B ablation uses conditioning dimension 256, low-rank dimension , and maximum loop count . Koi-4B additionally uses loop-conditioned modulation and has no matched non-recurrent baseline; its architecture and training stages are described in Appendix A.4.
A.1. Architectures
GPT-0.5B is a dense Transformer whose 30 layers alternate between self-attention and SwiGLU MLP layers, and its ELR variant partitions them 8/14/8. GDP-Hybrid-4B and GDP-Hybrid-30B-A3B follow the Nemotron 3 Nano hybrid layout (NVIDIA, 2025), with Mamba-2 layers replaced by Gated DeltaProduct (GDP) layers (Siems et al., 2025). Both use the same layer ordering, written below with G for GDP, A for attention, and F for a feed-forward layer, which is a dense MLP in GDP-Hybrid-4B and an MoE layer in GDP-Hybrid-30B-A3B. Bars mark the 14/24/14 ELR partition:
GFGFGAFGFGFGAF | GFGFGAFGFGFGAFGFGFGAFGFG | FGFGAFGFGFGFGF
All models use RMSNorm, linear layers without bias, untied embeddings, no dropout, BF16 training, and a 131,072-token vocabulary. Table 4 lists the remaining dimensions.
Table 4 | Backbone configurations, shared by each ELR model and its non-recurrent baseline. Koi-4B uses the GDP-Hybrid-4B configuration. Partial RoPE rotates 50% of each attention head's dimensions.
| GPT-0.5B | GDP-Hybrid-4B | GDP-Hybrid-30B-A3B | |
|---|---|---|---|
| Layers (GDP / attention / FF) | 0 / 15 / 15 | 23 / 6 / 23 | 23 / 6 / 23 |
| ELR partition () | 8 / 14 / 8 | 14 / 24 / 14 | 14 / 24 / 14 |
| Feed-forward type | Dense | Dense | MoE |
| Activation | SwiGLU | Squared ReLU | Squared ReLU |
| Hidden size | 1,024 | 3,072 | 2,688 |
| FF intermediate size | 3,968 | 12,288 | 1,856 per expert |
| Query heads / KV groups | 8 / 4 | 24 / 8 | 32 / 2 |
| Attention head dim. | 128 | 128 | 128 |
| Position encoding | RoPE () | None | Partial RoPE () |
| GDP heads / head dim. / state dim. | - | 96 / 32 / 64 | 16 / 64 / 128 |
| Routed experts / top- | - | - | 512 / 22 |
| Expert latent dim. / shared expert size | - | - | 672 / 3,712 |
MoE routing. GDP-Hybrid-30B-A3B computes sigmoid router scores in FP32. It balances expert load with a learned per-expert score bias and a sequence-level auxiliary loss with coefficient .
A.2. Optimization
Table 5 lists the optimization settings for the matched experiments and GPT-0.5B ablations, which each baseline shares with its ELR counterpart. These models train on a subset of the Nemotron 3 Ultra pretraining data (NVIDIA, 2026a). GDP-Hybrid-30B-A3B applies Muon to two-dimensional weight matrices, with momentum 0.9, 16 Newton–Schulz iterations using Polar Express coefficients, and spectral update scaling with an extra factor of 0.2. AdamW updates all other parameters. For these runs, the learning rate follows a warmup-stable-decay schedule with a decay to the minimum learning rate over the final 15% of training tokens.
Table 5 | Optimization and ELR training settings. Each non-recurrent baseline uses the same data, token budget, and optimization settings as its ELR counterpart. and are nominal values from Eq. 3.
| GPT-0.5B | GDP-Hybrid-4B | GDP-Hybrid-30B-A3B | |
|---|---|---|---|
| Training tokens | 300B | 1T | 300B |
| Optimizer | AdamW | AdamW | Muon + AdamW |
| AdamW (, ) / weight decay | (0.9, 0.95) / 0.1 | (0.9, 0.95) / 0.1 | (0.9, 0.95) / 0.1 |
| Peak / minimum learning rate | |||
| Warmup tokens | 8.4B | 33.6B | 8.4B |
| Sequence length / global batch | 8,192 / 768 | 8,192 / 768 | 8,192 / 768 |
| Gradient clipping | 1.0 | 1.0 | 1.0 |
| Initialization std | 0.028 | 0.0162 | 0.0173 |
| Maximum loop count | 5 | 4 | 4 |
| One-loop override fraction | 0.15 | 0.10 | 0.10 |
| 0.32 / 2.70 | 0.325 / 2.35 | 0.325 / 2.35 | |
| Mixed-depth phase | All tokens | Final 25% | Final 25% |
A.3. Mixed-Depth Training
A single majority loop count is drawn for each microbatch and shared by all data-parallel ranks. Of the ranks, round contiguous ranks run one loop, and the starting index of this group shifts on every microbatch. Gradients are backpropagated through all executed loops without truncation.
In delayed mixed-depth training, the continuation restores the model weights, optimizer state, and learning-rate schedule from the one-loop checkpoint. For GDP-Hybrid-30B-A3B, the dynamically routed and route-replay ELR models start from the same one-loop checkpoint. The fixed-depth GPT-0.5B models in Section 6.2 train without overrides.
A.4. Koi-4B Architecture and Training
Architecture. Koi-4B uses the GDP-Hybrid-4B backbone and 14/24/14 partition in Table 4, with the ELR architecture of Section 3.1. It adds the loop-conditioned modulation of Section 3.3 with conditioning dimension 256, low-rank dimension , and , adding 155.6M parameters (3.94% of the backbone).
Pretraining and context extension. Koi-4B is pretrained for 7T tokens at sequence length 8,192 on a subset of the Nemotron 3 Ultra corpus (NVIDIA, 2026a). The first 44% of tokens (approximately 3.1T) use the diversity-focused Phase 1 blend, and the remaining 56% (approximately
3.9T) use the quality-focused Phase 2 blend. Independently of this blend transition, the loop schedule switches at 50% of the token budget: the first half uses , and the second half draws the majority loop count uniformly from with a rotating 10% one-loop rank override, giving nominal and (Eq. 3). The zero-initialized conditioning heads are introduced at this switch. By Eq. 5, this schedule has an estimated layer-execution cost of that of pretraining at one loop throughout. A subsequent 50B-token mid-training stage extends the context length to 262,144 tokens with the same mixed-depth schedule. Table 6 summarizes the training stages.
Pretraining optimization. Pretraining uses AdamW with , weight decay 0.1, gradient clipping at 1.0, and a global batch size of 768 sequences. The learning rate warms up linearly over 33.6B tokens to , remains constant, and follows a decay to over the final 15% of training tokens.
Table 6 | Koi-4B training stages. and are nominal values from Eq. 3 or the sampling ratio.
| Stage | Data and budget | Loop schedule |
| Pretraining | Nemotron 3 Ultra subset; 7T tokens at 8K context | One loop for the first 50%; then uniform over with a 10% one-loop rank override (, ) |
| Mid-training | Context extension; 50B tokens at 256K context | Same as the pretraining mixed-depth phase |
| SFT | Nemotron 3.5 Super text-only data; four epochs | Same as the pretraining mixed-depth phase |
| RLVR | Nemotron 3.5 Super text-only data; 200 steps | Sampling ratio 4:1:1:1 for (, ) |
Post-training. Koi-4B undergoes four epochs of supervised fine-tuning on the text-only Nemotron 3.5 Super data (NVIDIA, 2026b), followed by 200 steps of reinforcement learning from verifiable rewards. SFT uses packed sequences of length 256K, a global batch size of 48, and AdamW with , weight decay 0.1, and gradient clipping at 1.0. The learning rate is after a 50-step warmup and remains constant thereafter. SFT uses the same mixed-depth settings as pretraining. RLVR uses asynchronous GRPO with 16 rollouts per prompt, a batch of 256 prompts (4,096 rollouts per step), and a constant learning rate of (Adam, no weight decay, gradient clipping at 1.0). Advantages use a leave-one-out baseline with reward normalization. The loss is token-level, with no KL penalty and truncated importance sampling (weights clipped to [0.2, 5]) to correct for the one-step policy lag of asynchronous generation. Sequences whose generation and and training token probabilities differ by more than a factor of two on average are masked from the loss. Rollouts are sampled at temperature 1.0 with up to 24,576 new tokens in a 64K context. Loop counts are assigned per prompt: all 16 rollouts of a prompt use the same , and prompts are split in a 4:1:1:1 ratio across , favoring the faster one-loop rollouts. A pass-rate curriculum routes harder prompts to higher . Generation runs on separate inference engines, each serving a fixed loop count, with engines allocated 4:2:3:4 across to balance the per-loop decode cost. We train for 200 steps.
B. Matched-Baseline Benchmark Results
B.1. Evaluation Protocol
Evaluation uses task-specific decoding and scoring protocols. Every ELR checkpoint is evaluated at each loop count in its trained range, and the non-recurrent baseline uses the same protocol. Table 7 lists the benchmarks, few-shot counts, and metrics. GSM8K and MATH-500 answers are evaluated using mathematical equivalence via Math-Verify.
Table 7 | Downstream evaluation benchmarks.
| Benchmark | Domain | Shots | Metric |
|---|---|---|---|
| MMLU (Hendrycks et al., 2021) | Knowledge | 5 | Accuracy |
| MMLU-Pro (Wang et al., 2024) | Knowledge | 5 | Accuracy |
| ARC-Challenge (Clark et al., 2018) | Science QA | 25 | Accuracy |
| WinoGrande (Sakaguchi et al., 2021) | Commonsense | 5 | Accuracy |
| CommonsenseQA (Talmor et al., 2019) | Commonsense | 7 | Accuracy |
| RACE-high (Lai et al., 2017) | Reading comprehension | 0 | Accuracy |
| GSM8K (Cobbe et al., 2021) | Math | 8 (CoT) | Answer accuracy |
| MATH-500 (Lightman et al., 2024) | Math | 4 | pass@1 |
| HumanEval (Chen et al., 2021) | Code | 0 | pass@1 |
| MBPP (sanitized) (Austin et al., 2021) | Code | 3 | pass@1 |
B.2. GDP-Hybrid-4B
Table 8 reports the per-benchmark scores underlying Figure 2a. All ELR columns come from a single checkpoint evaluated at .
Table 8 | Downstream benchmark scores (%) for GDP-Hybrid-4B trained for 1T tokens.
| Benchmark | Baseline | ELR | |||
|---|---|---|---|---|---|
| MMLU | 62.1 | 62.5 | 66.7 | 67.2 | 67.6 |
| MMLU-Pro | 41.3 | 39.5 | 45.0 | 47.0 | 47.3 |
| ARC-Challenge | 79.5 | 79.8 | 83.8 | 84.6 | 85.0 |
| WinoGrande | 70.8 | 73.5 | 74.8 | 75.2 | 75.6 |
| CommonsenseQA | 71.4 | 68.8 | 75.5 | 77.2 | 77.8 |
| RACE-high | 76.9 | 74.4 | 80.9 | 81.2 | 82.4 |
| GSM8K | 76.3 | 71.0 | 81.0 | 82.3 | 82.8 |
| MATH-500 | 64.1 | 69.3 | 75.5 | 79.6 | 80.6 |
| HumanEval | 57.3 | 56.1 | 66.5 | 64.6 | 64.0 |
| MBPP | 56.8 | 56.4 | 58.8 | 61.9 | 60.7 |
| Avg. | 65.65 | 65.13 | 70.85 | 72.08 | 72.38 |
B.3. GDP-Hybrid-30B-A3B
Table 9 reports the per-benchmark scores underlying Figure 2b for ELR with dynamic routing and with cross-loop route replay (Section 4.3). Both ELR models start the mixed-depth phase from the same one-loop checkpoint.
Table 9 | Downstream benchmark scores (%) for GDP-Hybrid-30B-A3B trained for 300B tokens.
| Benchmark | Baseline | ELR | ELR + Route Replay | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MMLU | 62.04 | 65.55 | 68.48 | 69.32 | 69.28 | 65.23 | 68.51 | 69.15 | 69.17 |
| MMLU-Pro | 39.07 | 38.40 | 44.35 | 45.78 | 45.94 | 39.27 | 44.23 | 45.42 | 45.68 |
| ARC-Challenge | 77.39 | 79.78 | 83.70 | 84.73 | 84.73 | 79.35 | 84.90 | 85.32 | 85.32 |
| WinoGrande | 74.74 | 74.03 | 76.72 | 77.19 | 78.69 | 74.03 | 75.45 | 75.85 | 76.01 |
| CommonsenseQA | 69.53 | 72.56 | 77.31 | 78.13 | 77.72 | 71.66 | 75.59 | 77.31 | 77.64 |
| RACE-high | 75.12 | 77.89 | 83.54 | 83.64 | 83.06 | 79.14 | 82.87 | 84.78 | 84.50 |
| GSM8K | 79.68 | 80.44 | 86.13 | 86.35 | 86.96 | 79.91 | 85.06 | 86.05 | 86.81 |
| MATH-500 | 60.78 | 63.34 | 65.84 | 65.90 | 65.95 | 66.53 | 70.47 | 68.51 | 68.54 |
| HumanEval | 49.39 | 45.73 | 50.00 | 47.56 | 50.61 | 43.29 | 49.39 | 51.83 | 50.00 |
| MBPP | 62.65 | 63.04 | 66.15 | 65.37 | 65.37 | 61.09 | 63.04 | 65.37 | 65.37 |
| Avg. | 65.04 | 66.08 | 70.22 | 70.40 | 70.83 | 65.95 | 69.95 | 70.96 | 70.90 |
C. Koi-4B Evaluation and Detailed Results
Table 10 reports per-benchmark scores for the single post-trained Koi-4B checkpoint at , under the evaluation setup of Section 5.1. All scores come from our evaluation harness. CritPt is not run, since models of this size score near zero on it, and contributes zero to the index at every loop count. Index estimates are given to two decimal places, and Figure 3 rounds them to the nearest integer.
Table 10 | Koi-4B benchmark scores across inference loop counts. Parenthesized values are AA-Index v4.1 weights. GDPval-AA v2 is reported as Elo, and all other benchmarks as percentages.
| Benchmark (index weight) | ||||
|---|---|---|---|---|
| AA-Index v4.1 estimate | 17.52 | 25.57 | 27.93 | 29.23 |
| GDPval-AA v2, Elo (20%) | 611 | 899 | 960 | 997 |
| Terminal-Bench 2.1 (16%) | 12.1 | 22.9 | 26.5 | 28.0 |
| -Bench Banking (14%) | 11.3 | 16.8 | 19.8 | 21.8 |
| Humanity's Last Exam (12%) | 5.9 | 9.1 | 10.1 | 11.9 |
| AA-Omniscience accuracy (8%) | 8.1 | 8.8 | 8.6 | 9.3 |
| SciCode (8%) | 17.7 | 28.0 | 30.8 | 33.4 |
| GPQA Diamond (6%) | 59.9 | 69.9 | 73.6 | 72.8 |
| AA-LCR (6%) | 51.3 | 65.7 | 67.8 | 68.3 |
| CritPt (6%) | 0 | 0 | 0 | 0 |
| AA-Omniscience non-hallucination (4%) | 86.1 | 85.2 | 86.3 | 85.9 |
| Benchmarks outside the index | ||||
| IFBench | 61.2 | 70.1 | 70.6 | 71.8 |
| LiveCodeBench v6 (pass@1) | 50.5 | 66.8 | 71.6 | 71.9 |
| MATH-500 | 88.8 | 96.6 | 97.2 | 97.2 |
C.1. Output Token Accounting and Aggregation
Let be the mean number of output tokens per rollout on benchmark at loop count , measured with per-loop KV caches. A rollout's count sums completion tokens, including reasoning, over all model requests, agent turns, and sub-steps. It includes requests truncated at the 65,536-token output cap and excludes judges and the user simulator. Terminal-Bench counts come from proxy logs, since trajectory records omit truncated requests, and SciCode counts are request-log totals divided by the number of rollouts. GDPval counts include timed-out tasks, which receive no Elo judgment, so its token and score averages cover different task sets. Table 11 reports .
Figure 3b plots the geometric mean of each benchmark's ratio to its one-loop value:
This weights all eight AA-Index benchmarks we run equally, regardless of output length. AA-Omniscience counts once because its two index components share the same generations. Total output tokens over these benchmarks fall by a similar 35.1% from to , and excluding GDPval gives .
Table 11 | Mean output tokens per rollout for Koi-4B. The last row is (Eq. 6).
| Benchmark | ||||
|---|---|---|---|---|
| GDPval-AA v2 | 154,205 | 96,979 | 83,979 | 78,506 |
| Terminal-Bench 2.1 | 215,788 | 146,397 | 121,387 | 107,927 |
| -Bench Banking | 35,543 | 27,169 | 24,325 | 22,905 |
| Humanity's Last Exam | 28,907 | 29,766 | 28,519 | 28,187 |
| AA-Omniscience | 7,254 | 6,356 | 5,826 | 5,639 |
| SciCode | 41,061 | 35,408 | 31,861 | 30,253 |
| GPQA Diamond | 14,059 | 12,604 | 11,835 | 11,502 |
| AA-LCR | 26,430 | 16,263 | 14,801 | 14,870 |
| Geometric-mean ratio | 1.0000 | 0.7821 | 0.7046 | 0.6732 |
Each setting is a single run, and fewer output tokens do not by themselves imply lower inference compute or latency, since each token costs more at higher .
C.2. Last-Loop KV-Cache Results
Table 12 reports the comparisons that complement Table 2. Both cache policies are evaluated on the same checkpoint with the same recipes and a 65,536-token output cap per request, with one run per setting. Each question is repeated 16 times for AA-LCR, 10 for AA-Omniscience, 9 for LiveCodeBench, 8 for GPQA, SciCode, -Bench Banking, Terminal-Bench, and IFBench, and once for HLE and MATH-500.
Score uncertainty. For the nine benchmarks with per-question scores, each comparison is paired over questions using the per-question mean over repeats. Of the resulting 27 comparisons across , seven reach . Last-loop KV is higher on -Bench Banking and LiveCodeBench at , and lower on LiveCodeBench at , HLE at , and AA-Omniscience accuracy at . At this uncorrected threshold, about one such result is expected by chance across 27
Table 12 | Per-loop and last-loop KV-cache results at . Scores are percentages. Output Tokens is the ratio of mean output tokens per rollout, last-loop to per-loop, at the same loop count. Both AA-Omniscience metrics use the same generations.
| Benchmark | ||||||
|---|---|---|---|---|---|---|
| Per-loop | Last-loop | Output Tokens | Per-loop | Last-loop | Output Tokens | |
| Terminal-Bench 2.1 | 22.89 | 23.60 | 0.81× | 26.54 | 29.35 | 0.80× |
| -Bench Banking | 16.75 | 19.85 | 0.86× | 19.85 | 20.36 | 0.86× |
| Humanity's Last Exam | 9.08 | 8.94 | 0.95× | 10.10 | 9.87 | 0.94× |
| AA-Omniscience accuracy | 8.80 | 8.03 | 0.80× | 8.57 | 8.28 | 0.82× |
| SciCode | 27.95 | 29.12 | 0.99× | 30.82 | 29.99 | 0.94× |
| GPQA Diamond | 69.95 | 71.91 | 0.97× | 73.61 | 73.55 | 0.96× |
| AA-LCR | 65.69 | 66.44 | 0.92× | 67.81 | 66.88 | 0.91× |
| AA-Omniscience non-halluc. | 85.20 | 86.30 | 0.80× | 86.26 | 87.72 | 0.82× |
| IFBench | 70.12 | 71.06 | 0.90× | 70.65 | 71.46 | 0.93× |
| LiveCodeBench v6 | 66.79 | 68.75 | 0.94× | 71.59 | 69.21 | 0.97× |
| MATH-500 | 96.60 | 97.20 | 0.87× | 97.20 | 96.60 | 1.00× |
comparisons. Conversely, means no difference is detected, not that the two policies are equivalent. These statistics capture variation across questions within a single run, not across runs.
Output tokens. Output tokens are counted as in Appendix C.1. Last-loop KV produces fewer output tokens on all ten benchmarks at and on all but MATH-500 at . Much of the reduction comes from fewer requests truncated at the output cap. At , the truncation rate falls from to on Terminal-Bench, to on HLE, to on AA-Omniscience, and to on AA-LCR. On Terminal-Bench, tokens no longer spent on capped requests account for of the reduction, even though mean agent turns rise by .
GDPval-AA v2. We omit GDPval from Tables 2 and 12. Tasks that exceed the per-task wall-clock deadline receive no Elo judgment. Last-loop KV fails more of the 220 tasks, mostly by timeout: 13, 29, and 52 failures at , against 1, 6, and 12 with per-loop caches. It also takes more agent turns per task. The two policies' Elo estimates therefore cover different task subsets. The judging reference sets also differ across runs, so per-task rewards cannot be paired. For the same reason, we do not report an AA-Index composite for last-loop KV.
D. Inference Latency Measurements
D.1. Measurement Setup
We time the GDP-Hybrid-4B baseline and ELR checkpoints with vLLM 0.20.2 on one H100 80GB GPU, using BF16 weights, eager prefill, and full CUDA-graph decode. The main workload uses batch size one, 1,024 prompt tokens, and 128 greedily generated tokens with EOS ignored, so every request has a fixed output length. TTFT is measured from batch submission to the first output token, and per-token decode latency is the time between the first and last output tokens divided by 127. Inputs are pretokenized, and prefix caching, chunked prefill, speculative decoding, and torch.compile are disabled. We report median times over seven repetitions after two warm-up batches, normalized to the non-recurrent baseline under the same workload. The confidence intervals in Figure 7 are percentile-bootstrap intervals of the time ratio over 10,000 draws, resampling model and baseline repetitions independently. They reflect timing variability only.
D.2. Sensitivity to Workload
We repeat the measurements at prompt lengths of 128, 1,024, and 4,096 tokens and batch sizes of one and eight, using either CUDA graphs for decode with eager prefill or eager execution throughout. Across prompt lengths and batch sizes, one-loop ELR decode latency differs from the baseline by -0.26% to +0.07% with CUDA graphs and by +0.41% to +2.16% in eager mode. The corresponding TTFT differences are -1.54% to +0.42% with CUDA graphs and +0.16% to +1.53% in eager mode.
★ Non-Recurrent Baseline ■ ELR

(a) Time to First Token

(b) Decode Latency
Figure 7 | GDP-Hybrid-4B ten-task average accuracy versus (a) TTFT and (b) per-token decode latency, normalized to the non-recurrent baseline (1×). Numbers indicate loop counts, and horizontal bars show 95% bootstrap intervals.
E. Route Replay Analysis
E.1. Evaluation Protocol
We compare the dynamically routed checkpoint (A), replay enabled only during inference on A's checkpoint (B), and a separately trained replay checkpoint (C) from Section 4.3. Both checkpoints are trained for 300B tokens. We sample 256 validation documents with one 2,048-token window each. Results on 64 separate documents with 8,192-token windows follow the same pattern.
E.2. Routing and Output Similarity
Routing statistics compare loops one and four in A (Table 13). For each token, the retained fraction is , where and are its first- and fourth-loop sets of 22 selected experts. In contrast, frequency cosine compares aggregate expert-use counts across tokens and does not measure whether a given token keeps its experts. For the layer-output comparison, we hold each layer's fourth-loop input fixed on A's trajectory and compare the output under fresh routes with the output under first-loop routes, without propagating these outputs to later layers. As a control, first-loop routes and weights are circularly shifted within each document, which preserves aggregate usage but breaks token correspondence. Including the shared experts increases output similarity in both comparisons, but replay remains closer to fresh routing than the shifted-route control.
E.3. Timing Measurements
Mixed-depth training update time is averaged over all updates and the reduction from replay stays between 11.0% and 12.7% across training intervals. The fixed k = 4 comparison uses a single
Table 13 | Cross-loop routing and output comparisons, averaged over ten recurrent MoE layers. Routing statistics compare loops one and four in A, with a 95% document-bootstrap interval in brackets. Output cosines report first-loop replay / shifted-route control on the same fourth-loop inputs. Full-MoE outputs include shared experts and exclude the outer residual.
| Metric | Value |
|---|---|
| Retained experts (%) | 53.17 [52.37, 53.89] |
| Aggregate frequency cosine | 0.978 |
| Routed-output cosine | 0.767 / 0.227 |
| Full-MoE output cosine | 0.918 / 0.718 |
checkpoint with replay toggled, with identical code and hardware for both conditions. Inference forward time compares B with A in Megatron-LM on eight H100 GPUs with BF16 weights and expert parallelism of eight. We time full-context forward passes from GPU-resident inputs to logits, taking the maximum wall time across ranks after three warm-up passes. At four loops, replay reduces forward time by 1.21–2.96% across sequence lengths of 128 to 8,192 tokens and one or two documents per rank, with the smallest reduction at 8,192 tokens.
F. Ablation Results
This appendix reports the input re-injection ablation on GPT-0.5B, complementing the ablations in Section 6.
F.1. Input Re-injection
Table 14 compares passing to directly with re-injecting the input-block output as (Section 3.1). All other settings follow the default GPT-0.5B ablation configuration. Repeating the fixed- versus mixed-depth, loop sampling, one-loop override, and delayed mixed-depth ablations with input re-injection gives the same ordering in each (Sections 6.2–6.5). We expect the state-update comparison (Section 6.1) to transfer as well.
Table 14 | Input re-injection on GPT-0.5B (validation loss).
| Recurrent-block input | |||||
|---|---|---|---|---|---|
| Non-recurrent baseline | 1.6852 | — | — | — | — |
| 1.6830 | 1.6391 | 1.6299 | 1.6278 | 1.6273 | |
| 1.6858 | 1.6442 | 1.6352 | 1.6329 | 1.6325 |