Assume the loss follows and training compute is . Derive the compute-optimal and and their scaling exponents. What do and 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 with exponents and .
Key idea
Substitute and minimise over . The result is and .
Steps
- Here is the irreducible loss, are constants, and control how fast loss falls with parameters and data.
- With the budget fixed at , eliminate : .
- Differentiate: . Set it to .
- Then , so .
- Solve: . Then .
- This is a minimum: tends to infinity both as (the term) and as (the term), and has one stationary point.
- Numbers: and . Both are close to , so and should grow in roughly equal proportion as compute grows, which is the Chinchilla conclusion. Doubling compute multiplies by about .
Common mistakes
- Differentiating with held fixed instead of eliminating it with the constraint.
- Writing the exponents the wrong way round ( for ).
- Forgetting the inside , which only affects the constant but not the exponents.
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 negatives per positive pair, has an optimum at 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 and a running sum , and test it on the scores split into the blocks and with values ?