Foundations to Frontier
Tests
B. Statistical Learning Theory › B4 Theory of deep learning

Scaling Laws: Theory and Empirics

Test loss of neural networks falls as a smooth power law in model size, data and compute over many orders of magnitude (Hestness et al., 2017; Kaplan et al., 2020). Fitting L(N, D) = E + A/N^α + B/D^β lets you choose the compute-optimal model size for a budget, the Chinchilla result that N and D should grow roughly equally (Hoffmann et al., 2022), and shows why carefully refitting such laws matters (Besiroglu et al., 2024). This topic derives the compute-optimal allocation, discusses where power laws come from (power-law data spectra, resolution- vs variance-limited regimes), and their limits. In the exercises you compute Chinchilla-optimal allocations and measure model-size and data scaling exponents yourself.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Bigger is better, predictably

If you double a network’s size, or its training data, its error drops by a predictable fraction, and it keeps doing so over huge ranges: from millions to hundreds of billions of parameters. Plot error against size on log-log paper and you get a straight line. That’s a scaling law. It turns building large models from guesswork into engineering: before spending millions on a training run, you can predict roughly how good the model will be, and how to split your compute between a bigger model and more data.

How big should the model be for a given compute budget?
parameters N (10⁸ … 10¹³)tokens D (10⁹ … 10¹⁴)irreducible E = 1.8172compute-optimal loss vs C (10¹⁹ → 10²⁷)
optimal: 72.2B parameters on 1.33T tokens (18 tokens/parameter), loss 1.974 · your 282B model gets 0.340T tokens and loss 1.994 (+0.019)
Colour: predicted loss (darker is lower). Dashed: all (N, D) with 6ND = C. Green: the best split; white ring: yours. Both N* and D* grow like about √C, so a 10× bigger budget should go to a roughly 3× bigger model trained on 3× more data. Switch fits: the original published parametric fit implies about 90 tokens/parameter, while the corrected refit gives about 20, in line with Chinchilla itself (70B on 1.4T tokens). Fitted constants matter.
Why engineers care

Scaling laws let you plan: how much data to collect for a terrain classifier, whether a bigger onboard model is worth its power budget, or how to allocate a fixed GPU budget for a foundation model for robotics. They also tell you when you have hit a wall (the irreducible loss, or a data bottleneck).

📝 Quick check (Level 0)
0/3 answered
  1. 1. On log-log axes, a power-law scaling curve looks like…
  2. 2. Scaling laws are used to…
  3. 3. Making only the model bigger without more data eventually…

Level 1: Beginner

★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.

Power laws

Empirically, with everything else large enough:

L(N)≈(NcN)αN,L(D)≈(DcD)αD,L(C)≈(CcC)αC.L(N)\approx\Big(\frac{N_c}N\Big)^{\alpha_N},\qquad L(D)\approx\Big(\frac{D_c}D\Big)^{\alpha_D},\qquad L(C)\approx\Big(\frac{C_c}C\Big)^{\alpha_C}.

For language models, Kaplan et al. found αN≈0.076\alpha_N\approx0.076 and αD≈0.095\alpha_D\approx0.095. Small exponents mean each 10× in size cuts loss by only about 10−0.076≈0.8410^{-0.076}\approx0.84, yet steadily.

Combined form and compute

The Chinchilla parametric form is

L(N,D)=E+ANα+BDβ,L(N, D) = E + \frac A{N^\alpha} + \frac B{D^\beta},

where E is the irreducible loss (the entropy of the data). Training a dense transformer costs about C≈6NDC\approx6ND FLOPs (2 for the forward pass and 4 for the backward, per parameter per token).

📝 Quick check (Level 1)
0/3 answered
  1. 1. With α_N = 0.076, a 10× larger model multiplies the reducible loss by…
  2. 2. Training FLOPs for N = 70B and D = 1.4T tokens:
  3. 3. E in L(N, D) is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.

Compute-optimal allocation

Minimize AN−α+BD−βA N^{-\alpha} + B D^{-\beta} subject to 6ND = C. Substituting D=C/(6N)D = C/(6N) and setting the derivative to zero, αAN−α=βBD−β\alpha AN^{-\alpha} = \beta BD^{-\beta}, gives

N⋆=G(C6)βα+β,D⋆=1G(C6)αα+β,G=(αAβB)1α+β.N^\star = G\Big(\frac C6\Big)^{\frac\beta{\alpha + \beta}},\quad D^\star = \frac1G\Big(\frac C6\Big)^{\frac\alpha{\alpha + \beta}},\quad G = \Big(\frac{\alpha A}{\beta B}\Big)^{\frac1{\alpha + \beta}}.

With α ≈ β, both grow like C\sqrt C: scale parameters and data together. That overturned Kaplan et al.’s recommendation of mostly growing N, and showed earlier giant models (Gopher, 280B parameters on 300B tokens) were badly undertrained. Chinchilla, at 70B parameters on 1.4T tokens with the same compute, beat it.

Fits matter

Besiroglu et al. (2024) refit Hoffmann et al.’s “approach 3” data and found the published constants inconsistent with the paper’s other methods. The refit (E = 1.82, A = 482, B = 2085, α = 0.348, β = 0.366) gives about 20 tokens per parameter, while the original constants imply about 90. Small changes in exponents move the optimum a lot at large C.

🐍 Exercise 1: compute-optimal allocation
Implement the Chinchilla loss and the closed-form compute-optimal (N*, D*), check it against a brute-force search, verify the exponents β/(α+β) and α/(α+β), and compare Gopher's allocation with the optimal one for the same compute (using the refit constants), and the original published fit.
📝 Quick check (Level 2)
0/3 answered
  1. 1. With α = β, N* grows like…
  2. 2. The optimality condition is…
  3. 3. Chinchilla vs Gopher showed earlier large models were…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Where power laws come from

  • Power-law spectra: if the data covariance (or kernel) eigenvalues decay as λk∝k−a\lambda_k\propto k^{-a} and the target’s coefficients also decay as a power, then kernel and linear regression risk decays as a power of n (or of the number of features). The exponent is set by a and the target smoothness (Spigler, Geiger and Wyart, 2020; Bordelon, Canatar and Pehlevan, 2020).
  • Resolution-limited vs variance-limited (Bahri et al., 2021): when the model or data is the bottleneck, loss tracks how finely the data manifold is resolved, giving exponents of about s/d for intrinsic dimension d.
  • Bottlenecks combine: with a small model, adding data saturates at the model’s floor, and vice versa, hence additive forms like A/Nα+B/DβA/N^\alpha + B/D^\beta.

Limits

Power laws are empirical fits over finite ranges. They break near the irreducible loss, under data repetition (Muennighoff et al., 2023), with distribution shift, or at emergent “phase transitions” in specific capabilities. Downstream metrics (accuracy on a task) can scale far less smoothly than loss.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Faster eigenvalue decay of the data spectrum typically gives…
  2. 2. With a tiny model, adding data eventually…
  3. 3. Scaling laws are…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Scaling, measured

Exercise 1 (refit constants). At Chinchilla’s budget of 5.76 × 10²³ FLOPs: N* = 72.2B parameters and D* = 1.33T tokens (18.4 tokens/parameter), loss 1.974. The closed form matches a brute-force search, and the exponents are N* ∝ C^0.513 and D* ∝ C^0.487. Gopher’s allocation (280B, 300B tokens) has predicted loss 1.9996, against 1.9782 for the compute-optimal 67B/1.25T split at the same compute. The original published constants put N* at 32B (93 tokens/parameter), a 2× disagreement from fitting details alone.

Exercise 2: measured scaling with random-feature regression (4-D smooth target). With n = 2000, test MSE falls from 0.143 (p = 16) to 0.016 (p = 256), a fitted model-size exponent of 0.81. With p = 1000, it falls from 0.094 (n = 32) to 0.015 (n = 512), a data exponent of 0.69. With a small model (p = 48), the data curve flattens: 0.21, 0.10, 0.062, 0.055, 0.059. Beyond n ≈ 256 more data doesn’t help, the bottleneck the additive law encodes. The exponents are noisy at this scale (another seed gives 0.59 for the model-size exponent), which is why real scaling studies fit many runs.

🐍 Exercise 2 (research): measure your own scaling laws
Train random-ReLU-feature ridge models on a smooth 4-D target. Measure test MSE vs model size at fixed data, vs data with a large model, and vs data with a small model; fit power-law exponents and identify the bottleneck regime.

Scaling laws in AI, robotics and aerospace

  • Robot foundation models: scaling studies for vision-language-action models guide data collection versus model size.
  • Data planning: fit a small-scale data curve to estimate how many labelled flight hours or terrain images reach a target error.
  • Edge deployment: use model-size curves to pick the smallest model meeting accuracy within a power budget, then distil.
  • Beware extrapolation: safety-critical decisions shouldn’t rest on extrapolating a power law far beyond the fitted range.

References

  1. J. Hestness et al. (2017). “Deep learning scaling is predictable, empirically.” arXiv:1712.00409.
  2. J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, D. Amodei (2020). “Scaling laws for neural language models.” arXiv:2001.08361.
  3. J. Hoffmann et al. (2022). “Training compute-optimal large language models.” NeurIPS.
  4. T. Besiroglu, E. Erdil, M. Barnett, J. You (2024). “Chinchilla scaling: a replication attempt.” arXiv:2404.10102.
  5. Y. Bahri, E. Dyer, J. Kaplan, J. Lee, U. Sharma (2021). “Explaining neural scaling laws.” arXiv:2102.06701 (PNAS, 2024).
  6. B. Bordelon, A. Canatar, C. Pehlevan (2020). “Spectrum dependent learning curves in kernel regression and wide neural networks.” ICML.
  7. N. Muennighoff et al. (2023). “Scaling data-constrained language models.” NeurIPS.