Training Compute-Optimal Large Language Models

Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford and 16 more

Published
Lab
DeepMind
Code
GitHub
Citations
4,149

TL;DR

For a fixed compute budget, model size and training tokens should scale together: double the parameters, and double the tokens. Chinchilla (70B) used the same compute as Gopher but much more data, and beat much larger models.

Read this as a

Why builders care

Editor's note

Many large models were undertrained because data was held constant while size grew. A smaller model trained on enough tokens can outperform a bigger one and is cheaper to fine-tune and run.

How to apply it

Editor's note
  1. 1When you plan a training run, scale tokens with parameters rather than only making the model bigger on a fixed corpus.
  2. 2Prefer a compute-optimal smaller model if you care about fine-tuning and inference cost. Chinchilla used substantially less of both than the larger models it outperformed.
  3. 3On MMLU, Chinchilla reached a state-of-the-art average accuracy of 67.5%, greater than a 7% improvement over Gopher.

Code

Verified link

Practical notes

AI-generated
  • Scale training tokens with parameters rather than only making the model bigger on a fixed corpus.
  • Prefer a compute-optimal smaller model if you care about fine-tuning and inference cost.

Key results

From the abstract
  1. 1

    By training over 400 language models ranging from 70 million to over 16 billion parameters on 5 to 500 billion tokens, we find that 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.

  2. 2

    We test this hypothesis by training a predicted compute-optimal model, Chinchilla, that uses the same compute budget as Gopher but with 70B parameters and 4 more more data.

  3. 3

    Chinchilla uniformly and significantly outperforms Gopher (280B), GPT-3 (175B), Jurassic-1 (178B), and Megatron-Turing NLG (530B) on a large range of downstream evaluation tasks.

  4. 4

    As a highlight, Chinchilla reaches a state-of-the-art average accuracy of 67.5% on the MMLU benchmark, greater than a 7% improvement over Gopher.

  • We investigate the optimal model size and number of tokens for training a transformer language model under a given compute budget.
  • We find that current large language models are significantly undertrained, a consequence of the recent focus on scaling language models whilst keeping the amount of training data constant.

We investigate the optimal model size and number of tokens for training a transformer language model under a given compute budget. We find that current large language models are significantly undertrained, a consequence of the recent focus on scaling language models whilst keeping the amount of training data constant. By training over 400 language models ranging from 70 million to over 16 billion parameters on 5 to 500 billion tokens, we find that 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. We test this hypothesis by training a predicted compute-optimal model, Chinchilla, that uses the same compute budget as Gopher but with 70B parameters and 4 more more data. Chinchilla uniformly and significantly outperforms Gopher (280B), GPT-3 (175B), Jurassic-1 (178B), and Megatron-Turing NLG (530B) on a large range of downstream evaluation tasks. This also means that Chinchilla uses substantially less compute for fine-tuning and inference, greatly facilitating downstream usage. As a highlight, Chinchilla reaches a state-of-the-art average accuracy of 67.5% on the MMLU benchmark, greater than a 7% improvement over Gopher.

Everything on this page is written from this abstract. For methods and full results, read the paper PDF.

Ask the paper

Answers come from the paper summary and abstract.

Ask anything about “Training Compute-Optimal Large Language Models”, or start with one of these:

Closest matches across the feed and every collection, by shared words in titles, topics and abstracts.