Summary (Overview)

  • Core research question: Should looped transformers use truncated backpropagation through time (BPTT), and how should compute be allocated among forward loops, backward loops, model size, and training tokens?
  • Key contribution: A unified scaling law with an effective parameter count that jointly models model size, training tokens, and independent forward/backward loop counts, fitted on nearly 600 training runs (58M–919M parameters).
  • Main finding on truncation: When the forward-loop count is prescribed, truncation can be optimal (saving compute for larger models/more tokens); but when both loop counts are free, full BPTT is optimal at every model size and compute budget.
  • Compute allocation: At fixed model size, optimal loop count grows as C0.24C^{0.24} and token count as C0.76C^{0.76}; when model size is free, no looping is optimal, but two fully trained loops nearly match the compute-optimal non-looped model with 27–32% fewer non-embedding parameters.
  • Practical result: A (2,2) looped model achieves lower validation loss than the compute-optimal non-looped model with ~27% fewer parameters and only 8% more training compute.

Introduction and Theoretical Foundation

Background and Motivation

Looped transformers reuse a shared block of layers to increase computational depth without increasing trainable parameters (Dehghani et al., 2019; Geiping et al., 2025). Training typically uses BPTT, which is often truncated to the last few loops to save compute and activation memory. However, truncation yields biased gradients that may weaken the benefits of looping.

The central question: How do model size, training tokens, and forward/backward loops jointly affect loss, and should we truncate backpropagation under a fixed training compute budget?

Key Gaps in Prior Work

Existing scaling studies have limitations:

  • Schwethelm et al. (2026) compares full BPTT with truncation to half the loops, fitting separate scaling laws per recipe.
  • Parcae (Prairie et al., 2026) varies backward-loop counts in small experiments but fixes them to half the forward-loop count in its scaling study.
  • No prior work provides a unified law for choosing both loop counts across model sizes and token budgets.

Architecture: Prelude–Recurrent–Coda

The model computes hidden states via a prelude P\mathcal{P}, a shared recurrent block R\mathcal{R} applied over TT loops, and a coda C\mathcal{C}:

s0=P(x),st=Φθ(st−1;s0)=RMSNorm(R(Winj[s0;st−1])),p=C(sT).(3.1)s_0 = \mathcal{P}(x), \qquad s_t = \Phi_\theta(s_{t-1}; s_0) = \text{RMSNorm}(\mathcal{R}(W_{\text{inj}}[s_0; s_{t-1}])), \qquad p = \mathcal{C}(s_T). \tag{3.1}

Parameters split as N=Nonce+NrecN = N_{\text{once}} + N_{\text{rec}}, where NonceN_{\text{once}} counts prelude/coda (run once) and NrecN_{\text{rec}} counts the recurrent block (reused every loop).

Truncated BPTT

A loop setting (T,B)(T, B) with 1≤B≤T1 \leq B \leq T runs TT loops forward but backpropagates only through the last BB loops. The state sT−Bs_{T-B} is detached. Full BPTT corresponds to B=TB = T; a standard transformer is (1,1)(1,1). A backward loop costs twice the FLOPs of a forward loop.

Baseline Scaling Law

The coupled scaling law of Videau et al. (2026) for non-looped models:

L(N,D)=E+[A⋅(NN0)−α+H⋅(DD0)−β]κ.(3.2)L(N, D) = E + \left[ A \cdot \left(\frac{N}{N_0}\right)^{-\alpha} + H \cdot \left(\frac{D}{D_0}\right)^{-\beta} \right]^{\kappa}. \tag{3.2}

Methodology

Experimental Setup

  • Architecture: Prelude–recurrent–coda, following Schwethelm et al. (2026).
  • Model sizes: Five sizes from 58M to 919M non-embedding parameters (Table 2).
  • Corpus: 100B-token FineWeb-Edu (Penedo et al., 2024).
  • Optimizer: MuonH for transformer-block and input-injection matrices; AdamW for embeddings, output, and normalization parameters.
  • Runs: 592 total, including a scaling suite of 347 configurations spanning 1.1–1,291 tokens per parameter and fifteen (T,B)(T, B) combinations with T∈{1,2,4,8,16}T \in \{1, 2, 4, 8, 16\}.
  • Fitting: 230 configurations for fitting; 117 reserved for holdout tests.

Model Sizes

SizedLayersNNrec/NN_{\text{rec}}/N
60M7682/4/257.8M0.510
120M10242/5/2115.4M0.564
240M12803/6/3239.2M0.507
480M16643/7/4470.8M0.506
1B21764/8/4918.7M0.505

The Effective-Parameter Scaling Law

The law replaces NN with an effective parameter count:

L=E+[A⋅(NeffN0)−α+H⋅(DD0)−β]κ,L = E + \left[ A \cdot \left(\frac{N_{\text{eff}}}{N_0}\right)^{-\alpha} + H \cdot \left(\frac{D}{D_0}\right)^{-\beta} \right]^{\kappa}, Neff=Nonce+g(T,B)⋅Nrec,g(T,B)=exp⁡[c⋅(1−T−p⋅B−q)].(4.1)N_{\text{eff}} = N_{\text{once}} + g(T, B) \cdot N_{\text{rec}}, \qquad g(T, B) = \exp\big[c \cdot (1 - T^{-p} \cdot B^{-q})\big]. \tag{4.1}

Design Requirements for g(T,B)g(T, B)

The looping coefficient satisfies four requirements:

  1. Normalization: g(1,1)=1g(1,1) = 1 (single loop recovers non-looped model)
  2. Monotonicity: ∂Tg>0\partial_T g > 0, ∂Bg>0\partial_B g > 0
  3. Zero-backward limit: g(T,0)=0g(T, 0) = 0
  4. Saturation: sup⁡1≤B≤Tg(T,B)<∞\sup_{1 \leq B \leq T} g(T, B) < \infty (finite ceiling exp⁡(c)\exp(c))

Fitted Parameters

EAHαβκcpq
0.298656.486957.633430.305680.392810.325101.111980.236771.02181

Fit and Prediction Errors (×10−3\times 10^{-3})

EvaluationFitsRMSEMAE
In-sample16.144.91
One configuration out2306.405.11
One model size N out77.485.89
One token budget D out116.425.12
One (T, B) setting out158.676.74

Empirical Validation / Results

Key Finding 1: Loops Add Effective Parameters; Truncation Discounts Them

  • Each fully trained loop adds effective parameters with diminishing returns toward a finite ceiling ece^c.
  • Truncation discounts this gain.
  • From the same setting, doubling BB adds more effective parameters than doubling TT (since q>pq > p: g(T,2B)>g(2T,B)g(T, 2B) > g(2T, B) for 2B≤T2B \le T).

Key Finding 2: Truncation Helps at Prescribed Forward-Loop Count

When TT is prescribed, truncation can be optimal. The compute-equivalent size is:

C≃6D⋅Ncomp,Ncomp=Nonce+T+2B3⋅Nrec.(5.1)C \simeq 6D \cdot N_{\text{comp}}, \quad N_{\text{comp}} = N_{\text{once}} + \frac{T + 2B}{3} \cdot N_{\text{rec}}. \tag{5.1}

The optimization reduces to minimizing χ(T,B)=Ncomp/Neff\chi(T, B) = N_{\text{comp}}/N_{\text{eff}}:

TB*χ(T,B∗)\chi(T, B^{*})χ(T,T)\chi(T, T)N*D*
111.0001.00011
221.0311.03111
421.2041.4301.271.08
821.5802.3761.511.20
1622.3434.3391.701.31

At T=8T = 8, the law selects B∗=2B^* = 2 and predicts a 34% compute saving at equal optimized loss.

Key Finding 3: Full BPTT Is Optimal When Both Loop Counts Are Free

When both TT and BB can be chosen, the problem becomes:

maximizeT,B∈Rg(T,B)subject toT+2B=S,1≤B≤T.(5.2)\underset{T, B \in \mathbb{R}}{\text{maximize}} \quad g(T, B) \qquad \text{subject to} \quad T + 2B = S, \quad 1 \leq B \leq T. \tag{5.2}

The optimal split uses full BPTT whenever q>2pq > 2p. With fitted values p≃0.237p \simeq 0.237 and q≃1.022q \simeq 1.022, we have q>2p≃0.474q > 2p \simeq 0.474 by a wide margin. Full BPTT is optimal at every compute.

Matched-compute experiments confirm: at D=16D0D = 16D_0, (4,4) achieves lower loss than (8,2) at every size:

SizeCC (101910^{19})L8,2L_{8,2}L4,4L_{4,4}ΔL\Delta L (10−210^{-2})
60M2.412.52112.49332.78
120M4.592.38432.36961.47
240M8.282.27782.26421.36
480M15.292.18452.17381.07
1B28.382.11442.10570.87

Key Finding 4: Fixed Model Size — Loops Grow Slowly

At fixed model size with full BPTT (B=TB = T):

T∗∝Cββ+p+q,D∗∝Cp+qβ+p+qat fixed N.(6.3)T^{*} \propto C^{\frac{\beta}{\beta + p + q}}, \qquad D^{*} \propto C^{\frac{p + q}{\beta + p + q}} \quad \text{at fixed } N. \tag{6.3}

With fitted values (p+q≃1.259p + q \simeq 1.259, β≃0.393\beta \simeq 0.393):

T∗∝C0.24,D∗∝C0.76.(6.4)T^{*} \propto C^{0.24}, \qquad D^{*} \propto C^{0.76}. \tag{6.4}

A tenfold increase in compute raises the optimal loop count by ~1.7× and the token count by ~5.8×.

Key Finding 5: Free Model Size — No Looping Is Optimal

When model size is free, the law favors the non-looped model. The optimal allocation:

N∗∝C0.56,D∗∝C0.44,T∗=B∗=1.(6.5)N^{*} \propto C^{0.56}, \qquad D^{*} \propto C^{0.44}, \qquad T^{*} = B^{*} = 1. \tag{6.5}

The reason: replacing a shared recurrent block with TT untied copies gives greater effective size since g(T,T)<Tg(T, T) < T for T≥2T \geq 2. However, g(2,2)≈2g(2,2) \approx 2, so two shared loops provide nearly the effective size of two untied copies.

Key Finding 6: Two Fully Trained Loops Are Competitive

  • At equal compute, (2,2) models stay within 0.008 nats of the non-looped model with 27–32% fewer non-embedding parameters.
  • With 8% more compute, the (2,2) model's loss falls 0.007 nats below the compute-optimal non-looped model (Figure 15), while still having 27% fewer parameters.

Theoretical and Practical Implications

Theoretical Contributions

  1. Unified scaling law: First law jointly modeling forward and backward loop counts independently, using a bounded effective-parameter gain with just three loop coefficients (c,p,qc, p, q).
  2. Explanation of truncation's value: Resolves the apparent contradiction between prior results — truncation helps only when the forward-loop count is fixed; full BPTT wins when both counts are tunable.
  3. Compute allocation rules: Extends Parcae's fixed-size analysis beyond prescribed truncation, providing asymptotic exponents for loop/token allocation.

Practical Implications

  • Parameter efficiency: Two fully trained loops offer a practical sweet spot — nearly matching non-looped compute-optimal models with 27–32% fewer parameters.
  • Memory-constrained training: At fixed model size, practitioners should allocate most additional compute to tokens, growing the loop count only slowly (C0.24C^{0.24}).
  • Training recipe guidance: When both loop counts can be chosen, full BPTT is preferable to truncation despite its higher per-step cost.

Comparison with Prior Scaling Laws

StudyLoop gainBPTTRegime
Schwethelm et al. (2026)power law (TϕT^{\phi})T;⌈T/2⌉T; \lceil T/2 \rceilfixed depth
Parcae (Prairie et al., 2026)linear (TT)⌈T/2⌉\lceil T/2 \rceilfixed N
Chen et al. (2026b)bounded exp. (TT)full (TT)free N, mem.
Oursbounded (T,BT, B)1≤B≤T1 \leq B \leq Tfixed & free N

Conclusion

Main Takeaways

  1. Truncation's value is conditional: It helps only when the forward-loop count is prescribed; with both loop counts free, full BPTT is optimal at every model size and compute budget.
  2. Effective parameters framework: Loops add effective parameters with diminishing returns toward a finite ceiling; truncation discounts this gain.
  3. Compute allocation: At fixed size, T∗∝C0.24T^* \propto C^{0.24} and D∗∝C0.76D^* \propto C^{0.76}; with free size, no looping is optimal but (2,2) is the best looped setting.

Future Directions

  • MoE architectures: Whether conclusions extend to looped mixture-of-experts models remains open.
  • Downstream tasks: Only validation loss was measured; reasoning and task performance need study.
  • Deeper loops: Experiments capped at T≤16T \leq 16; the gain ceiling and later switches remain extrapolations.
  • Parameter allocation: The ratio of prelude/coda to recurrent parameters was fixed; varying it could affect loop gains and optimal loop counts.

Related papers