# Chinchilla (2022)

> For a fixed compute budget, train a smaller model on more data; 70 billion parameters on 1.4 trillion tokens beat models four times its size.

Page: https://mralbu.github.io/ai-datasets/p/chinchilla

## Key facts

- Title: Training Compute-Optimal Large Language Models
- Authors: Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al.
- Venue: NeurIPS 2022
- Category: LLMs
- Paper: https://www.alphaxiv.org/abs/2203.15556

## Why it matters

Earlier scaling laws said to spend extra compute mostly on parameters, so GPT-3 and its successors were large and under-trained, all on about 300B tokens. Chinchilla shifted the field to far more data and smaller models that are cheaper to run, and "Chinchilla-optimal" became the reference point later models deliberately trained past.

## The idea

Train many models of different sizes on different amounts of text and, for each compute budget, find the split that gives the lowest loss. Parameters and data turn out to matter equally: every time the model doubles in size, its training tokens should double too, about 20 tokens per parameter.

## The result

Chinchilla, 70B parameters on 1.4T tokens, used the same compute as the 280B-parameter Gopher and beat it, GPT-3 and Megatron-Turing NLG across the board: 67.5% on MMLU against Gopher's 60.0%, and a WikiText-103 perplexity of 7.16 against 7.75.

## The data

- [MMLU (2020)](https://mralbu.github.io/ai-datasets/d/mmlu.md): 15,908 four-option exam questions, from high-school math to law and medicine.
- [WikiText-103 (2016)](https://mralbu.github.io/ai-datasets/d/wikitext.md): 103 million words from 28,475 good and featured Wikipedia articles, kept whole.
- [HellaSwag (2019)](https://mralbu.github.io/ai-datasets/d/hellaswag.md): Pick the most plausible ending for a video caption or how-to step. Easy for people, hard for 2019 models.
- [TruthfulQA (2021)](https://mralbu.github.io/ai-datasets/d/truthfulqa.md): 817 questions written so that the popular answer is false.
- [Natural Questions (2019)](https://mralbu.github.io/ai-datasets/d/natural-questions.md): Real Google search questions, each answered by an annotator with a paragraph and a short span from Wikipedia.
- [C4 (2019)](https://mralbu.github.io/ai-datasets/d/c4.md): The Colossal Clean Crawled Corpus: 365 million English web pages, filtered with simple rules.

## Builds on

- [GPT-3 (2020)](https://mralbu.github.io/ai-datasets/p/gpt-3.md)

## Led to

- [LLaMA (2023)](https://mralbu.github.io/ai-datasets/p/llama.md)

## Part of

- [Scaling language models](https://mralbu.github.io/ai-datasets/t/llm-scaling.md) (step 4 of 5)
