Curriculum · Unit 7 · Scale
Why did everyone bet on bigger, and how much bigger is the right size?
Around 2020, researchers noticed that language models get better in a strikingly regular way as you feed them more computing power. That regularity made "build it bigger" a plan you could forecast and budget for. Two years later, a second study showed that most labs had been spending that budget a little lopsidedly.
Nib says: Two toys here. In the first, drag the slider (or press +10×) to pour more compute into training and watch the loss fall by the same step every time. In the second, the budget is fixed: slide between a big model with little data and a small model with lots of data, and hunt for the spot where the beam balances. Curves marked illustrative show the shape of the idea, not a real model's numbers.
Toy 1 · The scaling curve
Every 10× buys the same step down
Loss is how wrong the model's next-token guesses are on text it hasn't seen. Lower is better. Both axes are logarithmic, so each gridline is ten times the last.
Illustrative power law: loss = 4 × (compute ÷ 10¹⁸)−0.05. Real curves are measured on many models and are noisier. The GPT-3 compute mark is real; the loss values are not.
Toy 2 · The Chinchilla balancer
Same budget, different split
The compute budget is fixed at about 6 × 10²³ FLOPs, roughly what DeepMind spent on each of Gopher and Chinchilla. Since compute ≈ 6 × parameters × tokens, a bigger model means fewer training tokens, and the reverse.
Illustrative curve with the form Hoffmann et al. fit, L = E + A/Nα + B/Dβ, with constants chosen so the low point sits at 20 tokens per parameter. The parameter and token counts follow from C = 6ND; the loss values are made up, and the bottom of the curve is zoomed in.
The idea in plain words
In 2020, Jared Kaplan and colleagues at OpenAI measured something unusually tidy. As they trained bigger language models, on more text, with more computing power, the test loss fell along a smooth power law: a straight line on a log-log chart, holding across a huge range of sizes. These scaling laws meant you could train a few small models, draw the line, and predict roughly how good a model a hundred times bigger would be before you spent the money.
Later that year, GPT-3 showed what the bet could buy. With 175 billion parameters, it could often pick up a new task from a few examples typed into the prompt, with no extra training at all. The paper called this few-shot learning, and it made many people take "just make it bigger" seriously.
A handy rule of thumb ties the pieces together: training compute is about 6 × parameters × training tokens, counted in FLOPs. So once your budget is set, you face a choice. Spend it on a bigger brain that reads less, or a smaller brain that reads more?
In 2022, Jordan Hoffmann and colleagues at DeepMind trained hundreds of models to answer that, and found that model size and data should grow together, roughly in step. The rule people quote is about 20 training tokens per parameter. Their 70-billion-parameter Chinchilla, trained on about 1.4 trillion tokens, beat their own 280-billion-parameter Gopher, which used the same compute but read only about 300 billion tokens. Many earlier giants, it turned out, were oversized and underfed.
Scale also changed what AI is as an industry. Bigger runs need warehouses of GPUs, fast memory, power lines and cooling, mostly rented from hyperscalers. That's why AI news is now also chip, data center and electricity news. Nib's Mountain and the Goblin Guide to AI Infrastructure show you the hardware behind those FLOPs.
The back-of-the-envelope formula
Compute ≈ 6 × N × D
N is the number of parameters and D is the number of training tokens. The 6 is roughly 2 operations per parameter per token to run the model forward, plus about 4 more to work out how to adjust it.
| Model (year) | N | D | 6ND | D ÷ N |
|---|---|---|---|---|
| GPT-3 (2020) | 175B | 300B | 3.2×10²³ | ≈2 |
| Gopher (2021) | 280B | 300B | 5.0×10²³ | ≈1 |
| Chinchilla (2022) | 70B | 1.4T | 5.9×10²³ | 20 |
Rough estimates from the formula; the papers report slightly different totals. Many labs now deliberately train smaller models on far more than 20 tokens per parameter, because a smaller model is cheaper to run for millions of users. Chinchilla's rule is about the cheapest way to reach a given loss during training, not the whole bill.
Three things to keep
- 1
Bigger got better, predictably. Loss falls as a power law in compute, so each 10× buys a similar step, and labs could forecast the payoff before paying for it.
- 2
Grow the model and the data together. For a fixed budget, Chinchilla showed a smaller model trained on more text can win. The popular rule is about 20 tokens per parameter.
- 3
Compute ≈ 6 × parameters × tokens. That one line turns model plans into chip orders and power bills, which is why AI became an infrastructure story.
Check yourself
A lab multiplies its training compute by 10. What does a scaling law let it predict?
Roughly how much the test loss will drop: about the same fraction as the last 10× bought. It doesn't promise a model that is "ten times smarter," and it says little about exactly which new skills will appear.
Same budget, two plans: a 280B model on 300B tokens, or a 70B model on 1.4T tokens. Which did Chinchilla find works better, and why?
The smaller model trained on more data. The big model was undertrained for its size: with a fixed budget, it's better to balance parameters and tokens, roughly 20 tokens per parameter, than to pour everything into size.
Using compute ≈ 6ND, about how much compute does it take to train a 1-billion-parameter model on 20 billion tokens?
6 × 10⁹ × 2×10¹⁰ = 1.2 × 10²⁰ FLOPs. That's about five thousand times less than Chinchilla's run, and it also happens to be exactly 20 tokens per parameter.
Go deeper
- ★ Paper · 2020 · Kaplan, McCandlish et al. (OpenAI)
Scaling Laws for Neural Language Models
The original straight lines on log-log paper: loss against model size, data and compute.
Read on arXiv ↗ - ★ Paper · 2022 · Hoffmann et al. (DeepMind)
Training Compute-Optimal Large Language Models (Chinchilla)
Hundreds of training runs to find the best split between parameters and tokens.
Read on arXiv ↗ - Paper · 2020 · Brown et al. (OpenAI)
Language Models are Few-Shot Learners (GPT-3)
175 billion parameters and the surprise of learning a task from examples in the prompt.
Read on arXiv ↗ - Paper · 2019 · Radford et al. (OpenAI)
Better Language Models and Their Implications (GPT-2)
The model before the scaling bet went big, and the first public worries about misuse.
Read the post ↗ - Video · about 4 hours · Andrej Karpathy
Let's reproduce GPT-2 (124M)
Train a real model the way the labs do, and feel what every FLOP costs.
Watch on YouTube ↗ - Augmented reality
Nib's Mountain
Visit the campus and chip stops to see what 10²⁵ FLOPs looks like as racks, power lines and fabs.
Start the expedition - Field guide
The Goblin Guide to AI Infrastructure
Chips, memory, power and the money behind the scaling bet.
Read the guide - Timeline
The transformer age
Attention, pretraining and the scaling bet, in order.
Open the timeline - Next · Unit 8
How does a text predictor become a helpful assistant?
Human preferences, then written principles, turn a raw model into something that follows instructions.
On to Unit 8