Scaling: The Bet That Loss Is Predictable

Timeline, 1822–2026
  1. 1822◆Babbage proposes the Difference Engine
  2. 1843◆Lovelace publishes the first program, for the Analytical Engine
  3. 1936◆Turing: a machine that can imitate any other
  4. 1937Shannon: relay circuits do Boolean logic
  5. 1941◆Zuse’s Z3, a programmable relay computer
  6. 1943McCulloch and Pitts: a neuron as a switch
  7. 1946ENIAC: 17,468 tubes, 150 kW
  8. 1947The transistor, Bell Labs
  9. 1958Rosenblatt’s perceptron
  10. 1959The MOSFET (Atalla and Kahng) and the planar chip
  11. 1965Moore’s observation
  12. 1969Minsky and Papert’s Perceptrons
  13. 1971◆Intel 4004, made for Busicom of Japan
  14. 1974Dennard’s scaling rules
  15. 1976Cray-1
  16. 1986Backpropagation popularised
  17. 1989LeCun’s convolutional network reads zip codes
  18. 1997◆LSTM (Hochreiter and Schmidhuber)
  19. ~2005Dennard scaling ends; clock speeds stall
  20. 2007CUDA lets GPUs run general code
  21. 2009ImageNet
  22. 2011◆K computer tops the TOP500
  23. 2012◆AlexNet, trained on two gaming GPUs
  24. 2017“Attention Is All You Need”
  25. 2020Scaling laws; GPT-3; Fugaku tops the TOP500
  26. 2022Chinchilla; H100; ChatGPT
  27. 2024100,000-GPU clusters; a 1,500 MW data-centre load drops off the Virginia grid
  28. 2025◆IEA: data centres used 415 TWh in 2024

In brief. Why bigger kept working: error falls along a smooth curve as compute grows, which turned AI into a question of money, data and electricity. The page also prices a training run, and what serving costs after it.

The surprise. Llama 3.1 405B saw about 15.6 trillion tokens of text, nearly 40 for every one of its 405 billion parameters.

Meta’s Llama 3.1 405B is a block of 405 billion numbers. To set them, Meta showed it about 15.6 trillion tokens of text, nearly 40 for every number.4 Why that many, and why not more? Most of science is not predictable in advance: you try an idea and it works or it does not. Around 2020 language models turned out to be different: train them bigger, on more text, with more arithmetic, and their error falls along a smooth curve you can draw before you start. That one measurement changed AI from a research problem into a question of how much money, data and electricity to commit.

The essay showed the compute of notable models rising since 2010. This page looks at why anyone would spend that much, and what stands in the way of spending more.

  1. 1A straight line on a log plot
  2. 2Three knobs, one budget
  3. 3Training past the optimum
  4. 4The frontier’s slope
  5. 5The data wall
  6. 6The bill
  7. 7After training
  8. 8What the bet is
  9. Final words

1A straight line on a log plot

A language model is scored by its loss: how surprised it is, on average, by the next word of text it has not seen. Lower is better. In 2020 Jared Kaplan and colleagues at OpenAI trained many models of different sizes and found that the loss fell as a power law in the compute, parameters and data they used, over seven orders of magnitude.1 In 2022 Jordan Hoffmann and colleagues at DeepMind fitted a formula to more than 400 training runs that predicts the loss from the number of parameters and training tokens together.2

Data The loss predicted by Hoffmann et al.’s fitted formula, L = 1.69 + 406.4 / N0.34 + 410.7 / D0.28, with each compute budget split between parameters N and tokens D in the way the formula itself says is best.2 Loss is in nats per token (natural-log surprise) on their MassiveText data, so it is comparable only within that dataset. On the logarithmic axes the vertical scale is the loss above the formula’s floor of 1.69 nats. The curve is the fit, extended beyond the runs it was fitted to.

On linear axes the curve looks as if improvement stops early. On logarithmic axes it is close to a straight line: every tenfold increase in compute removes about the same share of the loss that remains above the floor. That is what made the bet possible. If ten times the compute bought a known improvement last time, it is a reasonable guess that it will again, and the cost of the next model can be planned.

The maths: power laws and logs

If y = a x−α, then log y = log a − α log x: a straight line of slope −α on log–log axes, so multiplying x by 10 multiplies y by 10−α whatever x is. The loss has a floor E that no amount of compute removes (text is partly unpredictable), so the power law applies to L − E. With the formula’s exponents, ten times the compute, split optimally, removes roughly a third of what is above the floor.

2Three knobs, one budget

Training a transformer with N parameters on D tokens takes about 6ND operations. So a fixed budget can buy a large model trained briefly or a small one trained long. Kaplan’s 2020 paper advised spending most of a growing budget on size: parameters rising as about C0.73 and tokens only as C0.27. Hoffmann’s team found instead that the two should grow about equally, and showed it by training Chinchilla, 70 billion parameters on 1.4 trillion tokens, which beat their own 280-billion-parameter Gopher trained with the same compute.2 The rule of thumb that came out of it was about 20 tokens per parameter.

Data Predicted loss against model size for a fixed budget C, with tokens D = C / 6N, from the two fits of the same formula: Hoffmann et al.’s published values and Besiroglu et al.’s 2024 re-fit of Hoffmann’s data, L = 1.817 + 482.0 / N0.348 + 2,085 / D0.366.3 The default budget is Chinchilla’s, about 5.8 × 10²³ FLOP.

There is a twist, and the toggle shows it. Hoffmann’s paper estimated the best ratio three ways. Two gave about 20 tokens per parameter. The formula in the figure was the third, and taken literally it prefers several times more tokens. In 2024 Tamay Besiroglu and colleagues at Epoch AI reconstructed Hoffmann’s data from the paper’s plots and re-fitted the formula. Their version agrees with the other two methods: about 20 tokens per parameter.3 Both curves have the same shape, a wide valley with a gentle floor, which is the more useful lesson: being a factor of two off the best size costs little.

The maths: the compute-optimal split

Minimise L(N, D) = E + A N−α + B D−β subject to 6ND = C. Substituting D = C / 6N and setting dL/dN = 0 gives

Nopt = G (C/6)β/(α+β), Dopt = G−1 (C/6)α/(α+β), G = (αA / βB)1/(α+β).

With α ≈ β, both grow roughly as C1/2, which is the “equal proportions” result. The figure finds the minimum numerically.

3Training past the optimum

“Compute-optimal” means the lowest loss for the training budget. But a model is trained once and then used, possibly by millions of people, and every answer costs arithmetic in proportion to its size. A smaller model trained on far more tokens than the optimum costs more to train for the same loss but much less to run. Since Chinchilla the field has moved that way. Each dot is a notable language model; the black steps track the median tokens per parameter: about 3 in 2021, 20 in 2023 and 47 in 2025.

Data + model Training tokens per parameter for notable language models since 2017 (log scale), with the yearly median and the ~20:1 compute-optimal line (Chinchilla). Every dot is a real model: all 211 language-domain rows of Epoch AI’s Notable AI Models with both a parameter count and a training-dataset size (“Training dataset size (total)”, mostly tokens) published from 2017, ratio ≥ 0.1, nothing synthetic or jittered. Placed at publication date. About one in five dataset sizes is Epoch’s own estimate (see its “dataset size notes”).4 Tap a dot to name the model.

Meta’s Llama 3.1 405B saw about 15.6 trillion tokens, nearly 40 per parameter; many smaller models have seen hundreds or thousands per parameter.4 That choice ties scaling to the rest of this series. It trades training compute for cheaper serving, and it eats training data faster, which is the subject of section 5.

4The frontier’s slope

The essay’s chart fits every notable model. Here you can lay the line yourself on the models Epoch flags as frontier models, roughly those that were among the largest by training compute when they were released, drawn in blue; your line is violet.

Data Training compute of notable AI models since 2010, from Epoch AI’s Notable AI Models data (CC BY); frontier models in blue.4 “Fit it for me” is a least-squares line through the frontier models. The algorithmic-progress line multiplies your slope by Ho et al.’s central estimate, compute needs halving every 8 months (95% interval about 5 to 14 months), for language models from 2012 to 2023.5

Whatever line you draw, it is steep: several times more compute every year, against Moore’s law’s doubling every two. Epoch’s own analysis puts the frontier at four to five times a year since 2010.6 And the arithmetic is not the whole story. Anson Ho and colleagues estimated that the compute needed to reach a given loss has halved roughly every eight months, through better architectures, training recipes and data. Effective compute has grown faster than the chips.

5The data wall

Compute can be bought. Text written by people cannot be made faster. In 2024 Pablo Villalobos and colleagues at Epoch AI estimated the stock of public human text on the indexed web at an “effective” 300 trillion tokens or so (90% interval 100 to 1,000 trillion), allowing for quality and for repeating data a few times, and projected that if current trends continue models will be trained on datasets about that size between 2026 and 2032, with a median of 2028. Below, the dots are training sets and the green band is that stock.7

Data + model Training dataset sizes of language models in Epoch AI’s Notable AI Models data (CC BY); the dark dots are those Epoch flags as frontier models, and the dashed line our least-squares fit to them, carried forward.4 The green line is Epoch’s effective stock of about 3 × 10¹⁴ tokens, and the band its 90% interval, 100 to 1,000 trillion tokens; the same estimate as on the Data page.7

What happens next is open. The same study discusses training on text generated by models, on images, video and audio, on private data, and getting more from each token. None is yet proven at the scale needed, and each has its own costs; this page does not try to predict which will work. What the line does show is that the cheap part of the bet, more text, is close to used up.

The data flywheel — human examples, synthetic data, and whether demand can outgrow the supply of text — has its own page: The data. It sets none of the long-run meter’s sliders; it asks whether use, people × tasks a day, can keep rising.

6The bill

Turn compute into money with the numbers the rest of this series has built up: an H100 does 989 trillion 16-bit operations a second at its peak and real training runs get about 40% of that; a GPU’s share of its server draws 1.275 kW; the building adds a PUE of 1.09 to 1.56; and the hardware, at $33,600 a GPU over four years, costs about $0.96 an hour whether it computes or not. The figure sets it against the electricity.8

Model GPU-hours = compute ÷ (989.4 × 10¹² FLOP/s × 40.5% × 3,600 s), the utilisation being the middle of Llama 3’s 38–43%. Electricity uses the AI Factory’s 503–720 GPU-hours per MWh. Hardware is the GPU’s share of a $269,000 DGX H100 over four years. The electricity price defaults to the 2025 US average for industrial customers, $85 per MWh.8 Staff, networking, failed runs and experiments before the final run are left out, and they are large. The run markers use Epoch’s compute estimates.4

At the average US industrial price the electricity is about an eighth of these two costs, 11–15%; the chips are most of it. Renting instead of owning makes the gap wider: a cloud H100 reserved in advance costs about $6 an hour, against about 12–17 cents of electricity.8 That is why a training run is a capital project first and an energy project second, and why, as the AI Factory shows, nobody switches the machines off to wait for cheap hours. It also explains the scale of the energy question: the bill for electricity is modest per run, but the runs, and the buildings, keep growing.

7After training

Training happens once. Answering questions happens every day. Producing one token takes about two operations per parameter, so a 405-billion-parameter model spends about 8 × 10¹¹ operations per token it reads or writes. Attention adds a part that grows with the context, about 2 × layers × context × width; for this model it is 4% extra at 8,000 tokens and catches up with the weights only near 200,000. Below, the training cost is paid once and the answering cost piles up day by day.1

Model Inference compute as 2 × parameters × tokens for a dense 405-billion-parameter model, against Llama 3.1 405B’s training compute of 3.8 × 10²⁵ FLOP.4 Real serving costs more per token than this count (chips sit partly idle while waiting for memory, as the roofline shows) and less where smaller or mixture-of-experts models are used.
Look inside: decode is a memory problem

To write one new token, a model must read every weight from memory: 140 GB for a 70-billion-parameter model in FP16, about 42 ms at an H100’s bandwidth, for only 1.4 × 10¹¹ operations. HBM bandwidth, not FLOP/s, sets the pace, so chip efficiency gains do not cut Wh per token one-for-one. Serving many conversations at once shares that weight read across the batch. What it cannot share is each conversation’s own KV cache, the stored keys and values of every earlier token, which grows with context. At long context and large batch the cache, not the weights, is the bottleneck.10

Model Bytes per token = weights ÷ batch + KV cache. 70B-class (Llama 3 70B shape): 80 layers, 8 KV heads, 128-d, FP16, 320 KB of KV per context token. HBM 3.35 TB/s as on one H100; real deployments split the model over several GPUs, which adds bandwidth but not the ratio.
Look inside: active parameters, not the headline total

A mixture-of-experts model stores many specialists and, for each token, wakes only a few. FLOPs track the active slice, not the total weight count. That is one of the efficiency levers on the verdict meter: more experts, same quality, fewer joules per token — until routing and memory traffic claw it back.

Model Top-2 routing over a fixed 800B total, with 3% of the weights (attention, embeddings) used by every token, close to Mixtral 8x7B and DeepSeek-V3 (arXiv:2401.04088, arXiv:2412.19437); illustrative, not a named product.

The count is sobering in both directions. With a million users a day, a model this size would take decades of serving to match the arithmetic of its training. With a hundred million, it takes well under a year, and ChatGPT alone says more than 1.2 billion people use it each week, though not all of them daily and not all on its largest model.9 Models that think step by step before answering, writing thousands of hidden tokens per question, multiply the tokens per user, and with them the daily load. Spending moves from a one-off training run to a load that runs every day.

8What the bet is

The scaling laws are measurements, not laws of nature. They describe what happened over the range of models that have been trained, and they have held as that range has grown. They turned the question of how good to make a model into a question of how much to spend, and the answers have been compute growing four or five times a year, models trained past their optimum so they are cheap to use, and a supply of text that is close to its limit, which is being topped up by paying people to write, rank and grade.

Final words

There is something unusual about an industry that can draw its own future on a log chart and then go and build it. Most bets on technology are made in fog; this one was made with a ruler. The ruler may yet bend. Text may run out, money may run out, or the curve may simply flatten. But for six years and counting, paying for ten times more arithmetic has bought a measurably better model, much as the curve said it would, and that is a rare thing to be able to say about any technology.

Where the compute ends up is the subject of the AI Factory: in buildings that draw as much as cities, on grids that need years to connect them. And where it came from, the cheap switch and the parallel chip, is in The Price of a Flip and Parallel.

Notes and sources

  1. J. Kaplan et al., “Scaling Laws for Neural Language Models” (2020): power laws over more than seven orders of magnitude; compute-efficient allocation N ∝ C0.73; forward-pass cost about 2N + 2·nlayer·nctx·dattn operations per token (§2.1, Table 1), i.e. about 2N at short context. For Llama 3.1 405B (126 layers, width 16,384; Llama 3 paper, arXiv:2407.21783, Table 3) the context term is 3.4 × 10¹⁰ at 8,192 tokens, 4% of 2N, and equals 2N at about 196,000 tokens.
  2. J. Hoffmann et al., “Training Compute-Optimal Large Language Models” (2022): over 400 models; the fitted formula with E = 1.69, A = 406.4, B = 410.7, α = 0.34, β = 0.28 (equation 10); Kaplan et al.’s exponents 0.73 and 0.27 (table 2); Chinchilla, 70B parameters, 1.4T tokens, against Gopher, 280B.
  3. T. Besiroglu, E. Erdil, M. Barnett and J. You, “Chinchilla Scaling: A replication attempt” (2024): re-fitted model L = 1.8172 + 482.01/N0.3478 + 2085.43/D0.3658, compatible with Hoffmann et al.’s first two approaches.
  4. Epoch AI, Notable AI Models (CC BY), downloaded 19 October 2026: training compute, parameters, dataset size and frontier flag. Llama 3.1-405B: 405 billion parameters, 15.6 trillion tokens, 3.8 × 10²⁵ FLOP.
  5. A. Ho et al., “Algorithmic progress in language models” (2024): compute required to reach a set performance threshold halves about every 8 months, 95% confidence interval about 5 to 14 months.
  6. Epoch AI, “Training compute of frontier AI models grows by 4–5x per year” (2024).
  7. P. Villalobos et al., “Will we run out of data? Limits of LLM scaling based on human-generated data” (2024; summary at epoch.ai): effective stock of public human text about 3 × 10¹⁴ tokens (90% confidence interval 100T–1,000T), fully used between 2026 and 2032 (80% interval), median 2028. The raw indexed web is a different, larger quantity: 510T (95% interval 130T–2,100T) in the arXiv v2.
  8. Throughput and utilisation: Epoch AI Machine Learning Hardware and the Llama 3 paper (Llama Team, AI @ Meta, “The Llama 3 Herd of Models”, 2024, table 4). Server power and price and PUE as in the essay and the AI Factory notes. EIA, Electric Power Monthly, Table 5.3: average US retail price to industrial customers in 2025, 8.51¢/kWh ($85 per MWh); figures default to it. Electricity share: $0.118–0.169 of electricity per GPU-hour (85 ÷ 720 and 85 ÷ 503) against $0.96 of hardware (my arithmetic). AWS, EC2 Capacity Blocks pricing (read 5 November 2026): $5.970 an hour per H100 (p5.48xlarge) and $14.208 per B200 (p6-b200.48xlarge), reserved in advance in US regions.
  9. ChatGPT weekly users: TechCrunch, 6 November 2023 (about 100 million, announced at OpenAI’s first DevDay); TechCrunch, 27 February 2026 (900 million, up from 800 million in October 2025); OpenAI, “GPT-6 and Intelligent UI for everyone”, 7 October 2026 (“more than 1.2 billion people who use ChatGPT each week”).
  10. R. Pope et al., “Efficiently Scaling Transformer Inference” (2022): decode at small batch is limited by the time to load the weights from memory; batching amortises the weight loads, while the KV cache grows with batch × context and dominates memory traffic at long context. Worked arithmetic in kipp.ly, “Transformer Inference Arithmetic” (2022). 70B shape from Meta’s Llama 3 70B configuration (80 layers, 8 key–value heads, head dimension 128); 3.35 TB/s from NVIDIA’s H100 SXM datasheet.

Figures marked Data use the cited sources; Data + model combine them with the series’ own arithmetic. Figures marked Model are simplified models built to show a mechanism, and their numbers should not be quoted as facts. Charts use only openly licensed data (CC BY); individual figures from papers are quoted with credit. Fonts: Literata and Inter (SIL Open Font License).