Simple Algorithm
Deep Learning · Emergence · 28 min

Where Scaling Laws Come From

Solvable models, phases of compute-optimal scaling and the superposition explanation.

Why should loss fall as a power law at all, and what sets the exponent? No theory yet predicts the exponents of a real language model, but solvable models now reproduce much of the phenomenology: four distinct scaling regimes, exponents read off a spectrum, compute-optimal splits that depend on what bottlenecks training, and a geometric reason, superposition, for loss to fall like one over the width.

What you’ll learn

  • Distinguish variance-limited from resolution-limited scaling in data and in model size, and explain why the first has exponent 1.
  • Derive the loss of gradient flow on a linear model with power-law spectrum and target, its exponents in time and model size, and the compute-optimal allocation that follows.
  • Describe the phases of compute-optimal scaling in the power-law random-features model and what decides between them.
  • Explain how superposition makes loss scale like 1/m1/m in the width mm, and assess the evidence that language models are in that regime.

Four regimes

The Artificial Intelligence course derives two classic stories: if prediction needs discrete "quanta" of skill used with Zipf frequencies, learning them in order gives power laws with αD=αN/(1+αN)\alpha_D=\alpha_N/(1+\alpha_N) (Michaud et al., 2023); if a network resolves a dd-dimensional data manifold with cells of size N−1/dN^{-1/d}, the squared error falls like N−4/dN^{-4/d} (Sharma & Kaplan, 2022). Both turn power-law structure in the data into power-law loss. Bahri et al. (2024) sorted the possibilities into four regimes:

RegimeScaling with data DDScaling with model size
Variance-limitedmodel fixed, D→∞D\to\infty: L−L∞∝D−1L-L_\infty\propto D^{-1}data fixed, width w→∞w\to\infty: L−L∞∝w−1L-L_\infty\propto w^{-1} (for linear models, P−1P^{-1})
Resolution-limitedmodel effectively infinite: L∝D−αDL\propto D^{-\alpha_D}, 0<αD<10<\alpha_D<1 set by the datadata effectively infinite: L∝P−αPL\propto P^{-\alpha_P}, set by the data
After Bahri et al. (2024), with PP parameters. The variance-limited exponent is universal; the resolution-limited ones are where the data's structure enters, and are what language-model scaling laws measure.

The proof is a second-order Taylor expansion: E[ℓ(f)]−ℓ(Ef)≈12ℓ′′Var⁡(f)\E[\ell(f)]-\ell(\E f)\approx\tfrac12\ell''\Var(f), and the variance is what shrinks. So the exponent 1 says nothing about the data; it is the law of large numbers approaching a limit that exists. Resolution-limited scaling is the interesting part. There, adding data or parameters lets the model carve the data manifold more finely, and the exponent depends on how the data's structure is spread across scales. In linear and random-feature models that structure is a spectrum: a CtC^t-smooth kernel on a dd-dimensional manifold has eigenvalues decaying at least like n−(1+t/d)n^{-(1+t/d)}, which is how dimension enters the exponents.

A solvable model

Take uncorrelated features ϕk(x)\phi_k(\mathbf x) with E[ϕkϕl]=λkδkl\E[\phi_k\phi_l]=\lambda_k\delta_{kl} and λk∝k−b\lambda_k\propto k^{-b} (the eigenfunctions of a kernel, scaled by its eigenvalues), and a target y=∑kwk∗ϕk(x)y=\sum_kw_k^*\phi_k(\mathbf x) whose task power in mode kk is λk(wk∗)2∝k−a\lambda_k(w_k^*)^2\propto k^{-a}, with a,b>1a,b>1 (in kernel theory, capacity and source conditions). The model is f=∑kwkϕkf=\sum_kw_k\phi_k trained from w=0\mathbf w=\mathbf 0 (Bordelon, Atanasov & Pehlevan, 2024).

DerivationExponents in time, size and compute
  1. L(t)=∑kλk(wk∗)2e−2λkt ∝ ∑kk−aexp⁡(−2k−bt)L(t)=\sum_k\lambda_k(w_k^*)^2e^{-2\lambda_kt}\ \propto\ \sum_kk^{-a}\exp\big(-2k^{-b}t\big)

    Gradient flow on the population squared loss decouples into modes: w˙k=−λk(wk−wk∗)\dot w_k=-\lambda_k(w_k-w_k^*), so wk(t)−wk∗=−wk∗e−λktw_k(t)-w_k^*=-w_k^*e^{-\lambda_kt} and

  2. L(t)≈∑k>t1/bk−a≈t−(a−1)/ba−1,exactly L(t)≃Γ(a−1b)b (2t)−a−1bL(t)\approx\sum_{k>t^{1/b}}k^{-a}\approx\frac{t^{-(a-1)/b}}{a-1},\qquad\text{exactly }L(t)\simeq\frac{\Gamma\big(\tfrac{a-1}{b}\big)}{b}\,(2t)^{-\frac{a-1}{b}}

    Mode kk is learned once λkt≳1\lambda_kt\gtrsim1, so by time tt the first k∗≈t1/bk^*\approx t^{1/b} modes are learned and the loss is the leftover task power. Comparing the sum with an integral (substitute u=2k−btu=2k^{-b}t):

  3. L(N)≈∑k>Nk−a≈N−(a−1)a−1L(N)\approx\sum_{k>N}k^{-a}\approx\frac{N^{-(a-1)}}{a-1}

    A model that can represent only the top NN modes, trained to convergence, keeps the tail beyond NN. (With NN random features this holds for hard tasks, a−1<2ba-1<2b; easy tasks give N−2bN^{-2b}.)

  4. N∗∝C11+b,t∗∝Cb1+b,L∗∝C−a−11+bN^*\propto C^{\frac1{1+b}},\qquad t^*\propto C^{\frac b{1+b}},\qquad L^*\propto C^{-\frac{a-1}{1+b}}

    Training costs compute C∝NtC\propto Nt. Balance the two bottlenecks, t−(a−1)/b∼N−(a−1)t^{-(a-1)/b}\sim N^{-(a-1)}, so t∼Nbt\sim N^b and C∼N1+bC\sim N^{1+b}:

  5. Since b>1b>1, training time (in one-pass training, data) should grow faster than model size: the time and size exponents differ, (a−1)/b(a-1)/b against a−1a-1, because time resolves modes only as fast as their eigenvalues allow. Equal scaling, as in Chinchilla, corresponds to b→1b\to1.

python
import numpy as np

a, b = 1.4, 1.4                        # task-power and spectral exponents
k = np.arange(1, 10**7, dtype=float)
lam, power = k**-b, k**-a               # eigenvalues, task power per mode

def loss(t):                            # gradient flow from w = 0
    return np.sum(power * np.exp(-2 * lam * t))

ts = np.logspace(1, 4, 7)
slope = np.polyfit(np.log(ts), np.log([loss(t) for t in ts]), 1)[0]
# slope comes out near -0.29, matching -(a - 1) / b = -0.286

Checking the time exponent numerically. The sum is cut at 10710^7 modes; with a shorter cut the missing tail biases the fitted slope.

Predict before you look

A random-feature model has spectrum λk∝k−1.4\lambda_k\propto k^{-1.4}, and the target's coefficients are i.i.d., so its task power is also ∝k−1.4\propto k^{-1.4} (a=b=1.4a=b=1.4). What exponent does the model predict for the compute-optimal loss, L∗∝C−xL^*\propto C^{-x}?

Show the answer

0.17

x=(a−1)/(1+b)=0.4/2.4≈0.17x=(a-1)/(1+b)=0.4/2.4\approx0.17. Along the way: L∝N−0.4L\propto N^{-0.4} in model size, t−0.29t^{-0.29} in time, and N∗∝C0.42N^*\propto C^{0.42} against t∗∝C0.58t^*\propto C^{0.58}. With i.i.d. teacher coefficients, a=ba=b and the size exponent is b−1b-1, the "λk∝k−(1+α)\lambda_k\propto k^{-(1+\alpha)} gives L∝P−αL\propto P^{-\alpha}" rule of random-feature models.

Phases of compute-optimal scaling

Gradient flow ignores the optimizer's noise. Paquette, Paquette, Xiao & Pennington (2024) solved the power-law random-features model under one-pass SGD: inputs xj=j−αzjx_j=j^{-\alpha}z_j with zj∼N(0,1)z_j\sim\mathcal N(0,1) in vv dimensions (data complexity α\alpha), labels y=⟨x,b⟩y=\langle\mathbf x,\mathbf b\rangle with bj=j−βb_j=j^{-\beta} (target complexity β\beta), and a model ⟨W⊤x,θ⟩\langle W^\top\mathbf x,\boldsymbol\theta\rangle with a fixed random W∈Rv×dW\in\R^{v\times d} and dd trained parameters. Compute is f=(steps×batch)×df=(\text{steps}\times\text{batch})\times d, the analog of 6ND6ND.

In this model, then, the Chinchilla-like even split holds across a large region of the phase plane rather than being a coincidence of language data, and the authors recovered it from simulated runs with Hoffmann et al.'s Approaches 1 and 2 (d∗∝f0.51d^*\propto f^{0.51} and f0.53f^{0.53} against a predicted f0.5f^{0.5}). It also shows why allocation rules from different toy models disagree, and why practice need not match any one of them: the answer depends on whether capacity, optimization noise or a poor representation is what holds the loss up, and in phases III and IV a better optimizer would change it.

Superposition and the 1/m law

All the models so far take a power law in the data as given and pass it on: no power-law spectrum, no power-law loss. Liu, Liu & Gore (2025) proposed a mechanism that does not need one. In the toy model of superposition (Elhage et al., 2022), nn sparse features with frequencies pip_i are embedded as vectors Wi∈RmW_i\in\R^m, m<nm<n, and read back through a ReLU. Using weight decay to tune how much superposition occurs, they found two regimes. With weak superposition the model represents about mm features and drops the rest, so the loss is the frequency mass of the unrepresented features, a power law only if the pip_i are: pi∝i−αp_i\propto i^{-\alpha} gives L∝m−(α−1)L\propto m^{-(\alpha-1)}. With strong superposition far more than mm features are represented, at the price of interference between overlapping vectors, and the loss scales like their mean squared overlap.

DerivationWhy overlaps scale like 1/m
  1. E[(u⋅v)2]=E[v12]=1m∑i=1mE[vi2]=1m\E\big[(\mathbf u\cdot\mathbf v)^2\big]=\E[v_1^2]=\frac1m\sum_{i=1}^m\E[v_i^2]=\frac1m

    Let u,v\mathbf u,\mathbf v be independent and uniform on the unit sphere in Rm\R^m. Rotating so that u=e1\mathbf u=\mathbf e_1 changes nothing, so (u⋅v)2(\mathbf u\cdot\mathbf v)^2 has the law of v12v_1^2. The coordinates of v\mathbf v are exchangeable and their squares sum to 11:

  2. Linterference ∝ (Wi⋅Wj)2‾ ∝ 1mL_{\text{interference}}\ \propto\ \overline{(W_i\cdot W_j)^2}\ \propto\ \frac1m

    More precisely (u⋅v)2∼Beta(12,m−12)(\mathbf u\cdot\mathbf v)^2\sim\text{Beta}\big(\tfrac12,\tfrac{m-1}2\big). However many features share the space, roughly isotropic directions interfere by Θ(1/m)\Theta(1/m) each, so the interference loss scales like 1/m1/m: exponent αm≈1\alpha_m\approx1, for a broad class of frequency distributions.

In their toy models, strong superposition gave αm≈1\alpha_m\approx1 when frequencies were flat and about 2(α−1)2(\alpha-1) when they were very skewed. For open language models from about 100 million to 70 billion parameters (OPT, GPT-2, Qwen, Pythia), the rows of the output layer had mean squared overlaps close to 1/m1/m, and the width-dependent part of the loss fell with exponent 0.91±0.040.91\pm0.04. Converting the parameter exponent of the Chinchilla law, as re-fitted by Besiroglu et al. (αN≈0.35\alpha_N\approx0.35), with N∝m2.52N\propto m^{2.52} gives about 0.880.88. The evidence is suggestive, not decisive: it concerns width alone, rests on a toy model and on fits across different model families, and says nothing about the data exponent.

Check your understanding

In the strong-superposition regime, why does the loss fall roughly like 1/m1/m even when feature frequencies are not a power law?

  1. Because the model represents exactly mm features and drops the rest
  2. Because the loss is dominated by interference, and nearly isotropic unit vectors in Rm\R^m have mean squared overlap 1/m1/m
  3. Because weight decay shrinks the weights like 1/m1/m
  4. Because the data manifold has dimension mm
Show the answer

B. Because the loss is dominated by interference, and nearly isotropic unit vectors in Rm\R^m have mean squared overlap 1/m1/m

Far more than mm features are kept, so the loss is dominated by interference, which scales with the squared overlaps of the feature directions: E[(u⋅v)2]=1/m\E[(\mathbf u\cdot\mathbf v)^2]=1/m. That is a property of geometry in Rm\R^m, not of the data distribution.

Key takeaways

  • Variance-limited scaling (exponent 1 in DD, or in width) is the universal approach to a well-defined limit; resolution-limited scaling carries the data's structure and is what large-model scaling laws measure.
  • For gradient flow with eigenvalues k−bk^{-b} and task power k−ak^{-a}: L∝t−(a−1)/bL\propto t^{-(a-1)/b}, L∝N−(a−1)L\propto N^{-(a-1)} for hard tasks, and the compute optimum N∗∝C1/(1+b)N^*\propto C^{1/(1+b)}, L∗∝C−(a−1)/(1+b)L^*\propto C^{-(a-1)/(1+b)}; time and size exponents differ.
  • In random-feature models, features and samples are dual (L≈L0(1/N+1/T)αL\approx L_0(1/N+1/T)^\alpha), the loss plateaus at the latent dimension, and nonlinearity extends spectral power laws.
  • Under one-pass SGD the power-law random-features model has four phases set by capacity, embedding distortion and SGD noise; in a large region d∗∝f1/2d^*\propto f^{1/2}, a Chinchilla-like split.
  • Strong superposition gives L∝1/mL\propto1/m from the geometry of overlaps, E[(u⋅v)2]=1/m\E[(\mathbf u\cdot\mathbf v)^2]=1/m, without power-law data; open models show width exponents near 0.90.9. What fixes real exponents remains open.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

A small model of fixed size is trained on more and more data. Its loss approaches a limit as D−1D^{-1}. Which regime is this, and what does the exponent tell you about the data?

  1. Resolution-limited; the data manifold has dimension 4
  2. Variance-limited; almost nothing, since exponent 1 comes from fluctuations around a well-defined limit shrinking like 1/D1/D
  3. Resolution-limited; the spectrum decays like k−2k^{-2}
  4. Variance-limited; the data follow a Zipf law
Show the answer

B. Variance-limited; almost nothing, since exponent 1 comes from fluctuations around a well-defined limit shrinking like 1/D1/D

When the model is the bottleneck, more data only averages out noise: by a second-order expansion the excess loss is proportional to a variance of order 1/D1/D. The exponent is universal; data-dependent exponents appear in the resolution-limited regimes.

Question 2

In the gradient-flow model with spectrum λk∝k−b\lambda_k\propto k^{-b}, b>1b>1, and hard tasks, how should compute C∝NtC\propto Nt be split?

  1. Equally: N∗∝C1/2N^*\propto C^{1/2} and t∗∝C1/2t^*\propto C^{1/2} for any bb
  2. Mostly to model size: N∗∝Cb/(1+b)N^*\propto C^{b/(1+b)}
  3. More to training time than to size: N∗∝C1/(1+b)N^*\propto C^{1/(1+b)} and t∗∝Cb/(1+b)t^*\propto C^{b/(1+b)}
  4. Entirely to training time
Show the answer

C. More to training time than to size: N∗∝C1/(1+b)N^*\propto C^{1/(1+b)} and t∗∝Cb/(1+b)t^*\propto C^{b/(1+b)}

Time resolves only t1/bt^{1/b} modes while size resolves NN, so balancing the two bottlenecks needs t∼Nbt\sim N^b, and C∼N1+bC\sim N^{1+b}. With b>1b>1 the time exponent b/(1+b)b/(1+b) exceeds 1/21/2.

Question 3

In the power-law random-features model trained by one-pass SGD, what separates the four phases of compute-optimal scaling?

  1. Which of model capacity, distortion from the random embedding, and SGD noise limits the loss at the compute-optimal point
  2. The choice of learning-rate schedule
  3. Whether the model is a transformer or an MLP
  4. Whether the data are repeated
Show the answer

A. Which of model capacity, distortion from the random embedding, and SGD noise limits the loss at the compute-optimal point

The loss splits into capacity, embedding-distortion and noise terms whose relative sizes depend on the data and target complexities α,β\alpha,\beta. In phases where SGD noise binds, a different optimizer would change the optimal allocation.

Question 4

In optimally regularized random-feature regression with spectrum λk∝k−(1+α)\lambda_k\propto k^{-(1+\alpha)}, Maloney, Roberts & Sully found L≈L0(1/N+1/T)αL\approx L_0(1/N+1/T)^\alpha. What does this form imply?

  1. Only the number of features matters
  2. Loss is set by whichever of features NN and samples TT is scarcer, with the same exponent, so scaling them together is optimal
  3. Loss grows with TT because of overfitting
  4. The exponent depends on the regularization strength
Show the answer

B. Loss is set by whichever of features NN and samples TT is scarcer, with the same exponent, so scaling them together is optimal

The form is symmetric in NN and TT: features and samples are dual resources with the same exponent α\alpha, set by the spectrum. When either approaches the latent size MM of the data, the loss plateaus.

Further reading

  • Y. Bahri, E. Dyer, J. Kaplan, J. Lee & U. Sharma, "Explaining neural scaling laws," PNAS 121 (2024).
  • A. Maloney, D. A. Roberts & J. Sully, "A solvable model of neural scaling laws," arXiv:2210.16859 (2022).
  • B. Bordelon, A. Atanasov & C. Pehlevan, "A dynamical model of neural scaling laws," ICML (2024).
  • E. Paquette, C. Paquette, L. Xiao & J. Pennington, "4+3 phases of compute-optimal neural scaling laws," NeurIPS (2024).
  • Y. Liu, Z. Liu & J. Gore, "Superposition yields robust neural scaling," NeurIPS (2025).