One Model to Loop Them All: Elastic Latent Recurrence for Language Models
Organizations: NVIDIA
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.
Figures & tables
| Routing | Val Loss at | Training Update Time | Inference Forward Time | |
| Mixed-depth | Fixed | |||
| (A) Dynamic routing | reference | |||
| (B) Inference-only replay | – | – | ||
| (C) Replay training | ||||
| Benchmark | Per-loop | Last-loop | [1pt]Score | Output [1pt]Tokens | |
| Terminal-Bench 2.1 | 12.1 | 28.0 | 27.4 | ||
| -Bench Banking | 11.3 | 21.8 | 21.8 | ||
| Humanity’s Last Exam | 5.9 | 11.9 | 10.5 | ||
| AA-Omniscience accuracy | 8.1 | 9.3 | 8.5 | ||
| SciCode | 17.7 | 33.4 | 32.0 | ||
| Sampling | Depths/Update | Step Time | ||||||
| – | Non-recurrent baseline | – | – | 1.6852 | – | – | – | – |
| 0.20 | Synchronized, uniform | 1 | 1.7077 | 1.6473 | 1.6344 | 1.6318 | 1.6313 | |
| Independent, uniform | 1.6937 | 1.6330 | 1.6193 | 1.6157 | 1.6147 | |||
| 0.32 | Synchronized, weighted | 1 | 1.6871 | 1.6436 | 1.6343 | 1.6320 | 1.6316 | |
| Synchronized, 15% override | 1.6830 | 1.6391 | 1.6299 | 1.6278 | 1.6273 | |||
| Independent, weighted | 1.6774 | 1.6334 | 1.6231 | 1.6200 | 1.6194 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| 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 |
| 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 |
| 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 for ( , ) |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Benchmark | ||||||
| Per-loop | Last-loop | Output [1pt]Tokens | Per-loop | Last-loop | Output [1pt]Tokens | |
| Terminal-Bench 2.1 | 22.89 | 23.60 | 26.54 | 29.35 | ||
| -Bench Banking | 16.75 | 19.85 | 19.85 | 20.36 | ||
| Humanity’s Last Exam | 9.08 | 8.94 | 10.10 | 9.87 | ||
| AA-Omniscience accuracy | 8.80 | 8.03 | 8.57 | 8.28 | ||
| SciCode | 27.95 | 29.12 | 30.82 | 29.99 | ||
| 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 |
| 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 |