Paper notes

Chinchilla: Why a 70B Model on 1.4T Tokens Beats the 280B Gopher at the Same Compute

For a fixed training budget, how big should the model be and how many tokens should it see? DeepMind's 400-model study says parameters and data should grow together (about 20 tokens per parameter); the 70B Chinchilla then beat the 280B Gopher at equal compute. Numbers re-checked here.

Published Updated 16 min read

On this page
  1. Why this paper matters
  2. The question
  3. Three ways to estimate the optimum
  4. Recomputing Table 3
  5. How Chinchilla differs from Gopher
  6. Results: a smaller model that wins at the same compute
  7. Limits and cautions
  8. What to take away
  9. Further reading
  10. FAQ

Why this paper matters

“Training Compute-Optimal Large Language Models” was written by Hoffmann et al. at DeepMind and posted to arXiv on 29 March 2022. It answers the most practical question in pretraining: the compute budget is fixed before the run starts (how many accelerators, for how long), so how large should the model be, and how many tokens should it see? An allocation that does best for a given budget is called compute-optimal.

The paper starts from what everyone was doing. Table 1 lists the largest dense language models of the time. Apart from LaMDA, most were trained on roughly 300 billion tokens while parameter counts kept growing:

ModelParametersTraining tokensTokens per parameter (computed here)
LaMDA137B168B1.2
GPT-3175B300B1.7
Jurassic178B300B1.7
Gopher280B300B1.1
MT-NLG530B270B0.5
Chinchilla70B1.4T20.0

The backdrop is the earlier scaling-laws paper. The introduction summarises the Kaplan et al. recommendation as follows: for a 10x larger compute budget, grow the model 5.5x and the training tokens only 1.8x. Chinchilla finds the opposite, that parameters and tokens should grow in equal proportion: every time the model doubles, the training data should double too.

The authors predict that at Gopher’s budget the best model is about 4 times smaller and should see about 4 times more tokens, then train a 70B model to test it. The abstract’s claim is that Chinchilla uniformly and significantly outperforms Gopher (280B), GPT-3 (175B), Jurassic-1 (178B) and Megatron-Turing NLG (530B) on a large range of downstream evaluations. The result reset how labs budget pretraining: later open models (see the LLaMA note) treat data as a knob as important as parameters, and the hunt for high-quality tokens took off.

The question

Let L(N,D)L(N, D) be the final pretraining loss for a model with NN parameters trained on DD tokens. Compute is a deterministic function of the two, C=FLOPs(N,D)C = \text{FLOPs}(N, D), and the problem is:

Nopt(C), Dopt(C)=arg⁡min⁡FLOPs(N,D)=C  L(N,D)N_{opt}(C),\, D_{opt}(C) = \underset{\text{FLOPs}(N,D)=C}{\arg\min}\; L(N, D)

A rough rule is C≈6NDC \approx 6ND (about 2N2N FLOPs per token forward and 4N4N backward). The paper counts every FLOP, including embeddings and attention. Appendix Table A4 compares the two accountings for models from 73M to 6.8B parameters: the ratio of the paper’s count to 6ND6ND stays between 0.99 and 1.10, which the authors judge too small to matter.

Three ways to estimate the optimum

The paper uses three independent methods, each assuming power laws Nopt∝CaN_{opt}\propto C^a and Dopt∝CbD_{opt}\propto C^b:

MethodWhat it doesExponent a (parameters)Exponent b (data)
1: fix model size, vary training lengthFour runs per model size (70M to over 10B parameters) whose cosine learning-rate decay of 10x spans horizons differing by 16x. Take the best run at each FLOP count, read off the optimal NN and DD at 1,500 log-spaced FLOP values, then fit power laws0.500.50
2: IsoFLOP profilesNine fixed budgets (6e18 to 3e21 FLOPs); at each, vary the model size (up to 16B) and fit a parabola to final loss versus parameters, taking its minimum0.490.51
3: parametric lossFit L^(N,D)=E+A/Nα+B/Dβ\hat L(N,D)=E+A/N^{\alpha}+B/D^{\beta} to the final losses of all runs from methods 1 and 2, then solve under 6ND=C6ND=C0.460.54
For reference: Kaplan et al. (2020)Fixed token count and learning-rate schedule0.730.27

The three terms of Method 3 have a reading: EE is the entropy of natural text (the loss of an ideal generative process), A/NαA/N^{\alpha} says that even a perfectly trained transformer with NN parameters falls short of that ideal, and B/DβB/D^{\beta} says the model took only finitely many optimisation steps on a finite sample. The fit minimises a Huber loss (δ=10−3\delta=10^{-3}) with L-BFGS, restarted from a grid of initial values. Minimising under 6ND=C6ND=C gives a closed form (Equation 4 of the paper):

Nopt=G(C6)a,Dopt=G−1(C6)b,G=(αAβB)1α+β,a=βα+β, b=αα+βN_{opt}=G\left(\frac{C}{6}\right)^{a},\quad D_{opt}=G^{-1}\left(\frac{C}{6}\right)^{b},\quad G=\left(\frac{\alpha A}{\beta B}\right)^{\frac{1}{\alpha+\beta}},\quad a=\frac{\beta}{\alpha+\beta},\ b=\frac{\alpha}{\alpha+\beta}

A few things worth noticing:

  • The learning-rate schedule must match the training length. The paper finds that a cosine cycle more than 25% longer than the actual number of steps clearly hurts, so the points selected in Method 1 all lie in the last 15% of training. Kaplan et al. used one fixed schedule for all models, which the authors argue underrates training on less data and is one source of the disagreement.
  • All three exponents fall between 0.46 and 0.54, far from Kaplan’s 0.73 and 0.27. In Table 2, though, the 10th-90th percentile range for Method 3 is only 0.001 wide (0.454 to 0.455), versus 0.488 to 0.502 for Method 1, which later drew criticism.
  • The result holds on other data. Repeating the IsoFLOP analysis with four profiles on C4 and on GitHub code gives exponents 0.50/0.50 and 0.53/0.47 (Table A2).
  • Curvature. Method 3 predicts even smaller optimal models at large budgets. The authors attribute this to negative curvature of the frontier (Appendix E) and note that it may mean large models are still over-sized in their estimates.

Recomputing Table 3

Table 3 lists the optimal FLOPs and tokens that Method 1 predicts for various model sizes. The code below copies the table, checks tokens per parameter and the ratio between the paper’s FLOPs and 6ND6ND, then solves Equation 4 at Gopher’s budget with the printed coefficients and with the refit by Besiroglu et al.:

# Table 3 (Approach 1): (parameters, FLOPs, tokens) as printed in the paper
rows = [(0.4e9, 1.92e19, 8.0e9), (1e9, 1.21e20, 20.2e9),
        (10e9, 1.23e22, 205.1e9), (67e9, 5.76e23, 1.5e12),
        (175e9, 3.85e24, 3.7e12), (280e9, 9.90e24, 5.9e12),
        (520e9, 3.43e25, 11.0e12), (1e12, 1.27e26, 21.2e12),
        (10e12, 1.30e28, 216.2e12)]
print(f"{'N':>8} {'D/N':>6} {'C/6ND':>6}")
for n, c, d in rows:
    print(f"{n:8.1e} {d / n:6.1f} {c / (6 * n * d):6.3f}")

# Table 1: the largest models of the time, in billions
models = {"LaMDA": (137, 168), "GPT-3": (175, 300), "Jurassic": (178, 300),
          "Gopher": (280, 300), "MT-NLG": (530, 270), "Chinchilla": (70, 1400)}
for name, (n, d) in models.items():
    print(f"{name:<10s} {d / n:5.1f} token/param")


def frontier(E, A, B, alpha, beta, C):
    """Minimise E + A/N^alpha + B/D^beta s.t. 6ND=C (paper's Eq. 4)."""
    a, b = beta / (alpha + beta), alpha / (alpha + beta)
    G = (alpha * A / (beta * B)) ** (1 / (alpha + beta))
    return a, b, G * (C / 6) ** a, (C / 6) ** b / G


C = 5.76e23  # Gopher's training FLOPs (Rae et al.'s count, paper's Fig. 2)
fits = {"paper": (1.69, 406.4, 410.7, 0.34, 0.28),
        "refit": (1.8172, 482.01, 2085.43, 0.3478, 0.3658)}
for name, p in fits.items():
    a, b, n, d = frontier(*p, C)
    print(f"{name}: a={a:.3f} b={b:.3f} N*={n / 1e9:.0f}B "
          f"D*={d / 1e12:.2f}T D/N={d / n:.0f}")

Output:

       N    D/N  C/6ND
 4.0e+08   20.0  1.000
 1.0e+09   20.2  0.998
 1.0e+10   20.5  1.000
 6.7e+10   22.4  0.955
 1.8e+11   21.1  0.991
 2.8e+11   21.1  0.999
 5.2e+11   21.2  0.999
 1.0e+12   21.2  0.998
 1.0e+13   21.6  1.002
LaMDA        1.2 token/param
GPT-3        1.7 token/param
Jurassic     1.7 token/param
Gopher       1.1 token/param
MT-NLG       0.5 token/param
Chinchilla  20.0 token/param
paper: a=0.452 b=0.548 N*=32B D*=2.98T D/N=93
refit: a=0.513 b=0.487 N*=72B D*=1.33T D/N=18

The first block shows that Method 1’s optimum sits at 20 to 22 tokens per parameter from 400 million parameters all the way to 10 trillion, and that the FLOPs in Table 3 match 6ND6ND to within 0.955 to 1.002, so 6ND6ND is a fine estimate. Chinchilla itself (1.4T tokens, 20.0) lies on that line.

The second block hides a detail that is easy to miss. Plug the rounded coefficients printed in Appendix D.2 (E=1.69E=1.69, A=406.4A=406.4, B=410.7B=410.7, α=0.34\alpha=0.34, β=0.28\beta=0.28) into the closed form and Gopher’s budget gives about 32B parameters and 3.0T tokens, roughly 93 tokens per parameter. That disagrees with the “40B” in the caption of Figure 4 and is far from Method 1’s 67B. The refit by Besiroglu et al. gives about 72B and 1.33T tokens (roughly 18 per parameter), in line with Method 1. They also report that rounding the published parameters accounts for most of the poor fit. This is exactly the problem the replication studies raised, discussed below.

How Chinchilla differs from Gopher

At Gopher’s budget the authors predicted an optimum between 40B and 70B parameters and chose the top of the range, 70B, for reasons of data and computational efficiency. Chinchilla uses the same Transformer design as Gopher; only the size and training setup differ (Table 4):

SettingGopherChinchilla
Parameters280B70B
Layers8080
Attention heads12864
Key/value size128128
dmodeld_{model}16,3848,192
Max learning rate4×10−54\times10^{-5}1×10−41\times10^{-4}
Batch size (tokens)3M to 6M1.5M to 3M
Training tokens300B1.4T

The paper lists four further differences. They have nothing to do with how parameters and data are split, but they could affect the outcome:

  • Data: the same MassiveText corpus, with a slightly different subset mix to accommodate the extra tokens.
  • Optimizer: AdamW for Chinchilla, Adam for Gopher. The paper says AdamW improves language-modelling loss and post-finetuning downstream performance; a footnote adds that AdamW only overtakes Adam on training loss about 80% of the way through the cosine cycle, but ends clearly better.
  • Tokenizer: SentencePiece without NFKC normalisation; 94.15% of the vocabulary is the same as Gopher’s, and the authors say it helps for mathematics and chemistry.
  • Precision: forward and backward passes in bfloat16, with a float32 copy of the weights in the distributed optimizer state.

Appendix G measures the effect of the optimizer-related changes. Even so, the whole comparison rests on one pair of large runs, and “a better allocation helped” cannot be fully separated from “these other settings helped”. The authors admit they have only two comparable large-scale runs and no intermediate-scale confirmation.

Results: a smaller model that wins at the same compute

The paper compares Chinchilla with Gopher, GPT-3 and MT-NLG on language modelling, MMLU, BIG-bench, reading comprehension, common sense, closed-book QA, bias and toxicity. Main results (accuracy, %):

Benchmark (setting)ChinchillaGopherGPT-3MT-NLG 530B
MMLU (5-shot, mean of 57 tasks)67.660.043.9n/a
BIG-bench (mean of 62 tasks)65.154.4n/an/a
LAMBADA (zero-shot)77.474.576.276.6
RACE-h (few-shot)82.371.646.8*47.9*
RACE-m (few-shot)86.875.158.1*n/a
HellaSwag (zero-shot)80.879.278.980.2
PIQA (zero-shot)81.881.881.082.0
Winogrande (zero-shot)74.970.170.273.0
BoolQ (zero-shot)83.779.360.578.2
Natural Questions (dev, 5-shot)31.524.5n/an/a
TriviaQA (unfiltered, test, 5-shot)73.263.6n/an/a
TruthfulQA (0-shot)43.629.5n/an/a

* GPT-3 and MT-NLG used a different prompt format on RACE, so the paper says they are not directly comparable with Gopher and Chinchilla.

How to read the table:

  • MMLU is the headline. Chinchilla beats Gopher by 7.6 points; of 57 subjects it is better on 51, equal on 2 and worse on 4 (college_mathematics, econometrics, moral_scenarios, formal_logic). The paper adds that it exceeds 90% on four subjects (high_school_gov_and_politics, international_law, sociology, us_foreign_policy), which it says no earlier model had done on any subject. It also beats the 63.4% average forecast of 73 forecasters for the best June 2023 result; the average human expert score in the table is 89.8%, still about 22 points above Chinchilla’s overall score.
  • It is not a clean sweep. PIQA ties Gopher (81.8) and is slightly below MT-NLG (82.0), and Chinchilla is worse than Gopher on 4 of the 62 BIG-bench tasks.
  • The comparison with the 530B model is telling. With about 13% of MT-NLG’s parameters it beats it on HellaSwag, Winogrande, BoolQ and LAMBADA; the paper’s wording for the common-sense suite is “all but one”.
  • Language-modelling numbers deserve a discount. Chinchilla saw over 4 times as many tokens as Gopher, so train/test leakage could inflate results on The Pile and Wikitext103 (perplexity 7.16 versus 7.75). The authors therefore lean on MMLU, BIG-bench and closed-book QA, where leakage matters less.
  • A smaller model is cheaper to use. The paper points out that fine-tuning and inference also consume a lot of compute; being 4 times smaller than Gopher, Chinchilla needs less memory and cheaper inference.
  • Bias and toxicity do not go away. On Winogender Chinchilla is better overall (78.3% versus 71.4%) but the gains are uneven across groups, and the toxicity of unprompted samples is almost unchanged (mean 0.087 versus 0.081).

The paper also runs a small head-to-head at 102110^{21} FLOPs: Kaplan’s formula recommends 4.68B parameters and Method 1 recommends 2.86B. The authors train 4.74B and 2.80B models, and the smaller one ends with the lower loss (Appendix D.4, Figure A4). This is the most direct evidence that Kaplan et al. underrated data, but it is a single budget and the paper gives no numerical loss values.

Limits and cautions

  • One pair of large runs. The authors acknowledge that Chinchilla and Gopher are their only comparable large-scale runs, with no intermediate scales; the extrapolation (Table 3 goes up to 10 trillion parameters) lives on fitted curves.
  • The power-law assumption may not hold. Appendix E observes concavity in the compute-optimal frontier at large budgets, which the authors say suggests that large models may still be over-estimated and that even smaller models could be optimal.
  • Under one epoch of data. All runs see each token at most once; the multi-epoch regime needs other studies.
  • Training loss only. The recipe minimises training compute for a given loss and ignores serving costs, so later models deliberately deviate by training small models longer; see the LLaMA note and the wiki page on scaling laws.
  • Several inconsistencies in the paper. The abstract says 67.5% on MMLU while the text and Table 6 say 67.6%; the abstract says 5 to 500 billion training tokens while the introduction says 5 billion to “over 400 billion”; Section 4.2.6 says Gopher gets 21% on Natural Questions 5-shot while Table 9 says 24.5%; Gopher’s training compute is taken as 5.76e23 FLOPs from Rae et al. in Figure 2, while Appendix F says the paper’s more accurate count is 6.3e23. None changes the conclusion, but quote the tables, not the prose.
  • The Method 3 coefficients are disputed. Besiroglu et al. (2024) rebuilt the data from the paper’s figures and found that the printed Method 3 coefficients conflict with Methods 1 and 2, fit poorly, and carry confidence intervals that would require over 600,000 experiments when the authors had only about 400. According to that paper, one of the original authors said that averaging the Huber loss instead of summing it made the L-BFGS-B optimizer terminate early, in both the original fit and the bootstrap. Their refit agrees with Methods 1 and 2 at roughly 20 tokens per parameter. The 32B versus 72B gap in the code above is a direct illustration.
  • The disagreement with Kaplan has since been explained. Porian et al. (2024) reproduced the Kaplan law on two datasets and traced the gap to three factors: the computational cost of the last layer, the warmup duration and scale-dependent optimizer tuning. Correcting them gives excellent agreement with the Chinchilla law. They also find that, contrary to a hypothesis of Hoffmann et al., careful learning-rate decay is not essential for the law to hold.

What to take away

  1. Parameters and data are two equally important knobs under a compute budget. Growing the model while holding data fixed wastes compute.
  2. “About 20 tokens per parameter” is an empirical result, not a law. It comes from Methods 1 and 2, and moves with data quality, architecture and optimizer tuning. Decide first whether you are minimising training cost or inference cost.
  3. Three estimators that agree beat any single fit. Method 3 has disputed details; Methods 1 and 2 are the sturdier ones.
  4. Chinchilla versus Gopher is a validation, not a proof. It is one pair of large runs, with other settings changed at the same time.
  5. Trust the tables. Abstract, text and tables disagree in a few places; copying a table into code and recomputing it finds such problems faster than reading the prose.

Further reading

FAQ

Does "Chinchilla-optimal" mean every parameter needs exactly 20 tokens?
No. It is an empirical ratio, not a law. Approach 1 in Table 3 of the paper gives 20.0 to 22.4 tokens per parameter (computed here from the table). Plugging the rounded Approach 3 coefficients printed in the paper into the closed form gives about 93 at Gopher's budget, while a replication refit gives about 18. The ratio answers "what minimises training compute for a given loss" and ignores inference cost after release, which is why many later open models train small models far beyond 20 tokens per parameter.
Did Chinchilla really use the same compute as Gopher?
That is what the paper states, taking Gopher's budget as 5.76e23 FLOPs as counted by Rae et al. (Figure 2). Only the split differs - Gopher is 280B parameters on 300B tokens, Chinchilla is 70B parameters on 1.4T tokens. Mind the accounting, though. Appendix F says the paper's own more careful count would put Gopher at 6.3e23 FLOPs, and the simple 6ND estimate gives roughly 5.0e23 for Gopher and 5.9e23 for Chinchilla - the same order of magnitude, but not equal.
Why does Chinchilla disagree with the Kaplan et al. scaling laws?
In Table 2 Kaplan's optimal parameter count grows as C^0.73 and data as C^0.27, while all three Chinchilla methods give roughly 0.5 and 0.5. The paper's own explanation is that Kaplan used a fixed number of training tokens and a fixed learning rate schedule for every model, which overstates intermediate losses and underrates training on less data. A 2024 replication by Porian et al. identifies three further factors - last-layer compute cost, warmup length and scale-dependent optimizer tuning - and shows that correcting them recovers the Chinchilla law.
Why is the paper's third approach controversial?
Besiroglu et al. (2024) reconstructed the data from the paper's plots and found that the printed Approach 3 coefficients disagree with Approaches 1 and 2, fit the reconstructed data poorly, and come with confidence intervals so narrow they would need over 600,000 experiments when the authors had well under 500. According to that paper, one of the original authors later explained that the optimizer stopped early during fitting. Refitted properly, Approach 3 agrees with Approaches 1 and 2.