Scaling Laws & Chinchilla

Why bigger models improve so predictably, and why data matters as much as size.

🔴 advanced5 min readllm
Scaling laws describe how a language model gets better, smoothly and predictably, as you give it more compute, more parameters and more training text. That predictability lets labs plan a huge training run before spending the money. An early OpenAI study said model size mattered more than data. DeepMind's Chinchilla work later showed both should grow together, at about 20 training tokens for every parameter. Many earlier models were too big for the data they saw, and smaller models trained on more text beat them.

The Predictability of LLM Scaling

Building Large Language Models requires spending millions of dollars on GPU compute clusters.

How do engineering teams know whether spending $10 Million on a 70B model will yield a specific performance jump before launching the training run?

Scaling Laws provide empirical power-law formulas that predict exact pretraining loss reduction as a function of Model Parameters (NN), Dataset Tokens (DD), and Total Compute (C≈6NDC \approx 6 N D).

  Pretraining Loss L
    │
  4 ┤  \
    │   \  Predictable Power-Law Slope!
  3 ┤    \
    │     \
  2 ┴──────┴──────────┴──────────► Total Compute Budget C (FLOPs)
        10^21       10^23      10^25

1. Kaplan Scaling Laws (OpenAI, 2020)

Jared Kaplan et al. (OpenAI) published the first systematic LLM scaling study:

L(N)=(NcN)αN,L(D)=(DcD)αDL(N) = \left(\frac{N_c}{N}\right)^{\alpha_N}, \quad L(D) = \left(\frac{D_c}{D}\right)^{\alpha_D}

Key Kaplan Claim

Kaplan claimed that when compute budget CC increases by 10×10\times:

This led to a wave of massive, under-trained LLMs (e.g. GPT-3 175B trained on only 300 Billion tokens).

2. Chinchilla Scaling Laws (DeepMind, 2022)

Jordan Hoffmann et al. (DeepMind) published "Training Compute-Optimal Large Language Models" (Chinchilla), proving that Kaplan's learning rate schedules were suboptimal.

The Chinchilla Finding

When compute budget CC increases:

Chinchilla Optimal Ratio: D≈20⋅N\text{Chinchilla Optimal Ratio: } D \approx 20 \cdot N
  CHINCHILLA BENCHMARK COMPARISON:
  - Gopher (DeepMind): 280B Parameters trained on 300B Tokens (Kaplan-style, Under-trained!)
  - Chinchilla (DeepMind): 70B Parameters trained on 1.4 Trillion Tokens (Chinchilla-Optimal!)
  RESULT: Chinchilla (70B) OUTPERFORMED Gopher (280B) while using 4x lower VRAM memory!

3. Beyond Chinchilla: Inference-Aware Scaling

Chinchilla optimizes for Pretraining Compute Efficiency.

However, in real-world production, an LLM will be served to millions of users for years (Inference Cost).

  Inference Cost = Total User Requests * Model Parameter Size N

Models like LLaMA 3 (8B trained on 15 Trillion tokens) intentionally over-train smaller models past Chinchilla limits by a factor of 100x!

While over-training costs more pretraining compute, it yields a small, ultra-fast 8B model that runs at high throughput on single GPUs, saving millions of dollars in downstream serving costs.

Say this out loud

Scaling Laws predict pretraining loss reduction as a power law of compute, parameters, and tokens. Kaplan laws claimed parameters should scale faster than tokens. DeepMind Chinchilla corrected this, proving parameters and tokens should scale equally in 1:1 proportion (20 tokens per parameter). Modern models like LLaMA 3 intentionally over train past Chinchilla bounds to optimize downstream inference costs.

Followups to expect

  1. What is the compute equation for a Transformer forward-backward pass? C≈6NDC \approx 6 N D floating point operations (FLOPs), where NN is parameter count and DD is total training token count.
  2. What is Test-Time Compute Scaling? Scaling inference compute (such as generating longer Chain-of-Thought reasoning steps or running Monte Carlo tree search) to improve problem-solving accuracy on hard math and coding tasks without increasing model parameter size NN.

Check yourself

Question 1 of 3

What core ratio of training tokens per model parameter did the DeepMind Chinchilla paper (Hoffmann et al., 2022) prove is compute optimal for LLM pretraining?

More in LLMs & GenAI

See all →
Pretraining → SFT → RLHF5 minFine-Tune vs RAG vs Prompt: Choosing5 minRetrieval-Augmented Generation5 min