Assume the loss follows L(N,D)=E+ANα+BDβ and training compute is C=6ND. Derive the compute-optimal N⋆(C) and D⋆(C) and their scaling exponents. What do α=0.34 and β=0.28 imply?

Sequence models and transformers, Scaling laws
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can do a constrained minimisation and obtain power laws in C with exponents β/(α+β) and α/(α+β).

Key idea

Substitute D=C/(6N) and minimise over N. The result is N⋆∝Cβ/(α+β) and D⋆∝Cα/(α+β).

Steps

  1. Here E is the irreducible loss, A,B>0 are constants, and α,β>0 control how fast loss falls with parameters and data.
  2. With the budget fixed at C=6ND, eliminate D=C/(6N): L(N)=E+AN−α+B(6NC)β.
  3. Differentiate: dLdN=−αAN−α−1+βB 6βC−βNβ−1. Set it to 0.
  4. Then αA N−α−1=βB 6βC−βNβ−1, so Nα+β=αAβB(C6)β.
  5. Solve: N⋆=(αAβB)1α+β(C6)βα+β. Then D⋆=C6N⋆∝C1−βα+β=Cαα+β.
  6. This is a minimum: L tends to infinity both as N→0 (the A term) and as N→∞ (the D term), and has one stationary point.
  7. Numbers: β/(α+β)=0.28/0.62=0.45 and α/(α+β)=0.34/0.62=0.55. Both are close to 0.5, so N and D should grow in roughly equal proportion as compute grows, which is the Chinchilla conclusion. Doubling compute multiplies N⋆ by about 20.45=1.37.

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Sequence models and transformers: How do you show that skip-gram with negative sampling, with K negatives per positive pair, has an optimum at w⊤c=PMI(w,c)−log⁡K for each (word, context) pair, so it implicitly factorises a shifted PMI matrix (Levy and Goldberg). What assumptions do you need?
Next in Sequence models and transformers: FlashAttention computes softmax attention one block of keys at a time, without storing the full score matrix. Derive the online softmax recurrence that keeps a running maximum m and a running sum ℓ, and test it on the scores (1,3,2,5) split into the blocks (1,3) and (2,5) with values (1,2,3,4)?