Full text not available for this paper

Latent Feedback Is a Compute and Data Amplifier: Scaling Law for Latent Feedback Transformers on Repeated Data

Summary (Overview)

  • Core finding: Latent feedback—feeding each token's top-layer state into the next token's input—serves as an amplifier that makes every FLOP and every token count for more, but only when unique data per parameter exceeds a threshold (~75 UTPP at one epoch, ~33 at two epochs).

  • Compute savings: With unique data fixed, latent feedback reaches a Transformer's loss with up to 48% less compute (κ = 1.91 at 400 UTPP, F = 2, 60M parameters). The saving grows with unique tokens per parameter and with repetition.

  • Data savings: With epochs fixed, latent feedback reaches a Transformer's loss with up to 47% less unique data (μ = 1.87 at 271M, 100 UTPP, 3 epochs).

  • Unified scaling law: A single scaling law fits both models jointly, treating latent feedback as a Transformer with vv times more effective parameters. Fitted on 60M–271M models, it predicts held-out 778M losses to within 0.3% and the gap between models to within 0.05%.

  • Practical implication: When high-quality data (not compute) limits pretraining, latent feedback is the better use of a FLOP for a model of a given size.


Introduction and Theoretical Foundation

Background

High-quality text, not compute, now limits pretraining of large language models. Even web text grows far more slowly than pretraining compute, so a common practice is to train on the best sources for several epochs. However, each repeat is worth less than the last, bringing diminishing returns.

The central question posed:

"When data runs out, can latent feedback make every FLOP and every token count for more?"

Latent Feedback Transformers

A latent feedback Transformer feeds each position's top-layer state into the input of the next position. At decoding time, position tt enters the blocks ff with input utu_t and leaves as hth_t:

ut=et+Wrms(ht−1)(1)u_t = e_t + W_{\text{rms}}(h_{t-1}) \tag{1}

Teacher-forced training cannot run positions one-by-one, so it runs passes over the whole sequence as fixed-point iterations:

[ut(p+1)=et+Wrms(ht−1(p)),ht−1(p)=f(ut−1(p))]p→∞→ut(∗)=et+Wrms(ht−1(∗))(2)\left[ u_{t}^{(p+1)} = e_t + W_{\text{rms}}(h_{t-1}^{(p)}), \quad h_{t-1}^{(p)} = f(u_{t-1}^{(p)}) \right]_{p \to \infty} \to u_t^{(*)} = e_t + W_{\text{rms}}(h_{t-1}^{(*)}) \tag{2}

In practice, 2–3 passes come close to the fixed point. At inference, autoregressive decoding already has the previous token's top state, so each generated token costs what a Transformer's does.

Training Schedule

Each update runs one pass with probability pp and two passes otherwise. The loss and gradient are computed only on the last pass. Because of additional forward passes, a token with feedback costs c>1c > 1 times a Transformer's training FLOPs.


Methodology

Models and Data

  • Backbone: Modern decoder with pre-norm RMSNorm, rotary positions, QK-norm, and SwiGLU, with untied embeddings and OLMo 2's initialization
  • Sizes: 60M, 134M, 271M, and 778M parameters
  • Optimizer: NorMuon (normalized variant of Muon) for matrices; AdamW for embeddings and output head
  • Data: Deduplicated Dolma 3 sample, with documents sharing a paragraph with Paloma removed (keeping Paloma a clean held-out benchmark)
  • Unique data: 12.5 to 400 unique tokens per non-embedding parameter (UTPP), 1 to 4 epochs (up to 1,600 training tokens per parameter with repetitions)

Tuning Protocol

Each setting of (model size, unique data, budget) is a "cell." For each model, size, and unique data amount, a main run is tuned over learning rate η\eta and timescale τ=1/(ηλT)\tau = 1/(\eta\lambda_T), where λ\lambda is weight-decay and TT is the number of steps. Other budgets branch off as decay runs.

Evaluation

  • Validation: Held-out set of 47,274 documents (100M tokens) from the same stratified order
  • Downstream: Olmo 3 Base Easy suite (109 tasks in 37 suites), scored as bits per byte (BPB) of the correct continuation

Scaling Law

The law extends the data-constrained law of Muennighoff et al.:

Ls(N,U,F)=E+[(A(vsN)α)q+(BDsβ)q]1/q,Ds=U[1+R∗(1−e−(R−1)/R∗)],R=Fcs(3)L_s(N, U, F) = E + \left[ \left( \frac{A}{(v_s N)^{\alpha}} \right)^q + \left( \frac{B}{D_s^{\beta}} \right)^q \right]^{1/q}, \quad D_s = U \left[ 1 + R^* \left( 1 - e^{-(R-1)/R^*} \right) \right], \quad R = \frac{F}{c_s} \tag{3}

Where:

  • EE = irreducible loss
  • A/(vsN)αA/(v_s N)^{\alpha} = capacity term
  • B/DsβB/D_s^{\beta} = data term
  • vsv_s = effective parameter multiplier for schedule ss (v=1v = 1 for Transformer)
  • DsD_s = effective number of training tokens
  • R∗R^* = how fast repeats lose value (epoch kk is worth about e−(k−1)/R∗e^{-(k-1)/R^*} of a fresh one)
  • qq = coupling between the two terms (fitted ≈ 3.7)

The capacity factor vsv_s follows:

vs=v0(Ds100N)ω(N108)γ(4)v_s = v_0 \left( \frac{D_s}{100N} \right)^{\omega} \left( \frac{N}{10^8} \right)^{\gamma} \tag{4}

Crossover Prediction

To first order, the gap between a schedule and the Transformer at equal compute FF:

Ls−LT≈S[−wαln⁡vs+(1−w)εˉβln⁡cs],w=XqXq+Yq,εˉ=ln⁡DT−ln⁡Dsln⁡cs∈(0,1](5)L_s - L_T \approx S \left[ -w \alpha \ln v_s + (1-w) \bar{\varepsilon} \beta \ln c_s \right], \quad w = \frac{X^q}{X^q + Y^q}, \quad \bar{\varepsilon} = \frac{\ln D_T - \ln D_s}{\ln c_s} \in (0, 1] \tag{5}

As the budget grows, the capacity term counts for more (w→1w \to 1) and repeats saturate (εˉ→0\bar{\varepsilon} \to 0), so latent feedback wins past a crossover budget F∗F^*.

Multipliers

  • Compute multiplier κ\kappa: Transformer's budget over latent feedback's, at equal unique data
  • Data multiplier μ\mu: Transformer's unique data over latent feedback's, at equal epochs
κ=FTFwithLT(N,U,FT)=Ls(N,U,F),μ=UTUwithLT(N,UT,R)=Ls(N,U,csR)(6)\kappa = \frac{F_T}{F} \quad \text{with} \quad L_T(N, U, F_T) = L_s(N, U, F), \quad \mu = \frac{U_T}{U} \quad \text{with} \quad L_T(N, U_T, R) = L_s(N, U, c_s R) \tag{6}

Empirical Validation / Results

Compute Savings (Equal Unique Data)

At equal size and unique data, latent feedback reaches a Transformer's loss with less compute. The saving grows with UTPP and with epochs:

  • At 12.5 UTPP: latent feedback costs 8% more compute at F = 2
  • At 100 UTPP: saves 15–18% at F = 2
  • At 400 UTPP: saves 44–48% at F = 2
  • The crossover point (κ = 1) falls from ≈75 UTPP at F = 1 to ≈33 UTPP at F = 2

Data Savings (Equal Epochs)

At equal size and epochs, latent feedback reaches a Transformer's loss with less unique data:

  • At 271M, one epoch, 50 UTPP: saves 16% of unique data
  • At 778M, one epoch, 50 UTPP: saves 20%
  • At 271M, three epochs, 100 UTPP: saves 41% (μ = 1.69)
  • The largest measured saving: 47% of unique data

Fitted Scaling Law

The joint fit (on 60M–271M) gives:

L=0.5+[(1.75(vn)0.112)3.75+(1.40d0.126)3.75]1/3.75,R∗=14.6(un)0.45(7)L = 0.5 + \left[ \left( \frac{1.75}{(vn)^{0.112}} \right)^{3.75} + \left( \frac{1.40}{d^{0.126}} \right)^{3.75} \right]^{1/3.75}, \quad R^* = 14.6 \left( \frac{u}{n} \right)^{0.45} \tag{7} v=1 for the Transformer,v=1.14(dn)0.010n0.007 for latent feedbackv = 1 \text{ for the Transformer}, \quad v = 1.14 \left( \frac{d}{n} \right)^{0.010} n^{0.007} \text{ for latent feedback}

with n=N/108n = N/10^8, u=U/1010u = U/10^{10}, d=D/1010d = D/10^{10}.

Held-out Prediction at 778M

UFTransformer Error (%)Latent Feedback Error (%)
12.5N1+0.26+0.29
12.5N2+0.12+0.15
12.5N3+0.17+0.16
12.5N4+0.26+0.22
50N1−0.03+0.02
50N2+0.01−0.04
100N1−0.03−0.03

The law predicts held-out 778M losses with a mean absolute error of 0.13% (max 0.29%), below Farseer's 0.50% and Skaling's 0.60%. It predicts the model gap to within 0.05% in every held-out row.

Downstream Task Results (BPB ↓)

SizeUF=1 TransformerF=1 FeedbackF=2 TransformerF=2 FeedbackF=4 TransformerF=4 Feedback
60M12.5N1.23241.24531.16231.16801.12791.1186
60M100N1.06731.05661.03731.02051.01630.9999
60M400N1.01160.99170.99700.97080.98220.9615
271M50N0.83360.83090.80450.80090.78440.7729
271M200N0.77830.77120.76030.74990.74300.7308
778M12.5N0.76700.77150.73010.73220.70090.6985

Latent feedback has the lower BPB everywhere except at small unique data (U ≤ 25N) with budgets F ≤ 2. The two metrics pick the same winner in 59 of 71 paired cells.


Theoretical and Practical Implications

Explanation of the Savings

The law explains the savings via a trade-off: latent feedback lowers the capacity term (fits as a Transformer with ~1.14× parameters) but raises the data term (its cost leaves it ~1.2× fewer epochs). It wins where capacity limits the loss and loses where data limits it. Both savings grow with unique data and epochs because each moves the Transformer toward its capacity floor, which latent feedback lowers.

Key Boundary

The crossover boundary (κ = 1) moves toward less unique data as budget grows: latent feedback wins from ≈75 UTPP at F = 1, ≈33 at F = 2, ≈20 at F = 3, ≈12 at F = 4. Practice is far past this point: Chinchilla used 20 TPP, while today's median 1B–10B dense model trains on ~1,040 TPP (≥260 UTPP even over four epochs).

Extrapolation Beyond the Grid

The law predicts both savings keep growing beyond the measured range:

  • At 100B parameters, 100 UTPP, F = 2: predicts κ = 1.83
  • The parameter γ\gamma (size dependence of vv) matters: without it, the law underrates latent feedback in all seven held-out rows
  • A saving of 100% means the Transformer cannot reach latent feedback's loss at any budget

Important Caveat

At a fixed model size, latent feedback wins. But when model size is free, spending the same FLOPs on a Transformer cc times larger (with same unique data) gives 0.006–0.012 lower loss in every fitted cell. However, that larger Transformer costs cc times more per decoding step and holds a larger KV cache, while latent feedback serves at the cost of the smaller model.


Conclusion

Latent feedback makes every FLOP and every token count for more: once each parameter has enough unique data, it reaches a given loss with less compute than more epochs, and with less unique data at equal epochs. Both savings grow with unique data and repetition, and one scaling law fitted to both models predicts them at a held-out size.

Main takeaway: When high-quality data, not compute, limits a run of a given model size, feeding back the top-layer state uses compute better than training more epochs.

Limitations and Future Work

  • The ladder stops at relatively small scale (778M) with a single backbone; larger models may shift the crossover
  • Latent feedback was trained with a single fixed schedule (p=0.15p = 0.15); further optimizations are possible
  • A comparison with recurrent depth models (e.g., looped models like Parcae) would be valuable
  • The law's prediction that savings grow with size relies on γ>0\gamma > 0, which is not significantly above zero within 60M–271M (p=0.054p = 0.054) but is supported by the held-out 778M results

Related papers