Papers · Training · 2016
Layer Normalization
The notation of the Layer norm paper, explained: its 35 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
Layer normalization: normalize over the hidden units of a layer, for each example separately, so it works for any batch size and for recurrent networks.
The superscript in , and is the layer index, not a power. is the number of hidden units in the layer, the summed input to unit , and and the learned gain and bias (other papers write them and ).
Read from arXiv's HTML version: 35 displayed equations and 73 pieces of inline math. 43 symbols and constructs from the catalog.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
- (1)Decode →
- (2)Decode →
- (3)Decode →
- (4)Decode →
- (5)Decode →
- (6)Decode →
- (7)Decode →
- (8)Decode →
- (9)Decode →
- (10)Decode →
- (11)Decode →
- (12)Decode →
- (13)Decode →
- (14)Decode →
- (15)Decode →
- (16)Decode →
- (17)Decode →
- (18)Decode →
- (19)Decode →
- (20)Decode →
- (21)Decode →
- (22)Decode →
- (23)Decode →
- (24)Decode →
- (25)Decode →
- (26)Decode →
- (27)Decode →
- (28)Decode →
- (29)Decode →
- (30)Decode →
- (31)Decode →
- (32)Decode →
- (33)Decode →
- (34)Decode →
- (35)Decode →
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) 345 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 298 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) 48 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Superscript in parentheses 27 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- , ,
Bar (mean) 14 uses
A bar usually marks an average: x̄ is the mean of the x values.
- ,
Dots (ellipsis) 11 uses
“And so on”: continue the pattern.
Hat (estimate) 4 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Greek letters
Sigma (lowercase) 57 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Mu 39 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Delta (lowercase) 34 uses
A small change, or the error signal δ = ∂L/∂z in backpropagation.
Alpha 16 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Beta 16 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Theta 14 uses
The model’s parameters: all of its weights and biases, as one collection.
Phi 10 uses
The parameters of a second model (often the encoder q_φ), or a feature map φ(x).
Chi 7 uses
Almost always χ², the chi-squared distribution or test.
Gamma 3 uses
The discount factor in reinforcement learning, or the learned scale in normalization layers.
Eta 2 uses
The learning rate in most gradient-descent papers.
Rho 1 use
A correlation coefficient, a decay rate (RMSprop, Adadelta), or an importance ratio in RL.
Vectors and matrices
- , ,
Transpose 40 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
- , ,
Bold lowercase (vector) 35 uses
A bold lowercase letter is a vector: a list of numbers.
Hadamard (elementwise) product 14 uses
Multiply two arrays of the same shape entry by entry.
- , ,
Norm 14 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Bold uppercase (matrix) 10 uses
A bold capital letter is a matrix (or a higher-order tensor).
Centre dot 6 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Dagger / pseudo-inverse 2 uses
The Moore–Penrose pseudo-inverse A⁺ (written A† in many ML papers); in physics, the conjugate transpose.
Q, K, V (query, key, value) 1 use
In attention: queries Q, keys K and values V, each a matrix with one row per token.
Tensor / Kronecker product 1 use
An outer, Kronecker or tensor product: every entry of one times every entry of the other.
Calculus and gradients
- , ,
Prime 17 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
- , ,
Partial derivative 6 uses
A partial derivative: how one quantity changes when one input changes and the others are held fixed.
Probability and statistics
Given (conditional bar) 22 uses
“Given”: p(y | x) is the probability of y given that x is known.
Probability p(x) 17 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Semicolon (parameterized by) 16 uses
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Covariance 12 uses
How two random quantities vary together; positive when they rise together.
Distributed as (tilde) 10 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
Logarithm 5 uses
A logarithm, almost always the natural log (base e) in ML papers.
KL divergence 1 use
How different distribution q is from p. Zero when they match; not symmetric.
Variance 1 use
How spread out a random quantity is: the expected squared distance from its mean, σ².
Functions and operators
- , ,
Fraction 46 uses
Division: the top divided by the bottom.
Hyperbolic tangent 8 uses
An S-shaped activation squashing any number into (−1, 1).
- ,
Summation 7 uses
Add up the expression for every value of the index, from the bottom limit to the top.
Square root 4 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
- ,
Arrow (maps to) 2 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
Sets, shapes and definitions
Approximately equal 1 use
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
12 things the catalog has no entry for yet
-
\bf87 -
x57 -
\vecop14 -
b12 -
\over10 -
\mathbb{E}10 -
g9 -
h5 -
y4 -
a2 -
\real2 -
\rm1
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)
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift (Batch norm, 2015)
- Root Mean Square Layer Normalization (RMSNorm, 2019)
- Decoupled Weight Decay Regularization (AdamW, 2017)