Skip to content

Neural scaling laws

Read neural scaling laws as conditional empirical loss relationships, distinguish excess from total loss, and separate training compute allocation from inference cost.

Neural scaling laws are empirical relationships describing how a neural network's loss changes as model size, training data or training compute increases within a specified experimental regime. For a quant team, they can inform the next training experiment and its budget; they do not establish the accuracy or profitability of a financial application.

First ask what is being scaled

The three quantities answer different questions:

QuantityWhat it measuresWhat to keep explicit
Parameters, NNThe size of the fitted modelWhich parameters count, architecture and training procedure
Data, DDDataset size or training tokens processed, as defined in the studyUnique observations versus repeated exposure, tokenisation and data quality
Training compute, CCArithmetic used during training, usually measured in FLOPsHow compute is divided between model size and training exposure
A model-size curve asks what happens when NN changes under its stated data and training conditions. A sample-size learning curve varies data. A compute-optimal frontier instead selects the best allocation of resources at each compute budget. Their slopes need not agree.
Kaplan et al. (2020) reported power-law relationships for language-model cross-entropy, distinguishing parameter-, data- and compute-limited regimes. Their simple one-factor fits require the other factors not to be bottlenecks. “Law” here names a measured regularity, rather than a theorem applying to every neural network.

Half of which loss?

Consider a hypothetical stipulated relationship, with NN measured numerically in millions of parameters and loss in arbitrary units:
L(N)=1+2N−1/2.L(N)=1+2N^{-1/2}.
The floor of 1, coefficient 2 and exponent 1/21/2 are teaching choices, not empirical estimates. Changing the units of NN changes the coefficient needed to describe the same curve.
Model sizeTotal lossExcess above the stipulated floor
N=100N=1001+2/10=1.21+2/10=1.20.20.2
N=400N=4001+2/20=1.11+2/20=1.10.10.1

Four times as many parameters halves the excess because

L(400)−1L(100)−1=0.10.2=12.\frac{L(400)-1}{L(100)-1}=\frac{0.1}{0.2}=\frac12.

Total loss falls by 0.10.1, or about 8.33%8.33\% of its initial 1.21.2. It does not halve. More generally, for a positive excess L(N)−L∞=AN−αL(N)-L_\infty=AN^{-\alpha}, multiplying NN by kk multiplies the excess by k−αk^{-\alpha}. A straight line on log–log axes describes that excess; adding a floor changes the shape of the total-loss curve.

Hypothetical stipulated curve: N rises from 100 to 400 million parameters, total loss falls from 1.2 to 1.1 arbitrary units, and excess above floor 1 falls from 0.2 to 0.1.
Hypothetical stipulated curve: N rises from 100 to 400 million parameters, total loss falls from 1.2 to 1.1 arbitrary units, and excess above floor 1 falls from 0.2 to 0.1.
Original hypothetical illustration. Quadrupling model size halves excess loss; total loss falls about 8.33%. The displayed range and all coefficients are stipulated, with no measured data or fitted exponent.

Training compute has an allocation problem

Hoffmann et al. (2022), the Chinchilla paper, fit a joint loss model of the form
L^(N,D)=E+ANα+BDβ,\widehat L(N,D)=E+\frac{A}{N^\alpha}+\frac{B}{D^\beta},
with coefficients estimated from training runs. In this compute approximation, model size is counted in individual parameters and data in training tokens, rather than the toy's millions-of-parameters units. For the dense-transformer approximation C≈6NDC\approx6ND, increasing NN at fixed CC leaves fewer training tokens. The allocation problem is to minimise the fitted loss subject to that compute constraint. The constrained optimisation lesson explains the mathematical machinery (membership; public preview available). A fitted loss surface does not make neural-network training itself a convex problem.

Kaplan's compute allocation favoured faster growth in parameters than data. Hoffmann's estimates favoured roughly equal growth. Hoffmann varied training horizons with matching learning-rate schedules and used a different model-size range; the fitting regimes differ. These are historical empirical estimates, not competing universal constants. In Chinchilla's analysis, training exposure remained below one dataset epoch.

The training constraint also omits deployment usage. An inference budget concerns serving requests after training: latency, memory, request volume and generation length matter. Minimising pretraining loss at fixed training FLOPs does not by itself minimise lifetime cost.

Use the fit as a research hypothesis

A scaling experiment needs comparable objectives, data definitions and evaluation procedures. Fit across several sizes, inspect residuals and uncertainty, and test predictions on additional runs before committing to a larger scale. A fitted floor is an estimate under that model, not a discovered universal limit. Kaplan explicitly identified eventual breakdown of extrapolated trends; Chinchilla also discussed frontier curvature and extrapolation uncertainty.

For financial text, lower token-prediction cross-entropy does not certify a return forecast, a correct extracted earnings figure or a useful risk decision. Those require task-specific evaluation. Repeated documents and overlapping market labels also make raw counts a poor substitute for independent evidence.

Use the time-ordered validation lesson to separate fitting, model selection and final assessment while respecting information availability (membership; public preview available). If evaluation results guide the choice of scale, they are development evidence. Preserve a final test set for the frozen procedure.

Sources

Last updated
  • scaling laws
  • compute allocation
  • language models
  • empirical loss
← Back to the glossaryBack to top ↑