Papers · Training · 2015
Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
The notation of the Batch norm paper, explained: its 19 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
Batch normalization: normalize each feature over the mini-batch, then let the network rescale and shift it, which made deep networks much easier to train.
is the mini-batch, and the calligraphic in and says these are batch statistics. is the normalized value; the hat marks a transformed version, not an estimate. and are learned (and are not the of Adam), and is a small constant for numerical safety.
Read from arXiv's HTML version: 19 displayed equations and 126 pieces of inline math. 46 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) 261 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 98 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Superscript in parentheses 40 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- ,
Calligraphic letters 39 uses
A script capital usually names a set, a space, a distribution or a loss.
- , ,
Superscript (power or label) 34 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Hat (estimate) 31 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Loss (ℒ) 22 uses
The loss: the number training tries to make small. Also written L, J(θ) or ℓ.
Dots (ellipsis) 12 uses
“And so on”: continue the pattern.
Greek letters
Gamma 24 uses
The discount factor in reinforcement learning, or the learned scale in normalization layers.
Theta 22 uses
The model’s parameters: all of its weights and biases, as one collection.
Beta 21 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Mu 11 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Sigma (lowercase) 11 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Epsilon 10 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Delta (capital) 4 uses
A change or update: ΔW is the change to the weights W.
Alpha 2 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Vectors and matrices
Times (cross) 46 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
- ,
Centre dot 22 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Trace 6 uses
The sum of the diagonal entries of a square matrix.
- , ,
Transpose 5 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
Q, K, V (query, key, value) 4 uses
In attention: queries Q, keys K and values V, each a matrix with one row per token.
- ,
Absolute value (bars) 2 uses
Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.
Calculus and gradients
- , ,
Partial derivative 25 uses
A partial derivative: how one quantity changes when one input changes and the others are held fixed.
- ,
Prime 2 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Probability and statistics
- , ,
Expectation 16 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
Variance 7 uses
How spread out a random quantity is: the expected squared distance from its mean, σ².
Covariance 4 uses
How two random quantities vary together; positive when they rise together.
- ,
Probability p(x) 4 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Exponential 2 uses
The exponential function eˣ, with e ≈ 2.718. Always positive.
Semicolon (parameterized by) 1 use
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Proportional to 1 use
Equal up to a constant factor that does not depend on the variable of interest.
Functions and operators
- , ,
Fraction 23 uses
Division: the top divided by the bottom.
- ,
Summation 12 uses
Add up the expression for every value of the index, from the bottom limit to the top.
Assignment arrow 10 uses
Assignment in an algorithm: replace the variable on the left with the value on the right.
- , ,
Square root 8 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 (⇒).
Argmin 1 use
The input that makes the function smallest: θ* = argmin L(θ) is the best parameter setting.
ReLU 1 use
The rectified linear unit: keeps positive inputs, replaces negative ones with 0.
Max and min 1 use
The largest (or smallest) value, over the arguments or over the range in the subscript.
Reinforcement learning
Objective J 8 uses
J(θ) is the objective: the quantity to maximize, such as the expected return of a policy.
Sets, shapes and definitions
- , ,
Set braces 7 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
Identically equal 4 uses
Identically equal (for every input), or “defined as”, depending on the author.
Element of 1 use
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
Inequalities 1 use
Less than / greater than (or equal). ≪ means “much smaller than”.
Union and intersection 1 use
Union ∪: in either set. Intersection ∩: in both.
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 training papers
- LoRA: Low-Rank Adaptation of Large Language Models (LoRA, 2021)
- Layer Normalization (Layer norm, 2016)
- Root Mean Square Layer Normalization (RMSNorm, 2019)
- Decoupled Weight Decay Regularization (AdamW, 2017)