An Empirical Analysis of Compute-Optimal Large Language Model Training

Abstract

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$\times$ more data. Chinchilla uniformly and significantly outperformsGopher (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, a 7% improvement over Gopher.

Cite

Text

Hoffmann et al. "An Empirical Analysis of Compute-Optimal Large Language Model Training." Neural Information Processing Systems, 2022.

Markdown

[Hoffmann et al. "An Empirical Analysis of Compute-Optimal Large Language Model Training." Neural Information Processing Systems, 2022.](https://mlanthology.org/neurips/2022/hoffmann2022neurips-empirical/)

BibTeX

@inproceedings{hoffmann2022neurips-empirical,
  title     = {{An Empirical Analysis of Compute-Optimal Large Language Model Training}},
  author    = {Hoffmann, Jordan and Borgeaud, Sebastian and Mensch, Arthur and Buchatskaya, Elena and Cai, Trevor and Rutherford, Eliza and de Las Casas, Diego and Hendricks, Lisa Anne and Welbl, Johannes and Clark, Aidan and Hennigan, Thomas and Noland, Eric and Millican, Katherine and van den Driessche, George and Damoc, Bogdan and Guy, Aurelia and Osindero, Simon and Simonyan, Karén and Elsen, Erich and Vinyals, Oriol and Rae, Jack and Sifre, Laurent},
  booktitle = {Neural Information Processing Systems},
  year      = {2022},
  url       = {https://mlanthology.org/neurips/2022/hoffmann2022neurips-empirical/}
}