Chinchilla and Optimal Compute

The Chinchilla paper (Hoffmann et al., 2022) established that large language models had been systematically undertrained relative to their parameter count, and derived empirical scaling laws prescribing the optimal allocation of a fixed compute budget between model size and training tokens. It matters because it reshaped how every major lab sizes and trains frontier models. The counterintuitive finding: GPT-3 (175B parameters), once considered a pinnacle of scale, was trained on roughly 20× fewer tokens than Chinchilla's laws predict as optimal for its compute budget.

The core insight

For a fixed compute budget C (measured in FLOPs), there is an optimal model size N and an optimal number of training tokens D that jointly minimize loss — and they scale in roughly equal proportion. Before Chinchilla, the field treated "bigger model = better" as axiomatic and simply piled on parameters while keeping token counts comparatively low. The Chinchilla insight is that tokens are just as important as parameters: a smaller model trained longer on more data will consistently outperform a much larger model trained briefly. The "aha moment" is realizing that the cost of inference at deployment makes this even more dramatic — a smaller, well-trained model is cheaper to run millions of times, so the compute savings compound far beyond training.

How It Works

The Scaling Law Setup

Chinchilla builds on the earlier Neural Scaling Laws framework of Kaplan et al. (2020) but corrects a critical methodological flaw: Kaplan fixed model architecture hyperparameters when varying compute, inadvertently biasing the results toward larger models. Hoffmann et al. instead ran over 400 models ranging from 70M to 16B parameters on 5B to 500B tokens, carefully sweeping both axes. The fundamental assumption is that the expected loss L of a transformer language model can be decomposed into three terms:

1
L(N,D)=E+ANα+BDβ\quad L(N, D) = E + \frac{A}{N^\alpha} + \frac{B}{D^\beta}

Explanation: The irreducible entropy E represents the best any model could achieve on this data; the second term captures how loss decreases as model parameters N grow; the third term captures how loss decreases as training tokens D increase.

Symbol definitions:

  • LL — cross-entropy validation loss (nats)
  • NN — number of non-embedding model parameters
  • DD — number of training tokens
  • EE — irreducible loss floor (inherent data entropy)
  • A,BA, B — fitted positive constants
  • α,β\alpha, \beta — fitted exponents; Chinchilla finds α≈0.34\alpha \approx 0.34, β≈0.28\beta \approx 0.28

Compute Budget and the Optimization Problem

The approximate compute cost for training a transformer on DD tokens with NN parameters follows the "6ND rule" (each token requires roughly 6N FLOPs — 2N for the forward pass and 4N for gradients and optimizer):

2
C≈6 N D\quad C \approx 6 \, N \, D

Explanation: Training compute scales linearly with both parameter count and token count, so doubling either doubles your FLOP bill — they are symmetric in cost. Given a fixed budget CC, we substitute D=C/(6N)D = C / (6N) into equation [1] and minimize over NN:

3
∂L∂N∣C fixed=0⟹N∗(C)=G(C6)a,D∗(C)=G−1(C6)b\quad \frac{\partial L}{\partial N}\Bigg|_{C \text{ fixed}} = 0 \quad \Longrightarrow \quad N^*(C) = G \left(\frac{C}{6}\right)^{a}, \quad D^*(C) = G^{-1}\left(\frac{C}{6}\right)^{b}

Explanation: Setting the derivative of loss with respect to N (at fixed compute) to zero gives power-law relationships for the optimal model size and token count as functions of total compute. Where a=β/(α+β)a = \beta/(\alpha+\beta) and b=α/(α+β)b = \alpha/(\alpha+\beta) and GG absorbs the fitted constants. Plugging in Chinchilla's empirical values gives a≈0.46a \approx 0.46 and b≈0.54b \approx 0.54 — nearly equal, meaning N∗N^* and D∗D^* scale at almost the same rate with compute. The concrete Chinchilla prescriptions are:

4
N∗(C)≈0.0155⋅C0.46,D∗(C)≈0.297⋅C0.54\quad N^*(C) \approx 0.0155 \cdot C^{0.46}, \qquad D^*(C) \approx 0.297 \cdot C^{0.54}

Explanation: For every 10× increase in compute budget, the optimal model size grows by roughly 4×–5× and the optimal token count grows by 4×–5×, keeping them in approximate parity.

The Chinchilla Model Itself

Applying equation [4] to the compute budget used to train Gopher (280B parameters, roughly 102310^{23} FLOPs), Hoffmann et al. derived that the optimal model should have ~70B parameters trained on ~1.4T tokens. The resulting model — called Chinchilla — matched or exceeded Gopher on virtually every benchmark despite using 4× fewer parameters, and used the same compute to train.

5
NGopherNChinchilla≈4,DChinchillaDGopher≈4\quad \frac{N_{\text{Gopher}}}{N_{\text{Chinchilla}}} \approx 4, \qquad \frac{D_{\text{Chinchilla}}}{D_{\text{Gopher}}} \approx 4

Explanation: Shifting the same compute from a 280B/300B-token regime to a 70B/1.4T-token regime produced a strictly better model, demonstrating the cost of over-parameterizing at the expense of training data.

researcher · Jordan Hoffmann | b. ~1990s | Lead author of Chinchilla scaling laws

Jordan Hoffmann conducted the Chinchilla experiments at DeepMind as a research scientist, leading the empirical study of over 400 language model training runs that produced the corrected scaling law estimates. His methodological contribution was recognizing that holding hyperparameters constant while varying compute (as Kaplan et al. did) introduces a systematic bias, and designing the experiments to sweep both model size and token count independently. Hoffmann completed his PhD at Cambridge on Bayesian machine learning before joining DeepMind, making his pivot to empirical large-scale training laws a notable career inflection.

researcher · Jared Kaplan | b. ~1985 | Original neural scaling laws (OpenAI, 2020)

Jared Kaplan is a theoretical physicist turned AI researcher who co-authored the landmark 2020 OpenAI scaling laws paper that first established power-law relationships between model size, compute, and loss. His background in statistical physics — where power laws and phase transitions are central tools — directly informed how he framed the scaling law problem as fitting exponents on log-log plots of loss versus compute. Chinchilla's findings are best understood as a correction and refinement of Kaplan's framework rather than a refutation: the functional form is the same, but the exponents and the experimental protocol changed the implied optimal allocation significantly.

Figure
Chinchilla Compute-Optimal Frontier
log(Model Parameters N) log(Validation Loss) GPT-3 (175B, ~300B tok) Gopher (280B) Chinchilla (70B, 1.4T tok) over-parameterized (undertrained) Chinchilla optimal frontier iso-compute curves Compute-Optimal Scaling (Chinchilla)
Figure
Training Token vs Parameter Scaling
Token-to-Parameter Ratio Across LLMs Model Tokens/Params ratio ×20 optimal GPT-3 ~1.7× Gopher ~1.1× Chinchilla ×20 LLaMA-2 LLaMA-2 ~286× (7B) PaLM ~1.4× Mistral (7B) ~142× 20 0

Intuition

The Mental Model

Imagine you're studying for an exam and you have a fixed number of hours. One strategy is to hire a genius tutor who covers every subtlety (large model), but you only have time for a few practice problems (few tokens). Another strategy is to hire a solid tutor (smaller model) and do thousands of practice problems (many tokens). The Chinchilla insight is that the second student will score higher on the exam — practice volume matters as much as the tutor's raw intelligence, and you had been dramatically undervaluing practice time. The fixed compute budget is your total study hours; model size is tutor quality; training tokens are practice problems. Pre-Chinchilla labs were essentially hiring geniuses and giving them almost nothing to practice on, which is a terrible use of a fixed time budget. The compute-optimal frontier is the curve of "best tutor × practice schedule" combinations achievable in exactly your total study hours.

Historical Development

Origins · 1 minhow this was discovered
History
2017
Zoph & Le (Google Brain) publish early neural architecture search results suggesting model capacity alone does not predict performance — early hints that training regime matters.
2020
Kaplan et al. (OpenAI) publish "Scaling Laws for Neural Language Models," establishing power-law relationships between loss, parameters, compute, and dataset size — but recommend prioritizing parameters over tokens given a fixed compute budget.
2020
GPT-3 (Brown et al.) is trained with 175B parameters on ~300B tokens, embodying Kaplan's scaling prescription and becoming the dominant paradigm for large models.
2021
Zhai et al. (Google Brain) publish scaling laws for vision transformers, extending the Kaplan framework outside language modeling.
2021
DeepMind trains Gopher (280B parameters, 300B tokens), again following the Kaplan prescription and observing diminishing returns — motivating internal reexamination of the compute allocation.
2022
Hoffmann et al. (DeepMind) publish "Training Compute-Optimal Large Language Models" (the Chinchilla paper), demonstrating via 400+ model runs that Kaplan's protocol was biased and that equal scaling of N and D is optimal.
2022
Meta releases LLaMA (Touvron et al.), explicitly training smaller models (7B–65B) on far more tokens than Chinchilla prescribes, arguing that inference-optimal training is the right objective for models intended for wide deployment.
2023
Touvron et al. release LLaMA 2, training the 7B model on 2T tokens (~286 tokens per parameter), demonstrating that "beyond Chinchilla" training continues to improve performance, launching debate about data-constrained vs. compute-constrained regimes.
2024
Dubey et al. (Meta) release LLaMA 3, training the 8B model on 15T tokens (~1875 tokens per parameter), extending the inference-optimal paradigm further and showing continued log-linear improvement well past the Chinchilla optimal point.

Why It Matters

Real-World Impact
Chinchilla (DeepMind, 2022)The 70B model trained on 1.4T tokens directly disproved the "bigger is always better" dogma, outperforming Gopher (280B) on every benchmark using identical training compute, forcing every major lab to re-examine their training pipelines.
LLaMA / LLaMA 2 (Meta AI)Meta explicitly used Chinchilla analysis to decide model sizes, then deliberately exceeded the Chinchilla token budget to optimize for inference efficiency — the 7B and 13B models trained on 1T–2T tokens became the most widely deployed open-source models in history precisely because their small size made them cheap to serve.
GPT-4 (OpenAI)While architectural details remain undisclosed, OpenAI publicly stated that post-Chinchilla lessons informed GPT-4's training compute allocation, shifting the internal balance toward longer training runs relative to GPT-3's design.
Gemini (Google DeepMind)The Gemini family of models (Ultra, Pro, Nano) was explicitly designed with inference-cost tiers in mind, using Chinchilla-derived compute-optimal analysis to place each model on the efficiency frontier for its target deployment context.
Mistral 7B (Mistral AI, 2023)Trained on approximately 1T tokens with grouped-query attention and sliding window attention, Mistral 7B outperforms LLaMA 2 13B — consistent with the post-Chinchilla insight that aggressive token budgets on smaller models are highly competitive.
Data budget planning at scaleEvery modern LLM lab now uses Chinchilla scaling laws as the primary input for data acquisition decisions — if a C-level approves $X million of compute, the Chinchilla equations immediately prescribe how many tokens of training data must be sourced and cleaned before training begins.
Phi series (Microsoft Research)The Phi-1 and Phi-2 models (1.3B–2.7B parameters) trained on high-quality "textbook" data showed that data quality can shift the effective Chinchilla frontier — achieving performance well above the loss predicted for their parameter count by changing the token quality distribution, extending the Chinchilla framework to include data quality as an additional axis.

Prerequisites

What This Leads To

See Also

Neural Scaling Laws · Large Language Model Pretraining · Inference Efficiency · Data Curation for LLMs · Mixture of Experts