Skip to content
derpx06.dev
WritingExplainersNotesAbout
works on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisationworks on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisation

Learning in public.

A student's notebook on system design, distributed systems and databases. Shared as I learn.

ReadWritingExplainersNotesAbout
ElsewhereGitHubLinkedInHugging FaceLeetCode
Say hellomanaskhairnar1511@gmail.com
derpx06
NORMALmain© 2026 Derpx06Pune, Indiatop ↑
Explainers/Research Papers

Chinchilla explained: how big should an AI model be?

A DeepMind study of 400+ models shows size and training text should grow together; the 70B Chinchilla beat the 280B Gopher.

Derpx0631 Aug · 7 min read
Contents
The idea in one sentenceHow it worksStep 1: Two numbers share one budgetStep 2: What "best" meansStep 3: Three ways to find the bottom of the valleyStep 4: The three answers agreeStep 5: Why the earlier study differedWhat the paper foundWhat to be careful aboutSources
0% read · 7 min leftBack to top ↑
On this page0%
Contents
The idea in one sentenceHow it worksStep 1: Two numbers share one budgetStep 2: What "best" meansStep 3: Three ways to find the bottom of the valleyStep 4: The three answers agreeStep 5: Why the earlier study differedWhat the paper foundWhat to be careful aboutSources

Training a large language model costs a huge amount of computing power, and you usually get to do it only once. So one question matters a lot: for a fixed amount of computing, how big should the model be, and how much text should it read while learning? Before this paper, the common answer was "make the model as big as you can." The authors tested that answer carefully and found it was wrong.

Paper

Training Compute-Optimal Large Language Models, by Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Laurent Sifre and colleagues at DeepMind. arXiv:2203.15556, March 2022. Read it at arxiv.org/abs/2203.15556.

The idea in one sentence

For a fixed computing budget, model size and the amount of training text should grow together, in equal proportion.

The authors trained more than 400 models of many sizes to find the best split. They then used the answer to build Chinchilla, a 70-billion-parameter model. It beat Gopher, a 280-billion-parameter model that used the same training compute.

How it works

Step 1: Two numbers share one budget

A parameter is one adjustable number inside the model. The model's size, NNN, is its count of parameters. A token is a small piece of text, such as a word or part of a word. The amount of training text, DDD, is counted in tokens.

The paper measures the budget CCC in FLOPs, which means floating-point operations, a count of arithmetic steps. For this kind of model, a common estimate is:

C≈6NDC \approx 6NDC≈6ND

The paper checks this estimate against its exact count and finds the two are close (Table A4). Because CCC is fixed, a bigger NNN forces a smaller DDD.

Toy example (my own numbers). Let C=1022C = 10^{22}C=1022. A 30-billion-parameter model can read 1022/(6×30×109)≈5610^{22} / (6 \times 30\times10^9) \approx 561022/(6×30×109)≈56 billion tokens. A 1-billion-parameter model can read about 1.67 trillion tokens. Same budget, very different models.

1Fixed budget C
2Pick size N
3Training tokens D = C / 6N
4Train and measure the loss
One budget, many possible splits. The paper looks for the split with the lowest loss.

Step 2: What "best" means

The loss is a number that measures how wrong the model's next-word guesses are on text. Lower is better. The paper asks for the NNN and DDD that give the lowest final loss under 6ND=C6ND = C6ND=C.

When you plot loss against model size for one fixed budget, you get a valley. A model that is too small cannot store enough. A model that is too big gets too little text to learn from. The best model sits at the bottom.

Step 3: Three ways to find the bottom of the valley

The authors used three different methods. They wanted to see whether the answers agreed.

  1. Approach 1, fix the model size and vary the training tokens. Train each model size for four different lengths. For each budget, pick the run with the lowest loss. Then fit a power law to the winners.
  2. Approach 2, IsoFLOP profiles. Pick nine fixed budgets, from 6×10186\times10^{18}6×1018 to 3×10213\times10^{21}3×1021 FLOPs. For each one, train models of different sizes and fit a curve to the valley. The bottom of the curve is the best size.
  3. Approach 3, fit a formula for the loss. Write the loss as a function of NNN and DDD:
L^(N,D)=E+ANα+BDβ\hat L(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}}L^(N,D)=E+NαA​+DβB​

EEE is the loss of a perfect model. The A/NαA/N^\alphaA/Nα term is the penalty for a model that is too small. The B/DβB/D^\betaB/Dβ term is the penalty for too little training. The paper fits AAA, BBB, EEE, α\alphaα and β\betaβ to its runs, then finds the best NNN and DDD for each budget.

A power law is a relation of the form y∝xay \propto x^ay∝xa. Here the paper fits the best size as Nopt∝CaN_{opt} \propto C^aNopt​∝Ca and the best token count as Dopt∝CbD_{opt} \propto C^bDopt​∝Cb.

Toy example (formula check). The paper's fitted values are E=1.69E = 1.69E=1.69, A=406.4A = 406.4A=406.4, B=410.7B = 410.7B=410.7, with exponents 0.34 and 0.28. I put the two big models into the formula:

ModelNNNDDDPredicted loss
Gopher280B300B1.99
Chinchilla70B1.4T1.94

The smaller model gets the lower predicted loss. This matches what the paper's authors expected, and they then trained Chinchilla to test it.

Step 4: The three answers agree

Approach 10.5
Approach 20.49
Approach 30.46
Kaplan et al. 20200.73
Exponent a in N_opt ∝ C^a (paper Table 2). An exponent near 0.5 means size and data grow equally.

The exponent for the number of tokens is bbb. It comes out as 0.50, 0.51 and 0.54 for the three approaches. Both exponents are close to 0.5.

What this means. If the exponents are both 0.5, then 10 times more budget gives about 10≈3.2\sqrt{10} \approx 3.210​≈3.2 times the parameters and 3.2 times the tokens. The earlier study by Kaplan et al. (2020) suggested 5.5 times the parameters and only 1.8 times the tokens for the same 10 times more budget.

Step 5: Why the earlier study differed

Kaplan et al. used one fixed learning-rate schedule for all runs. The learning rate is the size of each learning step, and a schedule shrinks it over time. In the paper's analysis, a schedule that is too long for the run leaves the model still taking large steps when it stops. Short runs then look worse than they really are. That makes small amounts of data look less useful and pushes the answer toward bigger models. The authors set the schedule to match each run's length, and found this gives the best final loss.

What the paper found

The paper's Table 3 (Approach 1) gives the best token count for each model size:

Model sizeBest tokensTokens per parameter
1 billion20.2 billionabout 20
10 billion205.1 billionabout 20
67 billion1.5 trillionabout 22
280 billion5.9 trillionabout 21

The paper does not state a single "20 tokens per parameter" rule. That number is my division of its table values and of Chinchilla's 1.4 trillion tokens by 70 billion parameters.

The paper's Table 1 shows the older models:

ModelParametersTraining tokens
GPT-3175B300B
Jurassic178B300B
Gopher280B300B
MT-NLG530B270B
Chinchilla70B1.4T

Gopher used about 5.76×10235.76\times10^{23}5.76×1023 FLOPs. Chinchilla used the same budget with a model four times smaller and four times more data.

On MMLU, a test of 57 school and expert subjects, 5-shot (the model sees five examples first):

Random25%
GPT-343.9%
Gopher60%
Chinchilla67.6%
Human experts89.8%
MMLU average accuracy (paper Table 6).

The abstract rounds Chinchilla's score to 67.5%, while the results section and Table 6 say 67.6%. Chinchilla also beat Gopher, GPT-3, Jurassic-1 and Megatron-Turing NLG on most of the tasks the paper tested.

What this shows. For these two models, the smaller, longer-trained one is better at equal cost. A smaller model is also cheaper to run afterwards, which the paper points out.

What this does not show. It does not prove the exact 20-to-1 ratio holds for every model, dataset or training recipe.

What to be careful about

  • Only two large comparisons. The paper says it has just two comparable large-scale runs, Chinchilla and Gopher, and no tests at sizes in between.
  • Assumed power-law shape. The paper assumes the best size follows a power law in the budget. It sees some curve at very large budgets, which may mean the best size is still overestimated.
  • Less than one pass over the data. Every training run used each token at most once. Repeated passes over the same data were not studied.
  • Data matters. Training on 1.4 trillion tokens needs a large, high-quality dataset. The paper notes that such datasets will be key for further scaling.
  • Possible test leakage. Chinchilla saw four times more text than Gopher. The paper warns that on some language-modelling benchmarks, test text may have been in its training data, so it puts more weight on other tests.
  • Training cost is not the whole cost. This paper finds the best model for a training budget. If a model will be used a lot, the paper's point about cheaper use of smaller models matters too.
Key takeaways
  • Training compute can be spent on model size or on training text. They trade off, with C≈6NDC \approx 6NDC≈6ND.
  • Three different methods all said to grow size and tokens in roughly equal proportion.
  • Chinchilla (70B, 1.4T tokens) beat Gopher (280B, 300B tokens) at the same training cost.
  • The test of the idea is small, so treat "about 20 tokens per parameter" as a rough guide, not a law.

Sources

  • Hoffmann et al., Training Compute-Optimal Large Language Models, 2022 (all numbers above are from this paper unless marked as my own)
ShareXLinkedInEmail
Written by Derpx06A developer who builds AI search tools and the code around them. I explain what I got wrong first, so you can skip it. Spotted a mistake? Tell me — corrections get credited.
Research Papers · 6 minFlashAttention explained: making AI attention much fasterResearch Papers · 5 minMamba explained: an alternative to TransformersResearch Papers · 6 minLoRA explained: fine-tune a big AI model cheaply
Start here
01Why do AI chatbots make things up?02How does Raft work? Getting computers to agree03Mamba explained: an alternative to Transformers