Before you move a control in the demo, say what you expect to change.
Foundation reference
Scaling Laws & Emergent Abilities
Scaling laws are used to choose model size and training tokens for a compute budget: Chinchilla (70B parameters, 1.4T tokens) used the same compute as the 280B-parameter Gopher and outperformed it (Hoffmann et al., 2022).
Study guide
Where to start
Why does loss fall as a power law in model size and data, and what can statistical-physics or information-theoretic arguments explain about it?
How to study this pagePredict · Check · Generalize · Continue
Compare what the demo shows with the key equation and with the papers cited below.
Identify the part of the idea that survives a change of notation or model, so you can recognize it in another paper or system.
The newer notebook covers the same concept and has an interactive demo.
Why It Matters for Modern Models
- Scaling laws are used to choose model size and training tokens for a compute budget: Chinchilla (70B parameters, 1.4T tokens) used the same compute as the 280B-parameter Gopher and outperformed it (Hoffmann et al., 2022).
- Similar power-law fits have been reported for generative models of images, video and multimodal data (Henighan et al., 2020).
Questions to Think About
- How does performance on individual tasks change with scale, and how much of an apparent jump comes from the choice of metric?
Interactive Demos
Core Math
If you prefer intuition first, try the demos above, then come back for the math.
Test loss follows approximate power laws in the number of parameters and training tokens (Hoffmann et al., 2022):
where is the irreducible loss and are fitted constants. Training compute is approximately floating-point operations.
Compute-optimal allocation: for a fixed budget , Hoffmann et al. found that the best and both grow roughly as , so at about 20 tokens per parameter. Doubling compute therefore multiplies each of them by about . Kaplan et al. (2020) had estimated that parameters should grow much faster than data; Hoffmann et al. attribute much of the difference to Kaplan et al. using one fixed learning-rate schedule and number of training tokens for all model sizes.
Emergent abilities: Wei et al. (2022) reported abilities, such as multi-digit arithmetic, that appear abruptly above some model scale. Schaeffer et al. (2023) argue that much of this abruptness comes from discontinuous metrics such as exact-match accuracy, and that smoother metrics show gradual improvement.