# What Is Compute-Optimal (Chinchilla-Style) Training?

> How to split a fixed training budget between model size and training text, why the 2022 Chinchilla paper changed the advice, and where it stops, for your AI interview.

**In short:** Compute-optimal training means spending a fixed training budget so that model size and training text grow together. The 2022 Chinchilla paper found that many large models had too little text for their size.

AI and LLM interview question Q020, LLM fundamentals. Advanced, occasional (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-is-compute-optimal-chinchilla-style-training

## Say it in 30 seconds

Compute-optimal training means spending a fixed training budget so that model size and training text grow together. The 2022 Chinchilla paper showed that many big models of its day were undertrained. A 70 billion parameter model trained on 1.4 trillion tokens beat Gopher, another large model with 280 billion parameters. So before I ask for a bigger model, I check that I have the text to train it properly.

## Say it in 2 minutes

Compute-optimal training asks one question: with the effort I can pay for, what mix of model size and training text gives the best model? A bigger model can learn more, but only if it sees enough text. In 2020, Kaplan and colleagues found that very large models trained on a modest amount of text were the most efficient use of compute. In 2022, the Chinchilla paper changed that advice. Its authors trained over 400 models and found that size and text should grow together, so doubling the model means doubling the text.

The test was Chinchilla itself. It had 70 billion parameters and trained on 1.4 trillion tokens, using the same compute as Gopher, which had 280 billion parameters. It beat Gopher, and it needed less compute to fine-tune and run, which helps anyone who uses it.

I would use the rule as a check, and say that the ratio is rough. Chinchilla's model works out to about 20 tokens per parameter, a ratio from one paper. Before I ask for a bigger model, I count the clean text I have. If the text can't fill the model, a smaller model trained on the text you have is the safer buy.

The rule is about the training budget. It doesn't say where new text will come from, and teams that expect heavy use often pick a smaller model trained on more text, paying the extra once.

## What is compute-optimal training, in plain words?

Every training run has a budget: the computing power and time you can pay for. You can spend it on a bigger model, on more text for the model to learn from, or on a mix. Compute-optimal training means choosing the mix that gives the best model for that same budget. Chinchilla is the name of a 2022 research paper, and of the 70 billion parameter model that paper trained.

Think of a bank opening a new branch with a fixed budget. Hire ten tellers and no loan officers, and the bank has plenty of counter staff but nobody to make loans, so it earns little. Balance the staff, and the same money serves more customers. In AI, a huge model that sees too little text is the same kind of lopsided team: it has the room to learn, but not the material.

- **Compute budget:** The total computing power and time a training run can use.
- **Parameters:** The numbers inside a model that it adjusts while it learns. Also called weights.
- **Tokens:** The small pieces of text a model reads in training, roughly a word or part of one.
- **Undertrained:** A model that is large, but saw too little text to learn its size properly.

## Why did the 2022 Chinchilla paper change the advice?

In 2020, Kaplan and colleagues, in a paper on scaling laws, found the most efficient use of compute was a very large model on a modest amount of text, stopped well before it fully learned that text. The Chinchilla paper notes that many of the recently trained large models were trained on around 300 billion tokens.

*Diagram, One fixed budget, two ways to spend it: A fixed budget can go two ways. The 2020 advice put it into a big model with modest text. The 2022 Chinchilla finding grew size and text together, and the smaller, well-trained model did better on the same budget.*
1. Put the money into a bigger model first.
2. Split the same money so size and text grow together.
3. The big model gets too little text to learn from.
4. The same budget gives a smaller model that does better.

The paper's headline result is simple: scale size and text together, so that for every doubling of model size, you double the training tokens. The authors tested this on over 400 models, from 70 million to over 16 billion parameters, trained on 5 to 500 billion tokens.

> "for compute-optimal training, the model size and the number of training tokens should be scaled equally: for every doubling of model size the number of training tokens should also be doubled" (Chinchilla paper, 2022)
>
> "optimally compute-efficient training involves training very large models on a relatively modest amount of data and stopping significantly before convergence" (Kaplan and colleagues, 2020)

Then they tested it with a model. Chinchilla had 70 billion parameters and 1.4 trillion tokens. It used the same compute budget as Gopher, which had 280 billion parameters, and it outperformed Gopher.

The authors' word for the older models is undertrained: they were large, but had seen too little text to learn from. That is the same problem the rule is built to avoid.

## How do you check the rule before you buy compute?

Here is the check I would run. Say a health insurer holds 30 billion tokens of clean claim notes, with names removed. The team wants a model, and the question is how big it can be before the text runs out.

Chinchilla's own model gives a rough ratio: 1.4 trillion tokens for 70 billion parameters is about 20 tokens for each parameter. It comes from one paper's fit, so treat it as a starting point and test the result. The ratio is about spending a training budget well, so using it to size a model from a fixed text supply is a rough guide.

```python
# Made-up numbers: a health insurer's archive of clean claim notes.
CLEAN_TOKENS_B = 30  # billions of clean tokens the team holds
TOKENS_PER_PARAM = 20  # rough ratio from Chinchilla's 70B model on 1.4T tokens

for params_b in (1.5, 7, 14):
    need_b = params_b * TOKENS_PER_PARAM
    gap_b = need_b - CLEAN_TOKENS_B
    if gap_b <= 0:
        print(f"{params_b:>4}B parameters need {need_b:>4.0f}B tokens: enough data")
    else:
        print(f"{params_b:>4}B parameters need {need_b:>4.0f}B tokens: short by {gap_b:>4.0f}B")
```

Output:

```text
 1.5B parameters need   30B tokens: enough data
   7B parameters need  140B tokens: short by  110B
  14B parameters need  280B tokens: short by  250B
```

So the insurer's text supports a model of about 1.5 billion parameters. A 7 billion model would need 140 billion tokens, 110 billion more than the team holds. Training it on the same 30 billion tokens would leave it undertrained, the same problem the 2022 paper found.

*Diagram, Size the model to the text you hold: The insurer starts from the 30 billion tokens it holds and divides by about 20 to get a model near 1.5 billion parameters. A 7 billion model would need 140 billion tokens, so on this text it would be undertrained.*
1. The team starts from the text it can use.
2. Dividing gives a model of about 1.5 billion parameters.
3. A 7 billion model would need far more text than it has.

The team could still pick the 7 billion model. Then it should find more clean text, or say plainly that the model is undertrained.

## Where does the rule stop?

The rule answers one question: what is the best model for this training budget? It doesn't answer what is cheapest to run for years. Training is paid once. Serving a model is paid on every request, so for heavy use that bill can outgrow the training bill.

The Chinchilla paper points the same way. A smaller model needs less compute for fine-tuning and inference, which helps anyone who uses it. So a team that expects heavy use often trains a smaller model on more text than the rule suggests, and accepts the extra training cost.

- **Text supply:** The rule needs enough clean text. When that runs short, the budget stops paying off as well.
- **A fit to past runs:** The numbers come from fitting curves to runs across over 400 models. A new data mix or model design can shift them, so re-check before you rely on them.
- **Training is paid once:** The rule weighs the training bill only. Plan the serving bill next to it.

> **Tip:** In an interview, say the idea first (grow size and text together), then the check you would run, then the limits. That order shows you can use the rule, and where it breaks.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: spend a fixed budget so model size and training text grow together.
- [ ] The 2022 Chinchilla finding, and the 2020 advice it changed.
- [ ] A worked check: tokens for the size, with the ratio called rough.
- [ ] The limits: text supply, and serving cost after training.
- [ ] Honesty that the rule is a fit to past runs, not a fixed number.

**Common traps**

- Trap: "Bigger models are always better, so train the biggest one you can afford." Better: A bigger model only wins if it has the text to learn from. Check the tokens per parameter first.
- Trap: "Chinchilla proved that 20 tokens per parameter is the law." Better: It's a rough ratio from one model and a fit to many runs. Quote the idea, and flag the ratio as rough.
- Trap: "Always train a small model on lots of data." Better: That ignores the training bill. Small models on huge text pay off mainly with heavy, long use.

## Can you spot the mistake?

**Spot the mistake:** A slide for the claims team proposes the next model. The last model had 7 billion parameters and was trained on 30 billion tokens. Which line is the mistake?

A. Budget: 400,000 GPU hours for one training run.
B. Plan: double the model to 14 billion parameters.
C. Text: keep the same 30 billion clean tokens as before.
D. Check: compare the test score on held-out claim notes to the last model.

**Answer:** C. Under the compute-optimal rule, doubling the model means doubling the text. A 14 billion model needs about 280 billion tokens, so 30 billion leaves it 250 billion short.

**Quick check:** A bank's fraud team has 30 billion clean tokens and has not picked a model size yet. Which plan follows the compute-optimal idea?

A. Train a 14 billion parameter model on the 30 billion tokens, one pass
B. Train about a 1.5 billion parameter model on the 30 billion tokens
C. Train the largest model the budget allows, and worry about the text later
D. Use a 14 billion parameter model, because bigger always beats smaller

**Answer:** B. At about 20 tokens per parameter, 30 billion tokens suit a model near 1.5 billion parameters. Bigger only wins when the text can fill it.

## Can you answer these from memory?

**Flash cards**

- **What is compute-optimal training?** Spending a fixed budget so model size and training text grow together.
- **What did the 2020 advice favour?** Very large models on a modest amount of text, stopped well before convergence.
- **What did the 2022 Chinchilla paper find?** Many large models were undertrained. Size and text should scale equally.
- **Chinchilla's size and data?** 70 billion parameters on 1.4 trillion tokens, beating Gopher at 280 billion.
- **What is the rough ratio?** About 20 training tokens for each parameter. One paper's fit, so treat it as rough.
- **Where does the rule stop?** It weighs training cost only. Heavy serving may favour a smaller model.

## Likely follow-up questions

- Q019 What are scaling laws? https://designervenkat.online/interview/ai/what-are-scaling-laws
- Q018 What are parameters (weights)? https://designervenkat.online/interview/ai/what-are-parameters-weights
- Q016 Pretraining vs fine-tuning vs instruction tuning? https://designervenkat.online/interview/ai/pretraining-vs-fine-tuning-vs-instruction-tuning
- Q028 What is test-time compute? https://designervenkat.online/interview/ai/what-is-test-time-compute
- Q026 What is a Mixture-of-Experts model? https://designervenkat.online/interview/ai/what-is-a-mixture-of-experts-model
