Papers · Scaling laws · 2022
Training Compute-Optimal Large Language Models
The notation of the Chinchilla paper, explained: its 11 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
Chinchilla: for a fixed compute budget, model size and training data should grow together, so most large models of the time were too big for the data they saw.
is the number of parameters, the number of training tokens, and the training compute in FLOPs. The fitted loss is : is the loss no model can beat, and the other two terms shrink as the model and the data grow. and are the best choices for a budget .
Read from arXiv's HTML version: 11 displayed equations and 130 pieces of inline math. 34 symbols and constructs from the catalog.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
Symbols, by category
Most used first. The examples are written as the paper writes them.
Notation conventions
- , ,
Italic letters (variables) 241 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 62 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Superscript (power or label) 47 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Calligraphic letters 17 uses
A script capital usually names a set, a space, a distribution or a loss.
- , ,
Hat (estimate) 15 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
- ,
Dots (ellipsis) 8 uses
“And so on”: continue the pattern.
Star (optimal) 5 uses
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
Dataset (𝒟) 4 uses
The dataset: usually N input-label pairs.
Bar (mean) 4 uses
A bar usually marks an average: x̄ is the mean of the x values.
Greek letters
Alpha 12 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Beta 12 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Delta (lowercase) 6 uses
A small change, or the error signal δ = ∂L/∂z in backpropagation.
Vectors and matrices
Times (cross) 62 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Inverse 1 use
The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
Norm 1 use
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Calculus and gradients
Prime 2 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Derivative (d/dx) 1 use
An ordinary derivative: the rate of change of one quantity with respect to one variable.
Probability and statistics
- ,
Probability p(x) 29 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Proportional to 12 uses
Equal up to a constant factor that does not depend on the variable of interest.
Logarithm 8 uses
A logarithm, almost always the natural log (base e) in ML papers.
- ,
Expectation 4 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
Exponential 3 uses
The exponential function eˣ, with e ≈ 2.718. Always positive.
Distributed as (tilde) 1 use
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
Functions and operators
- , ,
Fraction 15 uses
Division: the top divided by the bottom.
- , ,
Arrow (maps to) 6 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- ,
Argmin 4 uses
The input that makes the function smallest: θ* = argmin L(θ) is the best parameter setting.
- , ,
Max and min 3 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
- ,
Summation 2 uses
Add up the expression for every value of the index, from the bottom limit to the top.
- ,
Log-sum-exp 2 uses
log Σ exp(zᵢ): a smooth maximum, and the normalizer of a softmax in log space.
Sets, shapes and definitions
Element of 12 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
Defined as (≜) 8 uses
“Is defined as”: the same as :=. Introduces notation; it is not a claim to check.
- , ,
Set braces 5 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
- ,
Inequalities 3 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Approximately equal 1 use
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
Formulas from arXiv's HTML version of the paper, © their authors; the explanations are this site's. Title and authors as arXiv lists them.
More scaling laws papers
- Scaling Laws for Neural Language Models (Scaling laws, 2020)