Papers · Training · 2017
Decoupled Weight Decay Regularization
The notation of the AdamW paper, explained: its 15 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Read from arXiv's HTML version: 15 displayed equations and 107 pieces of inline math. 41 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
- , ,
Subscript (index or label) 243 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Italic letters (variables) 175 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Superscript (power or label) 14 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 9 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- , ,
Hat (estimate) 4 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Dots (ellipsis) 1 use
“And so on”: continue the pattern.
Star (optimal) 1 use
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
Greek letters
Theta 112 uses
The model’s parameters: all of its weights and biases, as one collection.
Lambda 64 uses
Usually the strength of a regularization term; also eigenvalues.
Alpha 39 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Eta 28 uses
The learning rate in most gradient-descent papers.
Beta 12 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Mu 2 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Sigma (capital) 2 uses
A covariance matrix, or the diagonal matrix of singular values in an SVD. Not the summation sign.
Pi 2 uses
A policy π(a | s) in reinforcement learning, or the constant 3.14159…
Epsilon 2 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Vectors and matrices
- , ,
Bold lowercase (vector) 115 uses
A bold lowercase letter is a vector: a list of numbers.
- , ,
Bold uppercase (matrix) 16 uses
A bold capital letter is a matrix (or a higher-order tensor).
Norm 7 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Hadamard (elementwise) product 4 uses
Multiply two arrays of the same shape entry by entry.
Times (cross) 4 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
- ,
Identity matrix 4 uses
The matrix with 1s on the diagonal and 0s elsewhere; multiplying by it changes nothing.
Q, K, V (query, key, value) 2 uses
In attention: queries Q, keys K and values V, each a matrix with one row per token.
Diag 1 use
Build a diagonal matrix from a vector, or pull out the diagonal of a matrix.
Inverse 1 use
The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
Centre dot 1 use
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Calculus and gradients
Prime 19 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Nabla (gradient) 18 uses
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
Probability and statistics
- ,
Probability p(x) 14 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Given (conditional bar) 9 uses
“Given”: p(y | x) is the probability of y given that x is known.
Normal distribution 1 use
The normal (Gaussian) distribution with the given mean and variance.
Functions and operators
Assignment arrow 28 uses
Assignment in an algorithm: replace the variable on the left with the value on the right.
- , ,
Fraction 12 uses
Division: the top divided by the bottom.
- , ,
Square root 6 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
Arrow (maps to) 4 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
Cosine 2 uses
The cosine function; in ML papers usually cosine similarity, a cosine schedule, or positional encodings.
Sets, shapes and definitions
Element of 11 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
Not equal 2 uses
The two sides are different.
Real numbers (ℝ) and shapes 2 uses
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
Tensor shapes 1 use
ℝ with a superscript of sizes joined by × declares an array’s shape: ℝ^{B×T×d} is a 3-axis tensor.
Inequalities 1 use
Less than / greater than (or equal). ≪ means “much smaller than”.
3 things the catalog has no entry for yet
-
\rm8 -
\triangleright7 \hbox\hbox1
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)
- Root Mean Square Layer Normalization (RMSNorm, 2019)