Overtraining

Overtraining is training a language model on far more data than the compute-optimal amount for its size, paying more up front to get a smaller model that is cheaper to run.

The benchmark here is DeepMind's Chinchilla paper, first posted in March 2022. Its authors trained more than 400 models and concluded that, for a fixed training budget, model size and training data should grow together: double the parameters, double the tokens. They tested this with Chinchilla, a 70 billion parameter model trained on 1.4 trillion tokens, which beat the four-times-larger Gopher trained with the same compute. That works out at about 20 tokens per parameter, a ratio later researchers treat as roughly compute-optimal.

Compute-optimal means the best model for a given training bill. It ignores what happens next: a model is trained once but run millions of times, and a smaller model is cheaper to run on every request. Overtraining deliberately pushes past the Chinchilla ratio, training a smaller model on far more data than the rule suggests, so that it reaches a given quality with fewer parameters.

Meta's Llama 3 is the standard example. When it launched in April 2024, Meta said the Chinchilla-optimal amount of data for an 8 billion parameter model was about 200 billion tokens, yet it trained the model on more than 15 trillion, around 75 times as much, and performance kept improving log-linearly the whole way. That is roughly 1,900 tokens per parameter.

Researchers have since folded running costs into the maths. A paper by Nikhil Sardana and colleagues, presented at ICML 2024, recalculated scaling laws to include inference and found that anyone expecting heavy use, around a billion requests, should train models smaller and longer than Chinchilla-optimal; in their experiments quality kept improving up to 10,000 tokens per parameter, though by less than standard scaling laws predict. Samir Gadre and colleagues showed in March 2024 that the loss of over-trained models can be forecast from much cheaper runs: they predicted a 1.4 billion parameter model trained on 900 billion tokens, 32 times over-trained, using experiments that needed about 300 times less compute.

Overtraining is not overfitting. Overfitting is a model learning its training data too closely and doing worse on new data; overtraining in the scaling sense is a budget decision about how much data to feed a model of a given size. When a lab releases a small model trained on many trillions of tokens, it is choosing a bigger one-off training bill in exchange for cheaper answers.

Common questions

What does Chinchilla-optimal mean?

It refers to the 2022 Chinchilla paper's finding that, for a fixed training budget, model size and training tokens should grow at the same rate. In practice that is about 20 tokens of training data per parameter, so a 70 billion parameter model would see about 1.4 trillion tokens.

Is overtraining bad?

Not in this sense. It is a deliberate trade: more training compute in return for a smaller model that is cheaper and faster to run. It should not be confused with overfitting, where a model memorises its training data and generalises poorly.

Why train small models on so much data?

Because running a model costs money on every request, and a smaller model costs less. If a model will serve huge numbers of users, spending extra on training to make a smaller model as capable as possible pays off over its lifetime.

How many tokens per parameter do modern models use?

Far more than 20. Meta trained the 8 billion parameter Llama 3 on more than 15 trillion tokens, close to 1,900 per parameter, and research has tested ratios up to 10,000 tokens per parameter.

Finding more

Search for "Chinchilla optimal", "tokens per parameter", "inference-aware scaling laws" or "over-trained language models" to follow the debate about how long to train models. The most reliable sources are the scaling-law papers on arXiv and model developers' own technical reports and launch posts, which state parameter counts and token totals. Be careful with token counts quoted without a source, since some include repeated passes over the same data.

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.