Towards Looped Models Done Right: Part I — Summary
Summary (Overview)
- Disentangles three architectural axes in looped language models—iteration envelope, input injection, and latent-state organization—that prior work (Ouro and Huginn families) varied simultaneously, preventing clean attribution of design choices.
- Controlled ablations at 730M parameters / 336B tokens show that the prelude–recurrent block–coda "sandwich" envelope provides the clearest gains (e.g., +12.00 on MATH500, +7.05 on GSM8K), while input injection primarily boosts context-dependent tasks (BBH-CoT +6.63, HumanEval+ +5.49) but can hurt quantitative reasoning (MATH500 −3.60).
- Random initialization and shared H/L recurrent states provide mixed or negative returns, suggesting these are task-dependent inductive biases rather than universally beneficial design choices.
- Huginn-style advantages transfer to MoE models: at 8B resident / 0.8B active parameters (500B tokens), Huginn outperforms Ouro on 8/10 benchmarks, achieves more balanced expert routing, and iteration-specific expert selection is causally important for performance.
- Apples-to-apples comparison: Huginn MoE uses 75% fewer resident parameters than a 112-layer feedforward MoE baseline, yet surpasses it on DROP and GSM8K, matches it on MATH500, and narrows the mean gap from 4.96 (dense) to 1.71 points (MoE).
Introduction and Theoretical Foundation
Background and Motivation
Looped language models reuse the same Transformer blocks across logical depth, trading additional computation for reduced memory usage. This paradigm is motivated by the observation that compute throughput grows faster than memory capacity/bandwidth in modern hardware. Two dominant architectural lineages have emerged:
- Ouro-style: Recurrently applies a tied full stack initialized from token embeddings.
- Huginn-style: Places recurrence between untied prelude and coda layers, repeatedly injects a fixed prelude representation, and uses a separately initialized recurrent state.
Common Iterative-Model Framework
The paper introduces a unifying notation for tied iterative models:
where is the prelude, the tied iterative body, the coda, initializes the recurrent state, and is the per-step input write.
Three Separable Design Axes
- Iteration envelope: Placement and sharing pattern of
- Input injection: Whether receives a persistent input condition (e.g., token embeddings vs. prelude-encoded )
- Latent-state organization: How initializes the loop state and the structure of states (e.g., fast/slow latents)
Methodology
Model Configurations
All looped models store 28 Transformer blocks (730M parameters) but reuse subsets across iterations, yielding 112 logical block executions (2.9B unrolled parameter applications):
- Ouro-style: — tied 28-block stack executed 4 times
- Huginn-style: — 8-layer prelude, 8-step loop over 12-layer tied core, 8-layer coda
- Feedforward baselines: (730M, resident-matched) and (2.9B, depth-matched)
Transformer block: PreNorm decoder-only backbone, 24 query heads, 6 KV heads, head dim 64, RoPE base , hidden dim 1536, SwiGLU MLP width 4352.
Training Recipe
- Data: TxT360 dataset (deduplicated Common Crawl + 14 curated sources)
- Sequence length: 8192; batch: 512 sequences (4,194,304 tokens/step)
- Optimizer: AdamW, LR ∈ {4×10⁻⁴, 6×10⁻⁴, 8×10⁻⁴}, 200 warmup steps, cosine decay, weight decay 0.1
- Budgets: 42B, 84B, 168B, 336B tokens (58–460 TPP for 730M models)
Evaluation Benchmarks
| Group | Benchmarks |
|---|---|
| Knowledge | ARC-Challenge, HellaSwag, MMLU, TriviaQA |
| Reasoning | BBH-CoT, DROP |
| Math | GSM8K, MATH500 |
| Code | HumanEval+, MBPP+ |
Empirical Validation / Results
Q1: Sandwich Envelope (Iteration Envelope)
Table 2: Q1 envelope comparison at 460 TPP (730M parameters; 336B tokens)
| Benchmark | Δ | ||||
|---|---|---|---|---|---|
| ARC-C | 36.39 | 43.78 | 39.40 | 38.45 | −0.94 |
| HSwag | 41.73 | 50.28 | 44.71 | 45.01 | +0.30 |
| MMLU | 39.86 | 54.85 | 46.32 | 47.27 | +0.95 |
| BBH-CoT | 34.42 | 55.91 | 45.83 | 48.30 | +2.47 |
| TQA | 25.21 | 38.83 | 28.51 | 28.60 | +0.09 |
| DROP | 31.04 | 40.88 | 36.38 | 38.99 | +2.61 |
| MATH500 | 12.80 | 47.60 | 20.80 | 32.80 | +12.00 |
| GSM8K | 29.11 | 64.22 | 54.97 | 62.02 | +7.05 |
| HEval+ | 21.34 | 42.07 | 29.88 | 28.66 | −1.22 |
| MBPP+ | 35.19 | 51.06 | 41.01 | 43.12 | +2.12 |
Key findings: The sandwich envelope improves instance-conditioned, multi-step reasoning (MATH500, BBH-CoT, DROP) but does not consistently improve knowledge-intensive or requirement-constrained tasks (code generation).
Q2: Input Injection
The input write uses a diagonal operator:
Key findings (middle loop, prelude write vs. no write):
- Gains: BBH-CoT +6.63, HumanEval+ +5.49, MBPP+ +4.23, MMLU +2.53, DROP +1.39
- Losses: MATH500 −3.60, GSM8K −2.51
- Despite the math trade-off, the complete injected middle-loop design outperforms injected full-stack Ouro on 8/10 benchmarks.
Q3: Recurrent Latent States
Table 4: Matched recurrent-state comparison at 460 TPP
| Benchmark | H/L | H/L − () | ||
|---|---|---|---|---|
| ARC-C | 37.60 | 40.94 | 39.83 | +2.23 |
| MMLU | 49.79 | 48.50 | 49.49 | −0.30 |
| DROP | 40.38 | 40.63 | 42.18 | +1.80 |
| MATH500 | 29.20 | 27.40 | 22.00 | −7.20 |
| GSM8K | 59.51 | 60.73 | 57.32 | −2.19 |
| HEval+ | 34.15 | 32.32 | 35.37 | +1.22 |
| MBPP+ | 47.35 | 45.24 | 44.71 | −2.64 |
Key findings: Random initialization produces 2 gains and 4 losses > 1 point; H/L hierarchy produces 3 gains and 3 losses > 1 point, with the largest degradation on MATH500 (−7.20). Neither provides consistent benefit.
MoE Transfer Results
Table 5: Benchmark performance of MoE models (8B resident / 793.9M active, 500B tokens)
| Benchmark | Ouro | Huginn | Δ (Huginn−Ouro) | |
|---|---|---|---|---|
| ARC-C | 53.22 | 51.33 | 50.47 | −0.86 |
| HSwag | 57.30 | 54.82 | 55.10 | +0.28 |
| MMLU | 67.13 | 64.03 | 66.81 | +2.78 |
| BBH-CoT | 71.76 | 69.05 | 68.85 | −0.20 |
| TQA | 59.02 | 50.98 | 51.04 | +0.07 |
| DROP | 56.81 | 57.70 | 59.65 | +1.95 |
| MATH500 | 53.40 | 49.80 | 53.40 | +3.60 |
| GSM8K | 80.82 | 78.92 | 83.62 | +4.70 |
| HEval+ | 56.10 | 48.17 | 49.39 | +1.22 |
| MBPP+ | 60.85 | 58.99 | 59.52 | +0.53 |
Routing diagnostics:
- Load-balancing loss at 500B tokens: Huginn 1.571 < Feedforward 1.652 < Ouro 1.899 (lower = more balanced)
- Causal intervention: Forcing iterations 2–8 to reuse iteration-1 expert identities (retaining iteration-specific weights) reduces accuracy on all six evaluated tasks, proving iteration-specific expert selection matters.
Feedforward comparison: Huginn uses 75% fewer resident parameters (8B vs. 32B) than yet surpasses it on DROP and GSM8K, matches on MATH500, with a mean gap of only 1.71 points (vs. 4.96 in dense).
Theoretical and Practical Implications
Architectural Design Principles
-
Localized recurrence is beneficial: Placing recurrence in the middle of the network (sandwich envelope) allows the recurrent core to focus on iterative state refinement while untied prelude/coda specialize in input encoding and output decoding—consistent with theories that repeated middle-layer computation supports multi-step reasoning.
-
Input injection is a double-edged sword: Persistent injection keeps prompt-relevant context accessible across iterations (benefiting context-dependent tasks) but may "pull" the state back toward input-conditioned representations, interfering with progressive state transformation needed for quantitative reasoning.
-
State initialization is task-dependent: Random initialization should be viewed as an inductive bias, not a universally beneficial choice—its value likely depends on whether tasks require path independence or algorithmic equilibrium behavior.
Practical Implications
- Memory efficiency without performance sacrifice: Looped MoE models can match or exceed much larger feedforward models on several benchmarks while storing 75% fewer parameters—highly relevant for deployment on memory-constrained hardware.
- MoE narrows the loop-to-feedforward gap: Sparse routing appears to compensate for the capacity limitations of tied weights, making looped models more competitive in the MoE regime.
- Better expert utilization: Huginn's design yields more balanced routing, potentially improving hardware utilization and training efficiency.
Conclusion
Main Takeaways
- The prelude–loop–coda sandwich envelope is the primary driver of Huginn's advantage over Ouro, especially for mathematical and multi-step reasoning.
- Persistent input injection provides complementary gains on context-dependent tasks but requires careful design to avoid harming quantitative reasoning.
- Random initialization and H/L hierarchical states provide no consistent benefit in matched, large-scale, finitely unrolled settings.
- All conclusions transfer to MoE models, where Huginn also achieves better expert utilization and narrows the gap to feedforward baselines.
Future Directions
- Scaling laws: Repeat controlled comparisons across model sizes and training budgets to establish scaling behavior.
- Multi-seed replications: Quantify seed-to-seed uncertainty of reported differences.
- MoE component attribution: Vary the three axes separately within MoE models (current study compares complete configurations only).
- Architecture–system co-design: Explore how loop architectures interact with conditional sparsity and hardware to advance the performance–efficiency Pareto frontier.
- HRM-Text-style variants: Evaluate separately parameterized H/L modules (the shared-module H/L finding does not rule out benefits from distinct modules).
Related papers
- EvalResearchBench: Can AI Agents Build Their Own Feedback for Recursive Self-Improvement?
AI agents can design evaluators achieving only ~75% agreement with target benchmarks, far below the 91% human-benchmark ceiling, revealing a key bottleneck for recursive self-improvement.
- Truncate or Not? A Scaling Study of Looped Transformers with Truncated Backpropagation
Full backpropagation through time is optimal for looped transformers when both forward and backward loop counts are free, despite truncation helping when forward loops are fixed.
- RecurTrace: Adaptive Latent Reasoning with Loop-Time Memory
RecurTrace adds loop-time attention memory and oracle-distilled halting to frozen LLMs, improving MathQA accuracy by 2.2 points at matched compute while scaling gains with model size.