Towards Looped Models Done Right, Part I: Topology, Input Injection, Recurrent-State Design
Organizations: Institute of Foundation Models · CMU · USC
Abstract
Looped language models reuse physical Transformer blocks across logical depth, but established architectures entangle recurrence placement, input injection, and recurrent state organization. We isolate these axes in models trained from scratch at matched parameter scale, logical depth, and token budgets, and then test whether the resulting design principles transfer to resident- and active-parameter-matched Mixture-of-Experts (MoE) models. The prelude-recurrent block-coda sandwich architecture consistently improves performance on context extraction and reasoning-intensive tasks. Input injection primarily enhances knowledge retrieval and context utilization, whereas random initialization and separate H/L recurrent states provide mixed or negative returns. Taken together, these results favor the Huginn-style design: at the 730M-parameter and 336B-token scale, the complete Huginn architecture outperforms Ouro across all ten benchmarks. The advantages of Huginn over Ouro transfer to MoE models. At the 8BA0.8B (32BA3B when unrolled) scale trained on 500B tokens, Huginn outperforms Ouro on nearly all benchmarks spanning knowledge, reasoning, and coding, while also exhibiting more balanced expert routing. Under matched training and inference FLOPs, the Huginn-style model uses 75% fewer resident parameters than a 112-layer feedforward MoE baseline. Despite its smaller physical parameters, it outperforms the feedforward baseline on DROP and GSM8K, matches it on MATH500, and remains competitive on the other benchmarks.
Figures & tables
| Model specification | Ouro -style | Huginn -style |
|---|---|---|
| Prelude | identity | 8 untied layers |
| Initializer | ||
| Input write | ||
| Shared body | tied 28-block stack | tied 12-block middle body |
| Coda | identity | 8 untied layers |
| Iterations | 4 | 8 |
| Feedforward reference | Loop topology | |||||
|---|---|---|---|---|---|---|
| Group | Benchmark | |||||
| General | ARC-C | 36.39 | 43.78 | 39.40 | 38.45 | |
| HSwag | 41.73 | 50.28 | 44.71 | 45.01 | ||
| MMLU | 39.86 | 54.85 | 46.32 | 47.27 | ||
| BBH-CoT | 34.42 | 55.91 | 45.83 | 48.30 | ||
| TQA | 25.21 | 38.83 | 28.51 | 28.60 | ||
| Middle loop | Full-stack Ouro | ||||||
| Group | Benchmark | no write | prelude write | no write | raw-token write | ||
| General | ARC-C | 38.45 | 37.60 | 39.40 | 39.06 | ||
| HSwag | 45.01 | 45.37 | 44.71 | 45.65 | |||
| MMLU | 47.27 | 49.79 | 46.32 | 48.11 | |||
| BBH-CoT | 48.30 | 54.94 | 45.83 | 47.63 | |||
| TQA | 28.60 | 29.42 | 28.51 | 28.53 | |||
| Latent state | |||||
|---|---|---|---|---|---|
| Group | Benchmark | ||||
| General | ARC-C | 37.60 | 40.94 | 39.83 | |
| HSwag | 45.37 | 45.47 | 45.90 | ||
| MMLU | 49.79 | 48.50 | 49.49 | ||
| BBH-CoT | 54.94 | 54.43 | 55.12 | ||
| TQA | 29.42 | 28.97 | 30.17 | ||
| MoE architecture | |||||
| Group | Benchmark | Feedforward | Ouro | Huginn | |
| General | ARC-C | 53.22 | 51.33 | 50.47 | |
| HSwag | 57.30 | 54.82 | 55.10 | ||
| MMLU | 67.13 | 64.03 | 66.81 | ||
| BBH-CoT | 71.76 | 69.05 | 68.85 | ||
| TQA | 59.02 | 50.98 | 51.04 | ||
| Geometry | MoE | Parameters | ||||||||
| Model | Phys. | Topology | MoE phys. | Top- | Real | Active | Loop-equiv. | Unrolled active | ||
| Feedforward reference | ||||||||||
| Feedforward MoE | 112 | 112 | 25 | 2 | 2432 | 32.0B | 3.2B | n/a | n/a | |
| Looped models | ||||||||||
| Huginn MoE | 28 | 28 | 25 | 2 | 2432 | 8.0B | 793.9M | 32.0B | 3.2B | |
| Ouro MoE | 28 | 28 | 25 | 2 | 2432 | 8.0B | 793.9M | 32.0B | 3.2B | |
| Task | Split (examples) | Shots | Metric | Input / output cap |
|---|---|---|---|---|
| ARC-C | Shared local test (1,165) | 0 | 512 / – | |
| HellaSwag | Validation (10,042) | 0 | Acc | 256 / – |
| MMLU | Test, 57 subjects (14,042) | 5 | Micro Acc | 2,048 / – |
| BBH-CoT | Full test (6,511) | 3 | EM | 4,096 / 1,024 |
| TriviaQA | Local full test (11,313) | 5 | F1 | 512 / 24 |
| DROP | Test (9,535) | 3 | F1 | 2,500 / 64 |
Recurrent Transformers
Recurrent Transformers reuse layers or state across steps to extend context, reasoning depth, and sequence modeling with less parameter growth.
See all 183 papers