Compute-optimal training

Compute-optimal training means splitting a fixed computing budget between model size and amount of training data so as to get the best model; DeepMind's 2022 Chinchilla study set the best-known rule.

Anyone training a language model has a fixed amount of computing to spend, and must decide how to divide it. A bigger model with more parameters can learn more, but each step costs more; more training data gives the model more to learn from, but takes more steps. Compute-optimal training is the split that gives the lowest error for the budget. The answer comes from scaling laws, empirical formulas fitted to many training runs.

Early answers favoured size. A January 2020 paper by Jared Kaplan and colleagues concluded that the most efficient use of compute was to train very large models on a relatively modest amount of data, stopping well before they converged. In March 2022, Jordan Hoffmann and colleagues at DeepMind published Training Compute-Optimal Large Language Models, which trained over 400 models from 70 million to more than 16 billion parameters on 5 to 500 billion tokens. Their finding was that model size and training data should grow together: for every doubling of parameters, double the tokens. By that measure, the large models of the day were significantly undertrained.

They tested the claim with Chinchilla, a 70 billion parameter model trained on 1.4 trillion tokens, using the same compute budget as their earlier 280 billion parameter Gopher, which had seen 300 billion tokens. Chinchilla outperformed Gopher, GPT-3 and larger models on a wide range of tasks, and as a smaller model it was also cheaper to run. Its ratio, about 20 training tokens per parameter, became a widely quoted rule of thumb.

The rule optimises the cost of training only, and later practice moved past it. A December 2023 paper by Nikhil Sardana and colleagues showed that when a model will answer very many requests, around a billion or more, it pays to train a smaller model on far more data than Chinchilla-optimal, because the savings at inference outweigh the extra training. Meta made the same point in April 2024: it said the Chinchilla-optimal amount of data for an 8 billion parameter model was about 200 billion tokens, yet trained Llama 3 on over 15 trillion and found performance still improving.

So when a story calls a model compute-optimal or overtrained, it is describing a choice about where to spend money, not a verdict on quality. The Chinchilla authors also concluded that more attention should go to scaling up training data, and that bigger datasets help only when the data is of high quality, one reason data now features alongside chips as a constraint on AI progress.

Common questions

What is Chinchilla scaling?

It refers to the finding of DeepMind's 2022 study that, for a fixed compute budget, a language model's parameter count and number of training tokens should be increased in equal proportion. The study's Chinchilla model used about 20 tokens of training data per parameter and outperformed much larger models trained on less data.

What does compute-optimal mean?

It means getting the lowest possible training loss for a given amount of computation by choosing the right balance between model size and the amount of training data. It does not account for the cost of running the model afterwards.

Why do companies train models beyond the Chinchilla-optimal point?

Because a model is trained once but used millions of times. A smaller model trained on much more data can match a larger one while being cheaper and faster to run. Meta trained its 8 billion parameter Llama 3 model on over 15 trillion tokens, about 75 times its Chinchilla-optimal amount, and reported continued gains.

Is the Chinchilla rule still valid?

Its core finding, that data and parameters should scale together for a fixed training budget, is widely accepted. The exact ratio depends on the data, the architecture and the fitting method, and modern practice deliberately departs from it when inference costs matter.

Finding more

Search for "Chinchilla scaling laws", "compute-optimal language models", "tokens per parameter" or "inference-aware scaling laws" to follow the debate. The original papers on arXiv and model developers' technical reports and announcements give the actual figures. Be cautious with secondary articles that quote a single ratio as a law, since the best split depends on the purpose and the costs being counted.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.