Skip to content
DARC
■ Change #58 · wiki.edited

Neural scaling laws and compute-optimal training: Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:04 UTCOpen the page →
explainer.student
**What they are for.** A large language-model training run costs millions of dollars. Before spending that, a lab must decide how big the model should be (parameters, $N$) and how much text to train it on (tokens, $D$). Scaling laws are fitted formulas that predict the final loss from $N$ and $D$, using a series of much cheaper small runs.
**The loss.** The model is trained to predict the next token. Its loss, cross-entropy, measures how surprised it is on average by the true next token: if it gave the right token probability $p$, the surprise is $-\ln p$. Lower loss means better prediction.
**Power laws.** Kaplan et al. (2020) found that loss falls as a power law in $N$, $D$ and compute $C$: $L \propto N^{-\alpha}$ for some small exponent $\alpha$. Taking logarithms gives $\ln L = -\alpha \ln N + \text{const}$, a straight line on log-log axes, which is how such laws are spotted and fitted. A useful consequence: each tenfold increase in size cuts the loss by the same fraction, so returns diminish but never stop abruptly.
**Compute-optimal training.** Hoffmann et al. (2022, "Chinchilla") fitted
− $$L(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}},$$
+ $L(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}},$
where $E$ is a floor no model can beat (the randomness of text itself), the second term is the penalty for a model that is too small, and the third the penalty for too little data. Training compute is roughly $C \approx 6ND$ floating-point operations. Substituting $D = C/6N$ turns minimising $L$ at fixed $C$ into a one-variable calculus problem (set the derivative with respect to $N$ to zero), and the answer was that $N$ and $D$ should grow in about equal proportion. Their 70-billion-parameter model trained on 1.4 trillion tokens, about 20 tokens per parameter, beat a much larger model trained on less data.
**An analogy.** It is like dividing a fixed budget between a bigger engine and more fuel: a huge engine with little fuel goes nowhere, and so does a small engine with a full tank. The analogy breaks because the "best split" here is measured, not derived from physics.
**Disputes and limits.** Chinchilla estimated the split three ways that should agree. A 2024 replication attempt rebuilt the data from the paper's figures and reported that the published formula fit disagreed with the other two methods and that its error bars were implausibly narrow; their refit agreed with the other methods. Kaplan's and Chinchilla's different answers have been traced mainly to how parameters were counted and to small scale. Repeating data, planning for heavy use after training (which favours smaller models trained longer) and mixture-of-experts models all shift the answer. Scaling laws predict loss, not specific skills, and why the exponents take their values is only partly explained.
hash d56b7682ac8ba4482f6a5010fbe6cc5a016f861524210fb5797e2c723305ab34
previous 7c4ebdd6b076583461974d38c8e8988534398e5a6d1602484b33f2abba6d9cb7