Why bigger worked
For a few years the surest way to build a better language model was to build a bigger one. What the scaling laws say, what they got wrong, and what they leave unexplained.
Most engineering gets harder to predict as it gets bigger. For a stretch around 2020, language models seemed to do the opposite. Take the same basic design, the Transformer, make it larger, feed it more text, and it got better by an amount you could estimate before you started.
That regularity shaped the years that followed. It is also easy to misread, so this essay looks at what was measured, what was later corrected, and what nobody has fully explained.
Eight sizes of one model
When OpenAI published GPT-3 in 2020, it trained not one model but eight.1 The smallest had 125 million parameters and the largest 175 billion, 1,400 times as many. All eight were trained on the same amount of text, 300 billion tokens, so the comparison is mostly about size.
The chart shows how they did on three tests. Each time, the model saw some worked examples in its prompt and then had to answer on its own.
On the plain axis, seven of the eight models are squeezed into the left edge, and the rest of the chart is one long line to a single point. Switch to the multiplying axis, where each step to the right multiplies the size, and two of the lines become fairly steady. Trivia rises at every size, from 7 percent to 71. So does finishing a passage, from 34 to 79.
That is the shape of the bargain. Each improvement costs a multiple of what the last one did. Progress is steady only if you are willing to keep multiplying.
The law
Test scores are a rough measure. Earlier the same year, a group at OpenAI had looked at something smoother: loss, which measures how surprised a model is by the next token of text it has not seen. They found that loss fell along a power law as they increased any of three things: the size of the model, the amount of text, or the compute spent on training.2
A power law means that multiplying the input by some amount always multiplies the output by the same amount. By their formulas, making a model ten times larger cut the loss by about 16 percent. Ten times the text cut it by about 20 percent. Ten times the compute, spent in the best way they could find, cut it by about 11. Each figure assumes the other ingredients are not holding things back.
Two things made this striking. The trends held over a huge range, about a millionfold in model size and more in compute. And most other choices hardly mattered: within reasonable limits, a model’s exact shape, such as how many layers or attention heads it had, made little difference next to its size.
Go deeper: the formulas
Write L for the loss, N for the number of parameters (leaving out the embeddings), D for training tokens and C for compute. Each law applies when that one ingredient is the bottleneck:
L ∝ N −0.076
L ∝ D −0.095
L ∝ C −0.050
The percentages above follow directly: 10−0.076 is about 0.84, so a tenfold increase in N leaves 84 percent of the loss. The exact numbers belong to one training set, WebText2, and one way of cutting text into tokens.
Loss is measured in nats. A loss of 2 means the model is, on average, about as uncertain as if it were choosing between e2, or roughly 7.4, equally likely tokens.
The correction
The 2020 paper also gave advice. With ten times the compute, it suggested making the model about 5.5 times larger but using only about 1.8 times as much text. Many large models that followed were trained on about 300 billion tokens, however big they were.
In 2022 a team at DeepMind repeated the experiment, training more than 400 models, and reached a different answer: model size and training text should grow together, in roughly equal proportions.3 To test it they built Chinchilla, with 70 billion parameters and 1.4 trillion tokens of text. Their earlier model Gopher, trained with about the same compute, had 280 billion parameters and 300 billion tokens.
Chinchilla was a quarter of the size, and it beat Gopher and the larger GPT-3 across a wide range of tests. So “bigger” was never quite the right word. What paid off was more compute, divided sensibly between a larger model and more reading.
The jump
Go back to the chart and look at the third line. The first six models never get past 12 percent at two-digit addition. Then the score goes to 56 and to 100 in two steps. Little in the earlier scores seems to warn you.
Researchers gave the name emergent abilities to skills like this, absent in smaller models, present in larger ones, and not predictable by extending the trend.4 If scale can produce abilities without warning, that is exciting and worrying in equal measure.
A 2023 paper argued that many of these jumps come from how we keep score.5 Suppose an answer is five tokens long, each token is right or wrong independently of the rest, and the answer only counts if every one is right. A model that gets each token right half the time succeeds about 3 percent of the time. At 80 percent per token it succeeds 33 percent of the time, and at 95 percent, 77. The skill improves smoothly, but the score leaps. The authors tested this on harder sums than the ones in the chart, four-digit addition and two-digit multiplication. When they gave partial credit, the sharp jumps smoothed out.
That does not make the jump unreal for anyone who needs the sum to be right. It does mean a sudden score is not proof of a sudden change inside the model.
Why, though?
The scaling laws describe a pattern. They do not say why it exists. There are theories, but no agreed explanation of why loss should follow such a clean curve, or why guessing the next token a little better should also improve trivia and arithmetic.
Nor can the curve go on forever. Language is partly unpredictable, so there is a floor that no model can get below, and the 2020 authors said plainly that their trends must eventually level off. And a lower loss is only a means to an end. The law predicts how surprised a model will be. It does not predict which skills will follow, or whether the result will be truthful or useful.
So the title of this essay promises a little too much. We know that bigger worked, and roughly how much it cost. Why it worked is still an open question.
- Brown et al., “Language Models are Few-Shot Learners” (2020). ↩
- Kaplan et al., “Scaling Laws for Neural Language Models” (2020). ↩
- Hoffmann et al., “Training Compute-Optimal Large Language Models” (2022). ↩
- Wei et al., “Emergent Abilities of Large Language Models” (2022). ↩
- Schaeffer, Miranda and Koyejo, “Are Emergent Abilities of Large Language Models a Mirage?” (2023). ↩