Scaling Loop Transformers: sustained gains from deeper recurrence

AI · Language model architectures

Scaling Loop Transformers: sustained gains from deeper recurrence

1. Research goal

A Loop Transformer runs the same block of Transformer layers several times on an evolving hidden state before the output head reads it. With H loops, a four-layer block has an effective depth of 4H layers while reusing the four-layer backbone weights. If each extra loop kept improving predictions, loop depth would become a reliable way to scale model quality without replicating the backbone weights. In practice, later loops often stop helping.

The goal of this problem is to develop architectural or training methods that let Loop Transformers keep gaining quality as loop depth increases, beyond what LOOM achieves. Small models are the affordable platform for this work. The methods are meant to transfer to large Transformers, so a strong result should explain why later loops remain useful, in terms that do not depend on one tiny configuration.

2. The depth barrier and the method to beat

Earlier looped mixture-of-experts (MoE) models often found that looping twice worked best. In an MoE layer, a router selects a subset of expert networks for each token. SMELT (Section 3.5) loops the middle half of a sparse MoE model at its 200M scale and about 85% sparsity, and compares one to four visits. Matching FLOPs forces the looped models to become narrower as visits increase, and two visits give the lowest validation loss. This is an observation under one architecture and budget rule. It is not a limit on how far a fixed backbone can usefully loop.

LOOM addresses this two-loop barrier directly. It attributes the barrier to causes including drift in the hidden state's scale and input across loops, and to routers repeatedly selecting the same experts. Its official code combines residual scaling, re-injection of the input embedding, a separate router per loop, a cross-loop "Looping Residual", RMSNorm on MoE outputs, and segmented backpropagation, in which each backward pass covers a segment of K loops. At about 100M parameters and 5B tokens, perplexity falls from 26.26 without looping to 23.21, 19.81, 19.29 and 19.26 at H = 3, 6, 9 and 12. The gains flatten after six loops. At 350M, perplexity rises slightly from H9 to H12 (14.80 to 14.86). Under near-equal FLOPs, the best LOOM depth is about five loops. LOOM thus extends the useful range of recurrence, and its curve still levels off.

A Mechanistic Analysis of Looped Reasoning Language Models finds that recurrent blocks can repeat computational stages resembling those of feedforward models, with stable latent dynamics helping preserve these stages at greater recurrence depths. Energy-Based Reasoners offers a complementary perspective on structured algorithmic tasks: a learned energy function guides successive latent-state refinements toward better solutions.

Residual connections offer a motivating precedent. Residual learning made much deeper networks trainable and let them benefit from added depth. Transformers already have residual connections inside each block; this precedent motivates investigating how information passes across loops and how repeated use of shared weights is learned. The open question is how information should flow across loops and how the model should learn, so that loop 9 does work that loop 6 could not.

3. Starting point

The testbed is a four-layer MoE Transformer of width 256 with about 34M parameters, trained from random initialization on FineWeb-Edu. Data volume, training steps, which layers repeat, and the training procedure can all change. The 34M MoE setting is where experiments start, not the scientific target. Methods should not depend on four layers, a small vocabulary or MoE routing unless the claim is explicitly MoE-specific. Describe how parameters, activation memory and compute grow with H and with model size.

| Configuration | Parameters | Data steps | Successful updates | Validation NLL ↓ | |---|---:|---:|---:|---:| | Non-looped H1 | 34,086,912 | 1,000 | 1,000 | 4.7398 | | LOOM H3 | 34,104,320 | 1,000 | 1,000 | 4.7191 | | LOOM H6, resumed successor | 34,128,896 | 600 inherited + 400 new | 1,200 inherited + 800 new | 4.4654 |

NLL is mean negative log-likelihood per target token, in nats, and perplexity is exp(NLL). The completed endpoints represent the same data stream and one seed, with unequal compute. With K = 3, H6 makes two updates per data batch. Parameter counts differ by at most 0.123%. The original H6 run stopped at step 857 when a guard against large finite loss increases, measured against a running average, triggered. The H6 row comes from a resumed run that restarts at step 600 and changes only that guard's warmup from 0 to 1,000 steps. Rejection of non-finite losses and gradients remains in place. The original three-arm experiment remains failed. No local H2 or H > 6 model has been trained, so these endpoints leave the deeper shape and saturation of the curve unresolved.

4. Research route

Work can proceed along three connected steps. Methods are open within them.

Related work includes MoLT, on looped models across scales and decoding beyond the training horizon, and Scaling Looped MoE Language Models under Matched Budgets, on equal-FLOPs comparisons and the share of computation spent in the repeated core. Both have been read at the abstract level only.

5. Judging progress

The main evidence is the quality-versus-loop-depth curve from models trained separately at each depth. Compare a non-looped model, plain shallow looping including two loops, LOOM and the new method across a stated range of depths. A strong method improves on LOOM across a useful range, keeps improving on its own shallower versions, and reaches a later plateau or a better quality level. A single favorable H = 6 score does not establish better depth scaling. Report plateaus and failures where they occur. Strict improvement at every step is not required.

Quality at increasing depth is the aim, and extra compute can be worth paying for. Report parameters, FLOPs, tokens, updates, wall time and memory for each arm. Claims about efficiency need their own matched-compute comparisons. To attribute a gain to a mechanism, control for extra updates, data, tuning effort and compute.

Running one trained model for more loops at inference is a separate, optional claim. If a method claims this ability, test it within the trained range and beyond it as distinct experiments, and log the loops actually executed. Truncating a model to fewer loops than it was trained with does not show extrapolation.

Treat the supplied validation set as development data, and confirm final results on newly isolated documents with independent seeds. Test another scale or backbone when resources allow. Until then, present transfer to large models as a hypothesis supported by the mechanism and the complexity analysis.

6. Outcomes and resources

A strong outcome is a method that extends the useful range of recurrence, together with evidence for why it works. A negative result is valuable when it identifies or rules out a cause of the depth barrier.

The companion materials contain the pinned LOOM source, the 34M reference configurations, BASELINE_PROTOCOL.md, and the complete fixed-point result table. RESOURCE_GUIDE.md describes the code, data and checkpoint resources, including which assets are supplied through the project environment. REFERENCE_RESULTS.md records the earlier short-run results, the resumed H6 branch and historical costs.

Task materials

Download supplement (.zip)
Type
open-ended
Solve status
open
Access
Invite-only
rStationAbout

Loading research…