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.
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).
- 1. On log-log axes, a power-law scaling curve looks like…
- 2. Scaling laws are used to…
- 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:
For language models, Kaplan et al. found and . Small exponents mean each 10× in size cuts loss by only about , yet steadily.
Combined form and compute
The Chinchilla parametric form is
where E is the irreducible loss (the entropy of the data). Training a dense transformer costs about FLOPs (2 for the forward pass and 4 for the backward, per parameter per token).
- 1. With α_N = 0.076, a 10× larger model multiplies the reducible loss by…
- 2. Training FLOPs for N = 70B and D = 1.4T tokens:
- 3. E in L(N, D) is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.Compute-optimal allocation
Minimize subject to 6ND = C. Substituting and setting the derivative to zero, , gives
With α ≈ β, both grow like : 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.
- 1. With α = β, N* grows like…
- 2. The optimality condition is…
- 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 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 .
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.
- 1. Faster eigenvalue decay of the data spectrum typically gives…
- 2. With a tiny model, adding data eventually…
- 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.
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
- J. Hestness et al. (2017). “Deep learning scaling is predictable, empirically.” arXiv:1712.00409.
- 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.
- J. Hoffmann et al. (2022). “Training compute-optimal large language models.” NeurIPS.
- T. Besiroglu, E. Erdil, M. Barnett, J. You (2024). “Chinchilla scaling: a replication attempt.” arXiv:2404.10102.
- Y. Bahri, E. Dyer, J. Kaplan, J. Lee, U. Sharma (2021). “Explaining neural scaling laws.” arXiv:2102.06701 (PNAS, 2024).
- B. Bordelon, A. Canatar, C. Pehlevan (2020). “Spectrum dependent learning curves in kernel regression and wide neural networks.” ICML.
- N. Muennighoff et al. (2023). “Scaling data-constrained language models.” NeurIPS.