Training Compute-Optimal Large Language Models
Jordan Hoffmann et al. · NeurIPS 2022
arXiv:2203.15556
In short
After training over 400 models, the authors find that for a fixed compute budget, parameters and training tokens should grow together, and that the large models of the day were badly undertrained. Their 70B-parameter Chinchilla, trained on four times more data, beat the 280B Gopher.
Why it matters
It reset how labs size their models: data matters as much as parameter count.
Read first
The 4 Field Guide ideas this paper leans on.
Starting from scratch? The full route 20 ideas · basics first
- Natural Language Processing ✓ understood
The field of AI that lets computers read, interpret, translate and generate human language, from spam filters and search to chatbots.
- Token ✓ understood
The unit of text a language model reads and writes: a word, part of a word, or a character, drawn from the model's fixed vocabulary.
- Tokenization ✓ understood
Splitting text into tokens, usually subword pieces, and mapping each to an integer ID so a language model can process it.
- Language Modeling ✓ understood
Assigning probabilities to sequences of text, in practice by predicting each next token from the ones before it; the objective behind large language models.
- Dataset ✓ understood
A collection of data examples used for training, validating, or testing machine learning models.
- Training ✓ understood
The process of fitting a model to data by repeatedly measuring how wrong its outputs are and adjusting its parameters to reduce that error.
- Machine Learning ✓ understood
Building systems that learn patterns from data instead of following hand-written rules, getting better at a task as they see more examples.
- Unsupervised Learning ✓ understood
Learning from unlabeled data to discover hidden patterns, structures, or relationships without explicit target outputs.
- Self-Supervised Learning ✓ understood
Training on unlabeled data by making the data supply its own answers: hide or alter part of an input and have the model predict or match it.
- Pre-training · read first ✓ understood
Training a model on a large dataset (often self-supervised) before fine-tuning on specific tasks, enabling transfer learning.
- Feature ✓ understood
A single measurable property of an example, such as a house's floor area or how many links an email contains, used as an input to a model.
- Neural Network ✓ understood
A model built from layers of simple units, each taking a weighted sum of its inputs and applying a nonlinearity; training adjusts the weights so the whole stack maps inputs to useful outputs.
- Deep Learning ✓ understood
A subset of machine learning that uses neural networks with multiple layers (deep neural networks) to learn hierarchical representations of data.
- Representation Learning ✓ understood
Letting a model learn its own internal description of the data, such as embeddings or layered visual features, instead of relying on features designed by hand.
- Embedding ✓ understood
A list of numbers (a vector) that represents a word, sentence, image or other item, learned so that similar items end up close together.
- Attention Mechanism ✓ understood
A technique that lets a neural network weigh every part of its input when producing each output, focusing on the parts most relevant at that step.
- Transformer ✓ understood
A neural network architecture, introduced in 2017, built from stacked self-attention and feed-forward layers; the basis of nearly every modern large language model.
- Large Language Model · read first ✓ understood
A neural network, almost always a transformer, trained on vast amounts of text to predict the next token, which lets it write, answer, summarize and follow instructions.
- Compute · read first ✓ understood
Informal term for computational resources (GPUs, TPUs, time) required for training or running AI models.
- Neural Scaling Laws · read first ✓ understood
Empirical relationships showing how model performance improves predictably with model size, data, and compute.