Training Compute-Optimal Large Language Models
Hoffmann et al. in Scaling & theory
Most large models were undertrained. Scale data as fast as parameters.
Training Compute-Optimal Large Language Models
The old scaling law said grow the model first
With 10× more compute, make the model 5.5× bigger but train on only 1.8× more tokens. GPT-3, Gopher and MT-NLG followed this recipe.
Parameters and tokens should grow in equal proportion. Double the model, double the data. The giants of the day were oversized and starved of tokens.
For a fixed compute budget, a smaller model trained longer wins.
Three methods agree; past models sit off the line

Each colored line is one way of estimating compute-optimal model size. Gopher, GPT-3 and MT-NLG sit well above them: too many parameters for their compute.
How they found the optimum
- 1
Train 400+ models
From 70M to over 16B parameters, on 5B to 500B tokens, varying both axes.
- 2
Fit it three ways
Fix size and vary tokens, sweep isoFLOP curves, and fit a parametric loss L(N,D).
- 3
Test the prediction
Train Chinchilla: 70B parameters on 1.4T tokens, the same compute as 280B Gopher.
Loss as the sum of three effects
Irreducible entropy, plus a penalty for finite model size, plus a penalty for finite data. With α≈β, both should scale together.
- N
- Model parameters
- D
- Training tokens
- E
- Irreducible loss of natural text, fitted at 1.69
- α, β
- Fitted exponents, 0.34 and 0.28
Smaller, cheaper to serve, and better
Gopher and Chinchilla used the same training compute. MMLU average accuracy.
Caveats on the compute-optimal recipe
Few runs at the largest scale
Only two models were trained at Gopher-level compute, so extrapolation leans on smaller runs.
Single-epoch assumption
All runs see each token less than once; repeating data may move the optimum.
Training cost only
The optimum ignores serving. A model answering billions of queries may justify training smaller and longer.
Why it matters
- Scale parameters and training tokens equally; roughly 20 tokens per parameter is compute-optimal.
- Chinchilla 70B beat Gopher 280B, GPT-3 and MT-NLG with far fewer parameters.
- Data, not just model size, became the main scaling bottleneck after this paper.
13 upvotes on Hugging Face 8 slides, 2 min
29 Mar 2022