LLM Architecture

Are Looped Transformers Worth It at Equal Compute? Huginn, Ouro, and SMELT

Contents
  1. 1. Two Loop Regimes, Reasoning vs. Memorization, and Latent Optimization
  2. 2. Triple-Matched Scaling Evidence: Inside SMELT 54B
  3. 3. Staged Training, Systems Overhead, and Deployment Boundaries
  4. 3.1 Folding Topologies, GPU Batching, and Our 2027 Bet
  5. 3.2 Further Reading
  6. References

The primary motivation cited for weight-tied Transformers is parameter efficiency: storing one-third of the layer weights and applying them three times promises comparable effective depth at a fraction of the checkpoint footprint. Evaluated purely on static model size, parameter tying appears highly advantageous. Once training FLOPs, non-embedding parameter count, inference KV Cache footprint, and single-request latency are held fixed simultaneously, however, the picture becomes substantially more nuanced—a critical framing pressed by Benhao Huang in Weight-Tied Iterative Models: Promise, Hype, and the Missing Evidence in 2026 (2026).

Much of the disagreement across recent empirical papers stems from conflating fundamentally different loop topologies under a single name and running scaling comparisons where at least one resource axis remains unmatched. Disentangling those designs and anchoring the comparison in controlled function spaces is a prerequisite for reading the scaling evidence accurately.


1. Two Loop Regimes, Reasoning vs. Memorization, and Latent Optimization#

Before examining individual benchmarks, it helps to state the exact mathematical relationship at equal per-token FLOPs. Compare a 2B × 4-pass ($K = 4$) looped Transformer against an untied 8B × 1-pass dense Transformer: both execute the exact same FLOPs per token, yet the looped model's hypothesis space is a strict subset of the untied model's hypothesis space obtained by imposing $W_1 = W_2 = W_3 = W_4$:

$$\mathcal{F}_{2\text{B}\times 4} = \mathcal{F}_{8\text{B}\times 1}\big|_{W_1=W_2=W_3=W_4} \subset \mathcal{F}_{8\text{B}\times 1}$$

Because the untied 8B network can always realize any 2B × 4 function by setting its four blocks equal, in the infinite-data, perfect-optimization limit an untied equal-FLOP baseline achieves at least as low loss. Weight tying can therefore only win at iso-FLOPs for two reasons: hard memory/parameter caps (when 8B weights do not fit on device) or superior inductive bias / sample efficiency under finite data and optimization. Along those two objectives, Huginn, Ouro, Inkling 2 Mini, SMELT, and Coconut separate into two distinct regimes:

  1. Stepless test-time unrolling (Huginn) vs. fixed middle-stack folding (Inkling 2 Mini, SMELT, GLM-5.4):
  1. Minimal per-step untying (~0.0041% per extra pass): Practical shallow loops ($K = 2\text{–}4$) almost never enforce strict weight identity across iterations. Instead, systems tie the massive Attention and FFN linear matrices—accounting for over $99.9\%$ of parameters—while giving each pass $t$ dedicated RMSNorm scaling vectors $\gamma^{(t)}$ and residual gating scalars $\alpha^{(t)}$ per layer (one RMSNorm per sublayer—Attention and FFN—plus 2 residual scalars). At width $d = 4096$ (~200M parameters per full layer), allocating $2 \times 4096 + 2 = \mathbf{8{,}194}$ extra scalars per layer adds merely ~0.0041% per extra pass to parameter count. That negligible footprint improves fixed-$K$ convergence noticeably by letting each pass rescale activation distributions independently.
Intuition

Intuition & Worked Verification (4D Equalizer Analogy and Out-of-Horizon Miscalibration): Think of a 4-dimensional hidden vector as a four-band audio signal. The shared Attention and FFN matrices act as fixed operators, while pass-specific RMSNorm vectors act like a lightweight 4-band equalizer—for instance, $\gamma^{(1)} = [1.2, 0.8, 1.0, 1.1]$ on pass 1 shifting to $\gamma^{(2)} = [0.9, 1.3, 1.1, 0.8]$ on pass 2. While essentially free in memory, this ties activation calibration to the training horizon $K_{\text{train}}$. Pushing a $K_{\text{train}}=3$ model to $t = 4$ at test time forces an already terminal-normalized hidden state back through terminal-calibrated norm scales $\gamma^{(3)}$ (or uncalibrated weights), causing distribution mismatch and representation drift.

Conflating test-time compute scaling with iso-FLOP architectural efficiency produces contradictory readings unless benchmarks separate Setting 1 from Setting 2:

Evaluation SettingHeld FixedVaried AxisWhat It Actually Measures & Confounding Risk
Setting 1 (Fixed Physical Params)Physical parameters $P$ (e.g., Ouro / Huginn)Unroll passes $K$FLOPs and KV grow linearly with $K$; mixes test-time compute scaling with weight tying
Setting 2 (Triple-Matched)Active FLOPs, unique non-embedding params, KV CacheTrade depth tying for width or MoE experts (e.g., SMELT)Isolates pure topological and capacity-reallocation value at equal compute

Across both regimes, controlled experiments converge on a sharp capability split: weight-tied looping strengthens knowledge manipulation and multi-step reasoning over context, rather than expanding static parametric memorization. Zeyuan Allen-Zhu and Yuanzhi Li (Physics of Language Models: Part 3.3, arXiv:2404.05405) established an empirical knowledge capacity ceiling of ~2 bits per parameter (~2 bits/param) determined by unique parameter count, which recurrence cannot bypass.

In Thinking Machines Lab's companion variable-loop evaluation on TML-d24-varloop-research (a 24-layer MoE research model evaluated across $K = 1 \to 3$ loop passes alongside Inkling 2 Mini and later probed mechanically in Goodfire's 2026 interpretability study), that capability split is stark:

Left: TML-d24-varloop (K=1→K=3) Reasoning vs. Closed-Book Memory; Right: Eval Settings 1. TML-d24-varloop: Reasoning Jump vs. SimpleQA K=1 Base K=3 Reasoning K=3 Closed-Book GraphWalks5.7 → 52.1BrowseComp29.4 → 65.7HLE10.5 → 24.9SimpleQA6.3 → 7.3 (~2b/p) 2. Eval Control: Fixed P vs. Triple-Matched Setting 1 · Fixed Physical P Ouro / Huginn: K↑ scales FLOPs & KV by K× Conflates extra test compute with loop bias Setting 2 · Triple-Matched Budget SMELT: Lock FLOPs = Non-Emb P = KV Isolates loop topology vs. width / MoE experts
Figure 1: TML-d24-varloop (K=1→3) reasoning jumps versus flat closed-book recall, and Fixed-P vs. Triple-Matched eval designs.
Caveat

Caveat (Matched Loss ≠ Shorter CoT): In Inkling 2 Mini evaluations, an untied baseline took 7.5% less training compute yet required +140% more inference compute to match validation loss on 512k agent trajectories. However, matching trajectory validation loss at lower inference FLOPs does not automatically guarantee shorter explicit CoT at equal end-task pass rate—evaluations must report both accuracy and total generated tokens.

Beyond architectural topology, recurrent depth faces an intrinsic credit-assignment bottleneck: intermediate passes receive no direct token-level supervision. Evaluating cross-entropy strictly at the final iteration $H^{(K)}$ leaves early passes under-constrained. Enforcing per-step readout losses (as in PonderNet, examined in Why Adaptive Halting Is Hard to Train: From ACT to PonderNet) yields anytime halting capability at the cost of repeated lm_head projections during training.

Original figure (Zhu et al., 2025, Fig. 3): LoopLM (Ouro) training objective with per-step losses and entropy regularization (left) versus CDF-threshold early-exit inference via the Exit Gate (right) (arXiv:2510.25741).
Figure 2: LoopLM (Ouro) training objective with per-step losses and entropy regularization (left) versus CDF-threshold early-exit inference via the Exit Gate (right) (arXiv:2510.25741). (Source: Zhu et al., 2025, Fig. 3)

Walking through the left and right panels of Figure 1 clarifies how Ouro decouples training supervision from test-time halting: during Training (left), every pass $t = 1 \dots T_{\max}$ emits both an Exit Gate probability $p_t$ and a vocabulary Head loss $\mathcal{L}^{(t)}$, optimizing expected loss minus an entropy regularizer $\beta H(p_\phi)$; during Inference (right), the Exit Gate accumulates $\mathrm{CDF}_n = \sum_{t=1}^n p_t$ and triggers early exit once $\mathrm{CDF}_n > \text{threshold}$, skipping the faded virtual passes $t = n+1 \dots T_{\max}$.

In reinforcement learning (RL), this credit bottleneck worsens for pure continuous latent trajectories. Whereas discrete CoT samples explicit tokens from a vocabulary simplex, exploring in a continuous $d = 4096$ latent state amounts to 4096-D Gaussian wandering—perturbing a high-dimensional continuous vector without discrete commitment starves outcome-only RL (such as GRPO) of early-step signal. Two families tackle this: self-distillation/interleaving (Coconut, Hao et al., 2024; CODI, Shen et al., 2025) and trajectory-level per-pass policy gradients (RLTT, Williams et al., 2026, raising Ouro-2.6B-Thinking MATH-500 by +14.4% and AIME24 by +16.6% over GRPO).

Original figure (Hao et al., 2024, Fig. 1): Discrete token Chain-of-Thought (left) versus Coconut continuous latent thought feeding last hidden states directly back as input embeddings between bot and eot boundary tokens (right) (arXiv:2412.06769).
Figure 3: Discrete token Chain-of-Thought (left) versus Coconut continuous latent thought feeding last hidden states directly back as input embeddings between bot and eot boundary tokens (right) (arXiv:2412.06769). (Source: Hao et al., 2024, Fig. 1)

Figure 2 contrasts the two loops side by side: standard CoT (left) projects each hidden state to a sampled discrete token $x_i, x_{i+1}, \dots$ before re-embedding it, whereas Coconut (right) suppresses token sampling between <bot> and <eot> and routes the last hidden state straight back into the input embedding slot until <eot> emits [Answer]. More pragmatically, alternating short latent passes with explicit discrete tokens keeps RL exploration anchored without sacrificing compression.


2. Triple-Matched Scaling Evidence: Inside SMELT 54B#

To test weight-tying properly under Setting 2, SMELT (Wang et al., 2026) evaluated Mixtures of Experts up to 54B total parameters while locking all three budgets simultaneously. Note that the 16 × 6 = 24 × 4 ratio below illustrates routed-MoE-FFN capacity parity; in the full 54B SMELT scaling runs, the authors also tune hidden width $H$ and GQA head counts to match total non-embedding parameters (<1% delta) and KV Cache (<4% delta) alongside per-token FLOPs (<4% delta):

Control AxisStandard Untied MoE BaselineSMELT Looped MoE Variant
Active FLOPs / token24 effective layers, fixed expert size & Top-$k$4 prelude + 8×2 core + 4 coda = 24 eff. layers
Non-embedding params24 physical layers × 4 routed experts16 physical layers × 6 experts (width-tuned parity)
KV Cache footprint24 full-length KV layers24 effective KV layers (GQA-adjusted parity)

The short script below verifies SMELT's triple-matched layer/expert arithmetic, Inkling 2 Mini's weighted active parameters, and both dense maj@4 vs. serial 4-pass HBM reads and sparse MoE expert union factors:

PYTHON
# Iso-FLOP SMELT, Inkling active params, & dense/MoE HBM
pre, core, coda, K = 4, 8, 4, 2
eff_L, phys_L = pre + core * K + coda, pre + core + coda
assert eff_L == 24 and phys_L * 6 == 24 * 4

ink_act = 3.4 + (3 - 1) * 1.0  # 6+12x3+6 weighted active
mw_gb = 20.0
hbm_ser = mw_gb * (6 + 12 * 4 + 6) / 24
u4 = 1.0 - (1.0 - 8 / 128) ** 4  # E=128, k=8 union @ B=4
print(f"SMELT eff_L={eff_L}, Inkling active={ink_act:.1f}B")
print(f"Dense 20GB: maj@4={mw_gb:.1f}GB vs ser4={hbm_ser:.1f}GB")
print(f"MoE active union: B=1 {8/128:.3f} vs B=4 {u4:.3f}")

With per-token FLOPs, unique parameter capacity, and KV Cache held equal, four concrete findings—and one clear structural dependency—emerged:

  1. Middle-stack tying outperforms whole-stack tying: Restricting weight sharing to roughly the middle 50% of the network consistently beats tying from layer 1 to the output layer under fixed resource caps (for example, in SMELT's $S \approx 85\%$ span ablation, 50% middle-stack looping reaches 1.9257 validation loss / 27.57 Core average vs. 1.9322 / 25.31 for 100% whole-stack looping). Untied prelude and coda layers stabilize token embedding alignment and output distribution calibration.
  2. Trading redundant layers for routed experts yields real compute gains and a taller/skinnier aspect ratio: Reinvesting layer savings into extra routed experts—while shifting toward a taller/skinnier aspect ratio (slightly narrower $H$ to lock FLOPs)—delivers 6.8% to 18.0% effective pretraining compute savings (14.7%–18.0% at $10^{21}$ FLOPs) relative to triple-matched untied MoE baselines. Moreover, downstream benchmarks exhibit an extra ~+1 pt bonus beyond what validation loss alone predicts, concentrated on structured code, math, and multi-shot in-context tasks.
  3. Second-pass attention dilutes <BOS> sinks: Inspecting internal attention maps shows that the first core pass allocates substantial redundant attention mass to idle <BOS> sink tokens. Re-entering the same middle core on pass 2 redistributes that weight away from <BOS> onto informative evidentiary tokens earlier in the context. Across pass counts, $K = 2$ achieves the strongest efficiency gain, whereas $K \ge 3$ forces $H$ too narrow under locked FLOPs and degrades loss.
  4. MoE-dependency limitation: Reinvesting depth savings into inactive routed experts relies entirely on MoE's decoupling of total parameters from active FLOPs. Dense models cannot add inactive capacity to offset narrower hidden dimensions $H$, so this iso-FLOP capacity-reallocation win does not transfer directly to dense Transformers.
Original figure (Wang et al., 2026, Fig. 1): SMELT shared middle-layer MoE loop recipe (a), compute-optimal frontier showing 14.7% CE compute gain (b), and downstream accuracy radar (c) (arXiv:2609.01343).
Figure 4: SMELT shared middle-layer MoE loop recipe (a), compute-optimal frontier showing 14.7% CE compute gain (b), and downstream accuracy radar (c) (arXiv:2609.01343). (Source: Wang et al., 2026, Fig. 1)

Each panel in Figure 3 highlights a distinct piece of the thesis: panel (a) shows the red Loop × 2 middle stack with red ⊗ 1/2 residual scaling factors after both Attention (GQA) and MoE FFN, plus 3 extra red routed experts added next to the blue baseline experts; panel (b) traces the compute-optimal frontier from $10^{19}$ to $10^{22}$ FLOPs (S ≈ 97% parameter sharing), zooming in at $10^{21}$ FLOPs to mark the horizontal CE Gain 14.7% savings; and panel (c) displays the 6-axis radar chart where Knowledge barely budges over the dashed baseline while MMLU, Reading, Symbolic, Language, and Commonsense expand—visibly mirroring the ~2 bits/param memorization bound vs. reasoning gain split.

Caveat

Caveat — Why Global Expert Pools (SUT) Collapse Compared to Layered SMELT: The Sparse Universal Transformer (SUT, Tan et al., 2023, arXiv:2310.07096) pioneered combining MoE with Stick-Breaking adaptive halting inside a Universal Transformer (29.4 BLEU vs. 29.6 on WMT'14 En-De with lower MACs, 49.23% vs. 36.37% on LRA ListOps), yet flattened all experts into a single global pool shared across every recurrent step—destabilizing expert specialization at LLM scale. Keeping distinct per-layer MoE pools inside a ~50% middle stack framed by untied Prelude/Coda layers avoids global-pool routing collapse.


3. Staged Training, Systems Overhead, and Deployment Boundaries#

3.1 Folding Topologies, GPU Batching, and Our 2027 Bet#

Moving from controlled scaling grids to production training and serving has converged on a pragmatic three-stage training split:

  1. Pretrain fixed: Train either an untied base or a fixed shallow $K=2$ loop with activation checkpointing. Under SGD's simplicity bias, tying weights from random initialization forces every pass to share gradients early on, trapping the core in low-rank/simple basins before layers can differentiate specialized features; pretraining untied first lets depth differentiate cleanly.
  2. CPT / Midtrain folding: Fold middle layers during continual pretraining or mid-training with progressive gating ramp-up. Two folding topologies must be distinguished: adjacent pair-wise folding (aabbcc) vs. block-level looping (abc...abc). For example, Z.ai's GLM-5.4 (2026, built from a ~750B GLM-5 base with 78 physical layers) keeps 26 opening layers and 24 closing layers untied while running a 28-layer middle block for $K = 2$ passes, expanding effective depth to $26 + 28 \times 2 + 24 = \mathbf{106}$ layers using per-token progressive gating, shared sparse KV with sliding windows, and reused sparse attention indices rather than paying full scratch-loop optimization penalties.
  3. Post-training RL early-exit: Apply trajectory-level RL (such as RLTT) or entropy-regularized halting gates on top of the folded or native recurrent core to calibrate per-prompt compute budgets.

Following the systems-honesty lens of HuggingFace's The Smol Training Playbook, production deployment also faces three concrete infrastructure penalties alongside a decisive GPU batching trade-off:

Mid-Training Folding (aabbcc vs. abc…abc) & Sparse MoE Decode Bandwidth 1. Adjacent aabbcc vs. Block-Loop abc…abc Adjacent aabbcc: (L₁₂)×2 · (L₃₄)×2 GLM-5.4 (abc…abc): 26 + 28×2 + 24 = 106L 2. Sparse MoE Active Reads vs. Parallel maj@n Sparse MoE serial K=4 reads active experts per step Heavy shallow unrolling often lags iso-latency maj@n
Figure 5: Mid-training folding topologies (aabbcc vs. abc…abc) and sparse MoE vs. dense maj@4 decode bandwidth.

On the serving hardware side, why does Looped MoE fail on phones while thriving on 32GB workstations? Sparse MoE requires keeping all 26.4B–54B inactive expert weights resident in DRAM to avoid millisecond Flash paging stalls; on an 8–12 GB phone, even a 2× weight-tied MoE checkpoint overflows DRAM and stalls on Flash I/O. Once unified memory reaches 32–64 GB (such as a 32GB laptop running ~20 GB NVFP4 Inkling 2 Mini), the entire Looped MoE fits in memory and trades that capacity fit for 48-layer reasoning depth:

Hardware TierMemory & Bandwidth ProfileRecommended Loop RecipeGoverning Constraint
Phone / Edge (DRAM + Flash)8–12 GB RAM; Flash paging breaks latency1B–3B quantized dense shallow loopAvoid large MoE (inactive experts overflow DRAM)
Workstation / Unified Memory32–64 GB RAM; single-request memory-boundNVFP4 Looped MoE (e.g., Inkling 2 Mini)~20 GB checkpoint fits in RAM for 48L reasoning
Cloud Cluster (H100 / H200 / B200)80–192 GB HBM; $B=1$ bandwidth-boundSMELT $K=2$ MoE + PLT / FlashLoopNaive $B=1$ looping still reads $M_W$ over HBM
Use Case / ObjectiveDoes Looping Help?Mechanism & Empirical EvidenceRequired Boundary Condition
Closed-book factual recallNoBounded by ~2 bits/param (TML-d24-varloop SimpleQA 6.3 → 7.3)Must scale unique weights or external lookup
Multi-hop / algorithmic / codeStrong gainTML-d24-varloop GraphWalks 5.7 → 52.1; OOD loop×2 > layer×2Needs stable residual norms & RLTT/trajectory credit
Iso-FLOP MoE pretrainingConsistent winSMELT 54B saves 6.8%–18.0% FLOPs (~+1 pt downstream)Requires MoE expert expansion; optimal near $K=2$
Batch-1 Decode latencyNo speedupCore $>50\text{ MB}$ L2 still streams full $M_W$; loses to maj@4 batchingRequires PLT cross-step batching or SRAM-heavy chips
Long-context high-batch VRAMHurts by defaultNaive loops write $K\times$ KV; some loops overthinkNeeds Last-Loop KV / FlashLoop & effort caps

Two deployment caveats round out the picture: unconstrained test-time unrolling ("Marathon Thinking") can trigger latency-wasting overthinking relative to maj@n, and shifting reasoning into continuous latent steps weakens text CoT safety monitoring. Our falsifiable 2027 bet is clear: fixed shallow K=2 MoE folding (SMELT / GLM-5.4 style) will ship far more production tokens than r=32+ stepless unrolling, unless serving stacks overcome ragged batch stalls and 1× M_W re-reading without sacrificing verifiable CoT monitorability.

3.2 Further Reading#


References#

  1. Shaowen Wang, Ge Zhang, Kairong Luo et al. (2026). SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers. arXiv:2609.01343
  2. Jonas Geiping et al. (2025). Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach (Huginn-0125). arXiv:2502.05171
  3. Rui-Jie Zhu et al. (2025). Scaling Latent Reasoning via Looped Language Models (Ouro). arXiv:2510.25741
  4. Thinking Machines Lab (2026). Introducing Inkling 2 Mini (Inkling 2 Mini & TML-d24-varloop-research). thinkingmachines.ai/news/inkling-2-mini
  5. Z.ai (2026). GLM-5.4: Toward Generalized Coding with Our First Loop Transformer. z.ai/blog/glm-5.4
  6. Shibo Hao et al. (2024). Training Large Language Models to Reason in a Continuous Latent Space (Coconut). arXiv:2412.06769
  7. Zhenyi Shen et al. (2025). CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillation. arXiv:2502.21074
  8. Jonathan Williams et al. (2026). Prioritize the Process: Rewarding Latent Thought Trajectories (RLTT). arXiv:2602.10520
  9. Shawn Tan, Yikang Shen et al. (2023). Sparse Universal Transformer (SUT). arXiv:2310.07096
  10. Zeyuan Allen-Zhu & Yuanzhi Li (2024). Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Laws. arXiv:2404.05405
  11. Boshi Wang, Xiang Yue, Yu Su (2024). Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization. arXiv:2405.15071
  12. Guan Wang et al. (2025). Hierarchical Reasoning Model (HRM). arXiv:2506.21734
  13. Ziyang Cai, Xingyu Zhu & Sanjeev Arora (2026). The Temporal Residual: Fast and Effective Retrofitting of Latent Feedback into Pretrained Language Models. X thread (@jackcai1206) · Latent filler experiments
  14. Benhao Huang, Xuezhe Ma & Hector Liu (2026). Feedback Shortcut: Speculative Decoding for Latent Feedback Transformers. X thread (@huskydogewoof)
  15. Benhao Huang (2026). Weight-Tied Iterative Models: Promise, Hype, and the Missing Evidence in 2026. huskydoge.github.io
  16. Elie Bakouch et al. (2025). The Smol Training Playbook: The Secrets to Building World-Class LLMs. huggingface.co/spaces/HuggingFaceTB/smol-training-playbook
  17. Goodfire (2026). Interpreting Inkling 2 Mini. goodfire.com/research/interpreting-inkling-2-mini
Cite this note
@misc{liu2026areloopmodelsworth,
  title  = {{Are Looped Transformers Worth It at Equal Compute? Huginn, Ouro, and SMELT}},
  author = {Feiyang Liu},
  year   = {2026},
  month  = {nov},
  url    = {https://zaychikliu.github.io/blog/2026/are-loop-models-worth-it/}
}