Papers · Training · 2019
Root Mean Square Layer Normalization
The notation of the RMSNorm paper, explained: its 10 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Read from arXiv's HTML version: 10 displayed equations and 50 pieces of inline math. 31 symbols and constructs from the catalog.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
Famous equations in this paper
Symbols, by category
Most used first. The examples are written as the paper writes them.
Notation conventions
- , ,
Italic letters (variables) 56 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 26 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
Loss (ℒ) 14 uses
The loss: the number training tries to make small. Also written L, J(θ) or ℓ.
- ,
Bar (mean) 8 uses
A bar usually marks an average: x̄ is the mean of the x values.
- , ,
Superscript (power or label) 7 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
Greek letters
Delta (lowercase) 14 uses
A small change, or the error signal δ = ∂L/∂z in backpropagation.
Mu 4 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Sigma (lowercase) 3 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Alpha 3 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Beta 2 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Vectors and matrices
- , ,
Bold lowercase (vector) 54 uses
A bold lowercase letter is a vector: a list of numbers.
- ,
Bold uppercase (matrix) 17 uses
A bold capital letter is a matrix (or a higher-order tensor).
Hadamard (elementwise) product 6 uses
Multiply two arrays of the same shape entry by entry.
- ,
Centre dot 4 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
- , ,
Transpose 3 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
Identity matrix 3 uses
The matrix with 1s on the diagonal and 0s elsewhere; multiplying by it changes nothing.
Tensor / Kronecker product 2 uses
An outer, Kronecker or tensor product: every entry of one times every entry of the other.
Diag 2 uses
Build a diagonal matrix from a vector, or pull out the diagonal of a matrix.
Times (cross) 2 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Calculus and gradients
- , ,
Partial derivative 18 uses
A partial derivative: how one quantity changes when one input changes and the others are held fixed.
- , ,
Prime 9 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Probability and statistics
Probability p(x) 41 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Distributed as (tilde) 7 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
- , ,
Exponential 3 uses
The exponential function eˣ, with e ≈ 2.718. Always positive.
Functions and operators
Plus or minus 33 uses
Both signs at once: a ± b means a + b and a − b. In results tables, a mean and its spread.
- , ,
Fraction 21 uses
Division: the top divided by the bottom.
- , ,
Summation 6 uses
Add up the expression for every value of the index, from the bottom limit to the top.
- , ,
Square root 5 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
Floor and ceiling 1 use
Round down (floor ⌊x⌋) or round up (ceiling ⌈x⌉) to a whole number.
Sets, shapes and definitions
Element of 5 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
- ,
Tensor shapes 5 uses
ℝ with a superscript of sizes joined by × declares an array’s shape: ℝ^{B×T×d} is a 3-axis tensor.
1 thing the catalog has no entry for yet
-
\small3
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 training papers
- LoRA: Low-Rank Adaptation of Large Language Models (LoRA, 2021)
- Layer Normalization (Layer norm, 2016)
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift (Batch norm, 2015)
- Decoupled Weight Decay Regularization (AdamW, 2017)