The paper solves the following problem. Let N be the number of parameters, D the number of training tokens, and C the training compute (number of floating-point operations). Given a fixed compute C, find the N and D that minimize the final loss L.
Nopt(C), Dopt(C)=argminN,D s.t. FLOPs(N,D)=CL(N,D)
Compute is roughly C≈6ND (about 2 operations per parameter per token in the forward pass, and twice that in backpropagation). Increasing N reduces the number of tokens D that can be trained with the same C. The paper estimated this allocation with three approaches.
- Trace the lower envelope of the training curves: models of fixed sizes are each trained with four different learning-rate decay lengths (cosine cycle lengths). From all training curves, the point with the lowest loss is collected for each compute level, and the corresponding N and D are fit with power laws in compute.
- Fix compute and vary size (IsoFLOP): for each of 9 compute budgets (6×1018 to 3×1021), models of different sizes are trained and their final losses compared. The loss forms a valley as a function of size, and the bottom of the valley (the optimal size) is found by fitting a parabola.
- Model the loss with a formula and fit it: the following formula is fit to all results from approaches 1 and 2.
L^(N,D)=E+NαA+DβB
E is the loss that remains even for an ideal model (the entropy of natural text itself). A/Nα is the loss due to the model being small, and B/Dβ is the loss due to insufficient training. The fitted values are E=1.69, A=406.4, B=410.7, α=0.34, and β=0.28 (Appendix D.2 of the paper). The fit minimizes the outlier-robust Huber loss with L-BFGS.
Minimizing this formula under the constraint C=6ND gives the optimal size and token count as power laws in compute.
Nopt(C)=G(6C)a,Dopt(C)=G−1(6C)b,G=(βBαA)α+β1, a=α+ββ, b=α+βα
The left side of the figure at the top of this article uses this formula to plot loss against size at fixed compute. Every compute budget gives a valley, and on the curve for Gopher's compute, Chinchilla (70 billion) is closer to the bottom of the valley than Gopher (280 billion).
The results of the three approaches (the exponents in Nopt∝Ca and Dopt∝Cb; Table 2 of the paper) are as follows.
| Approach | a (size) | b (tokens) |
|---|
| 1. Lower envelope of training curves | 0.50 | 0.50 |
| 2. IsoFLOP | 0.49 | 0.51 |
| 3. Fitting the loss formula | 0.46 | 0.54 |
| Kaplan et al. (2020) | 0.73 | 0.27 |
All three give a≈b≈0.5: when increasing compute, size and tokens should be scaled in equal proportion. Estimating the required tokens for each size with approach 1 gives the following (excerpt from Table 3 of the paper).
| Parameters | Compute (FLOPs) | Training tokens |
|---|
| 1 billion | 1.21×1020 | 20.2 billion |
| 10 billion | 1.23×1022 | 205.1 billion |
| 67 billion | 5.76×1023 | 1.5 trillion |
| 175 billion | 3.85×1024 | 3.7 trillion |
| 280 billion | 9.90×1024 | 5.9 trillion |
| 1 trillion | 1.27×1026 | 21.2 trillion |
At every size, the rule of thumb is to train on roughly 20 tokens per parameter. GPT-3, with 175 billion parameters, would need 3.7 trillion tokens; the 300 billion tokens it actually used were less than a tenth of that.
At Gopher's compute (5.76×1023), the optimal size was estimated at about 63–67 billion by approaches 1 and 2, and about 40 billion by approach 3. Of this 40–70 billion range, the paper chose the larger end, 70 billion, to train Chinchilla.