Skip to Content
Chapter 4

Scaling: Bigger is different

Tomas Reimers 14 minute read

In 2019, Rich Sutton, one of the fathers of reinforcement learning, published a short, grumpy essay called The Bitter Lesson . Its thesis: seventy years of AI history show that general methods that leverage more computation always, eventually, beat clever methods that encode human knowledge. Researchers hate this, because it means the craft they love loses to whoever buys more compute. They have also, repeatedly, been unable to refute it.

The transformer era is the bitter lesson’s greatest vindication. Chapter 3’s architecture is almost aggressively generic — identical blocks, no linguistic structure baked in. This chapter is about the discovery that turned “just make it bigger” from a hope into a quantitative engineering discipline:

  1. Loss falls as a power law in model size, data, and compute — straight lines on log-log plots that you can fit on cheap runs and extrapolate to expensive ones. Capability became predictable.
  2. A fixed compute budget must be split between a bigger model and more data, and there is a measured answer (Chinchilla’s ~20 tokens per parameter), which the industry then deliberately violates in one direction, for a good reason.
  3. Loss falls smoothly, but capabilities arrive in lurches (emergence), and when the data that feeds the power laws runs short, the field finds new axes to scale.

And because these laws are working tools, we’ll use them. Here is the running example: someone hands you a cluster of 1,000 GPUs for one month and tells you to train the best model you can. By the end of the chapter you will have planned the entire run (budget, model size, dataset size, expected loss) without training anything.

Three numbers describe a training run

Any training run is summarized by three numbers:

  • NN — parameters: the count of weights in the model. GPT-2: 124M (we counted them at the end of Chapter 3). GPT-3: 175B.
  • DD — training tokens: how much text the model sees, measured after tokenization (Chapter 2). GPT-3: ~300B tokens.
  • CC — compute: the total work executed during training, counted in FLOPs: floating-point operations, where one FLOP is a single multiply or add of two numbers. (Careful with the units: FLOPs is a count of operations; a chip’s speed is FLOPs per second, often written FLOP/s. A training run costs 10²⁴ FLOPs the way a trip costs 500 miles — how fast you cover them is the hardware’s problem, and Chapter 10’s subject.)

These aren’t independent. Each training token costs a fixed amount of work proportional to the model’s size, and the total is well-approximated by a rule of thumb you will see everywhere in this field:

C≈6⋅N⋅D\tip{total training compute in FLOPs}{C} \approx 6 \cdot \tip{parameters}{N} \cdot \tip{training tokens}{D}

Where does the 6 come from?

Count the work per token, one weight at a time. In the forward pass, a weight ww connecting an activation aa to an output does exactly one multiply and one add (out+=w⋅a\text{out} \mathrel{+}= w \cdot a): 2 FLOPs per weight, so a forward pass costs about 2N2N FLOPs per token. Now recall what Chapter 1’s backward pass computes at that same connection: two things, not one. It needs the gradient with respect to the input (w⋅∂L/∂outw \cdot \partial L/\partial \text{out} — passing the signal backward through the multiplication, to keep the chain rule going into earlier layers), and the gradient with respect to the weight itself (a⋅∂L/∂outa \cdot \partial L/\partial \text{out} — the number gradient descent will actually use to update ww). Each is its own multiply-add. Two jobs where the forward pass had one: 4N4N FLOPs. Total: 2N+4N=6N2N + 4N = 6N per token, times DD tokens. The approximation ignores attention’s score computation, which is why it’s an approximation — but for realistic context lengths the parameter term dominates, and everyone from research papers to GPU procurement spreadsheets uses 6ND6ND.

Two sanity checks with real runs. GPT-3: 6×175B×300B≈3.15×10236 \times 175\text{B} \times 300\text{B} \approx 3.15 \times 10^{23} FLOPs, which matches the number in the paper. And your run: a modern GPU sustains on the order of 101510^{15} FLOPs per second at peak, so 1,000 GPUs × 30 days is

1,000×1015×2,592,000 s≈2.6×1024 FLOPs — at peak.1{,}000 \times 10^{15} \times 2{,}592{,}000 \text{ s} \approx 2.6 \times 10^{24} \text{ FLOPs — at peak.}

You will not run at peak. The fraction of theoretical FLOPs a training run actually achieves is called MFU (model FLOPs utilization), and a well-engineered run manages around 40% — the rest is lost to memory stalls, communication between GPUs, and everything else in the inference chapters (10 and 11). So your real budget is:

C≈2.6×1024×0.40≈1024 FLOPs.C \approx 2.6 \times 10^{24} \times 0.40 \approx 10^{24} \text{ FLOPs.}

The straight lines

Knowing your budget doesn’t tell you what it buys. In 2020, Kaplan et al.  at OpenAI answered that: they trained transformers at many sizes (all small enough to be affordable) and measured how the next-token loss (Chapter 2’s cross-entropy) fell as NN, DD, and CC grew. The result only shows up if you plot it right. The runs span a factor of a million in compute, so on ordinary axes everything cheap is crushed into the left margin; the fix is a log-log plot, where each tick on each axis means “×10” rather than “+10” (so the distance from 1 to 10 equals the distance from 10 to 100 — equal space per multiplication). Replotted that way, the measurements form a straight line, spanning many orders of magnitude without bending. And a straight line on log-log axes is a specific mathematical claim — it means the relationship is a power law:

L(N)≈(NcN)αN\tip{the loss you can expect at a given model size}{L(N)} \approx \left(\frac{\tip{a constant measured empirically}{N_c}}{\tip{the number of parameters}{N}}\right)^{\tip{the slope of the line — about 0.076 for parameters}{\alpha_N}}

Why a straight line means a power law.

Take the log of both sides of L=(Nc/N)αL = (N_c / N)^{\alpha}:

log⁡L  =  αlog⁡Nc−αlog⁡N\log L \; = \; \alpha \log N_c - \alpha \log N

In log coordinates that’s just y=b−αxy = b - \alpha x — a line, with the exponent α\alpha as its slope. The implication runs both ways: any power law plots straight on log-log axes, and data that stays straight across eight orders of magnitude can only be a power law. That’s why the figure’s slope is the law’s exponent, and why “fit the line” and “measure the scaling law” are the same operation. (Contrast the other curve engineers love: an exponential L=e−kNL = e^{-kN} plots straight on log-linear axes — log the y-axis only. Checking which plot straightens your data is a quick way to identify its growth regime.)

Fit the line on runs you can afford, and you know the loss of the run you can’t — before spending the money:

00.5e251e251.5e252e251.52.02.53.0← 5 training runs, all here10¹⁸10²⁰10²²10²⁴10²⁶1.52.02.53.0GPT-3 scalefrontiertraining compute (FLOPs)loss
plotted on ordinary axes, the experiments are unreadable — every affordable run is crushed against zero
The discovery that reorganized an industry: loss falls as a power law in training compute — a straight line on log-log axes — steady across eight orders of magnitude. Fit the line on cheap runs and the expensive run stops being a gamble. Every point here is computed from Kaplan et al.'s fitted compute law.

This is exactly how you de-risk your month. Before committing the cluster, you’d spend a few days training a ladder of small models (10M, 100M, 1B parameters, each a sliver of your budget), fit the line, and read off what loss 102410^{24} FLOPs should buy. If the eventual big run misses that number badly, something is wrong (a data bug, an instability), and you know it early. GPT-3, a 175B-parameter model that cost millions to train, was not a gamble; it was an interpolation along a line OpenAI had already measured. No plateau was in sight; the line just kept going. (Gwern’s The Scaling Hypothesis  is the best contemporaneous account of why this was such a shock to the field’s self-image.)

The law’s exponents are small: αN≈0.076\alpha_N \approx 0.076 for parameters, and the compute version (same form, L(C)=(Cc/C)αCL(C) = (C_c/C)^{\alpha_C}) is shallower still, with αC≈0.05\alpha_C \approx 0.05. To see what that costs, plug a 10× budget increase into it: L(10C)=L(C)×10−0.05≈0.89 L(C)L(10C) = L(C) \times 10^{-0.05} \approx 0.89 \, L(C). Ten times the money buys an 11% loss reduction, and because the law is a power law, the next 11% costs another 10×, forever. A shallow slope on a log-log plot means progress is real but priced in orders of magnitude, and that single fact explains the shape of the industry: the GPU shortages, the $100B datacenter announcements, the concentration of frontier training into a handful of labs. The saving grace is reliability — loss falls slowly but it falls dependably, and (as we’ll see below) fixed decrements of loss keep unlocking qualitatively new behavior.

Chinchilla: the exchange rate between size and data

Your budget is C≈6ND≈1024C \approx 6ND \approx 10^{24}, and that immediately poses a question the compute law can’t answer: should you train a bigger model (raise NN) or train longer (raise DD)? You can’t do both — the product is pinned.

Kaplan’s paper offered an answer (grow the model much faster than the data), and the answer was wrong (a methodological artifact in how the small runs were tuned, corrected below). In 2022, DeepMind’s Chinchilla paper  redid the measurement: train many models at fixed compute budgets (curves of constant FLOPs, called iso-FLOP curves), varying the NN-vs-DD split within each budget, and see where loss bottoms out. Every budget has a sweet spot, and the sweet spots line up (in the figure, each curve plots loss against model size for one budget; bigger budgets sit lower, buying less loss at every size):

1B10B100B1T2.02.12.22.32.4parameters N (log scale) — training tokens D = C / 6Nloss10²² FLOPs10²³10²⁴≈ 20 tokens/paramLlama 3 8B (1,875 tok/param)
Iso-FLOP curves from the (corrected) Chinchilla fit: each curve holds total training compute fixed and trades model size against training tokens. Every budget has a sweet spot, and the sweet spots line up at roughly 20 tokens per parameter. Llama 3 8B sits deliberately far left of its optimum: worse loss per training FLOP, bought on purpose, because a small model is cheaper on every token it will ever serve.

The compute-optimal rule of thumb: about 20 tokens of training data per parameter. The field had been training models far too large on far too little data: DeepMind’s own 280B-parameter Gopher saw just 300B tokens, barely one token per parameter. Chinchilla, a 70B model trained on 1.4T tokens (exactly the 20:1 ratio) for the same total compute, beat it across the board.

Now plan your run. Your budget, 102410^{24} FLOPs, is one of those curves, and its minimum sits at roughly N∗≈95BN^* \approx 95\text{B} parameters and D∗≈1.7TD^* \approx 1.7\text{T} tokens, about 18 tokens per parameter. (These numbers come from the Chinchilla loss formula, the corrected refit linked in Further reading, which is also what the figure plots; the fitted ratio drifts slightly from the 20:1 rule of thumb.) Expected loss: about 1.96. That is the compute-optimal plan: a 95B model, 1.7 trillion tokens, one month, done. In 2022 you would have stopped here.

But compute-optimal is only the right target if training cost is all you care about — and every served model has a second budget: inference. A smaller model is cheaper on every single token it ever generates (generating runs only the forward pass: ~2 FLOPs per weight, so about 2N2N per token). So the industry now deliberately over-trains, and the iso-FLOP curves show exactly what that move is. Chinchilla says an 8B model has “earned” only about 102210^{22} FLOPs — the small budget whose optimum is 8B, reached after 1022/(6×8B)≈208B10^{22} / (6 \times 8\text{B}) \approx 208\text{B} tokens (the corrected fit’s ratio at this scale: about 26 tokens per parameter, not 20). Over-training is refusing to stop there: keep the model size fixed and keep feeding it tokens, dropping the same point vertically onto lower and lower curves. Llama 3 took its 8B all the way to 15T tokens — 6×8B×15T≈7×10236 \times 8\text{B} \times 15\text{T} \approx 7 \times 10^{23} FLOPs, 72× the “earned” budget (and, conveniently, a run that fits your month):

10B100B2.02.12.22.3lossparameters N (log scale)10²² FLOPs (optimal for 8B)7.2×10²³ — Llama 3 8B's spendChinchilla-optimal for 8B: loss 2.14over-train: 72× the compute, same sizeLlama 3 8B: 2.02this budget's optimum: 81B
Over-training on the iso-FLOP map: Chinchilla says an 8B model has 'earned' only the ~10²²-FLOP budget whose optimum it is (upper dot). Llama 3 kept training anyway — 72× that compute — dropping the same-size model to a much lower curve (lower dot), far left of that budget's own optimum. What you buy: loss 2.14 → 2.03 at an unchanged serving cost of 2N ≈ 16 GFLOPs per token. What you decline: that budget's optimal 81B model (small dot) — better loss, but 10× the serving cost, forever.

Look at what the drop bought and declined. Bought: loss 2.14 → 2.03, at a serving cost that didn’t move — 8B parameters is 8B parameters. Declined: the optimum of the budget Llama 3 actually spent (7×10237 \times 10^{23} FLOPs), an 81B model at loss 1.97 — better, but 10× the price on every token it would ever serve. Which choice is right depends entirely on how many tokens the model serves in its lifetime; a popular model serves trillions, and the training premium amortizes to nothing. This is why cheap, fast, surprisingly good small models exist: you are looking at this trade. It’s also the trade you’ll make: your model is meant to be served, so the plan Chapter 7 actually runs is Llama 3’s, an 8B model on 15T tokens. (Chinchilla’s Wild Implications  is a great meditation on the corollary: once data is the binding constraint, where does more data come from?)

Emergence: when quantity reads as quality

So the laws told you your loss in advance — 1.96 for the optimal plan. What they did not tell you is what the model will be able to do at loss 1.96. Scaling laws describe the smooth decline of a training objective; users experience capabilities — and capabilities arrive in a lurchier way.

GPT-3’s paper was titled Language Models are Few-Shot Learners  because of its headline surprise: show the model a few examples of a task in its prompt, and it performs the task — no training, no gradient updates. Nobody designed in-context learning; it emerged. Smaller models mostly couldn’t do it; bigger ones could. Likewise multi-digit arithmetic, translation, and code generation seemed to snap from “can’t” to “can” at particular scales — a phenomenon catalogued in Emergent Abilities of Large Language Models .

Be skeptical here, because the sharpest version of this idea may be an artifact of how we grade. Are Emergent Abilities a Mirage?  showed that many “discontinuous” jumps come from all-or-nothing metrics. The arithmetic makes it obvious: suppose a correct answer is 10 tokens long, and the model’s per-token accuracy pp improves smoothly with scale. A grader that awards partial credit reports pp — smooth. A grader that requires the whole answer scores p10p^{10}: at p=0.5p = 0.5 that’s 0.001, at p=0.9p = 0.9 it’s 0.35, at p=0.98p = 0.98 it’s 0.82 — a cliff, manufactured entirely by the exponent:

10²⁰10²²10²⁴10²⁶0%50%100%training compute (FLOPs, log scale)task scorepartial credit: average tokens correctall-or-nothing:whole answer exactly right
Emergence as a grading artifact: both curves are the same model improving smoothly — per-token accuracy rising with scale. Grade with partial credit (average tokens correct) and you see the smooth slope. Grade all-or-nothing (a 10-token answer must be exactly right, so the score is p¹⁰) and the same improvement reads as a capability snapping into existence.

The truth seems to be: underlying competence improves smoothly; thresholded, real-world usefulness arrives suddenly. The smooth part is why labs can forecast loss; the sudden part is why each model generation feels categorically different — and why nobody can tell you with confidence what the next 10× will unlock. For your own run it means the loss forecast is solid but the capability forecast is not: you know the model will be better; you don’t know exactly what new thing it will be able to do.

The data wall, and what came after

Power laws don’t repeal themselves, but their inputs can run short — and your own plan shows where. Your month wanted 1.7T tokens. Now scale the plan the way the industry did: a frontier lab’s budget is 100× yours, 102610^{26} FLOPs, and the same fit asks for roughly a trillion parameters trained on ~16 trillion tokens. Estimates of all usable, deduplicated public text land in the low tens of trillions of tokens (Villalobos et al.  is the standard accounting). The compute-optimal frontier run wants most of the usable internet — and you cannot 10× a dataset that is most of the internet.

By 2024 this “data wall” was reshaping the field’s direction:

  • Data quality became the frontier. If you can’t get more tokens, get better ones, through aggressive filtering, deduplication, careful data mixes, and saving the best data for last (Chapter 7).
  • Synthetic data went mainstream: models generating and grading training data for the next generation of models. The failure mode to engineer around: train a model naively on its own outputs and the distribution narrows with each round, a degradation called model collapse.
  • A third scaling axis opened: test-time compute. If you can’t profitably make the model bigger, make it think longer — spend more tokens reasoning before answering. The reasoning models of 2024–2026 (o1, R1, and their descendants) scale capability with inference compute, and turned out to have their own scaling laws. That story belongs to post-training (the stages applied after a run like this one finishes), and it’s the climax of Chapter 8.

The bitter lesson, in other words, keeps winning. And yet — download a frontier model’s config file and it is not GPT-2 scaled up. The fields have grown strange: num_experts, num_key_value_heads, rope_theta. Scaling won, but it won while mutating, because at these sizes three costs become unbearable and each one forced a surgery on the architecture. The next chapter reads a modern config line by line and explains what every mutation buys.

Further reading

Last updated on