Symbols
150 symbols and constructs from machine-learning papers, grouped by what they are for.
Notation conventions · Greek letters · Vectors and matrices · Calculus and gradients · Probability and statistics · Functions and operators · Reinforcement learning · Sets, shapes and definitions
Notation conventions
Subscripts, superscripts, hats, tildes, bold letters and the other marks that change what a letter means. Practice them in Linear Algebra for Machine Learning by Hand.
- Dots (ellipsis)“And so on”: continue the pattern.
- Calligraphic lettersA script capital usually names a set, a space, a distribution or a loss.
- Loss (ℒ)The loss: the number training tries to make small. Also written L, J(θ) or ℓ.
- Dataset (𝒟)The dataset: usually N input-label pairs.
- Italic letters (variables)A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- Subscript (index or label)A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- Superscript in parenthesesAn index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- Superscript (power or label)Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- Hat (estimate)A hat marks an estimate or prediction: ŷ is the model’s guess for y.
- Tilde accentA modified version of the variable: noisy, corrupted, proposed or intermediate.
- Bar (mean)A bar usually marks an average: x̄ is the mean of the x values.
- Star (optimal)As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
- Multi-letter namesA run of italic letters like pos or model is usually one name, not a product of single letters.
- Fraktur lettersGothic-looking Fraktur letters: rare in ML, usually a Lie algebra or a special set the paper defines.
- Underbrace and overbraceA horizontal brace under or over part of a formula labels that part. It adds no math.
Greek letters
What each Greek letter usually stands for in a machine-learning paper. Practice them in Deep Learning Math by Hand.
- AlphaOften a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
- BetaUsually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
- GammaThe discount factor in reinforcement learning, or the learned scale in normalization layers.
- Delta (lowercase)A small change, or the error signal δ = ∂L/∂z in backpropagation.
- Delta (capital)A change or update: ΔW is the change to the weights W.
- EpsilonA tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
- EtaThe learning rate in most gradient-descent papers.
- ThetaThe model’s parameters: all of its weights and biases, as one collection.
- LambdaUsually the strength of a regularization term; also eigenvalues.
- MuA mean: the average of a distribution, a batch, or a layer’s features.
- Sigma (lowercase)Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
- Sigma (capital)A covariance matrix, or the diagonal matrix of singular values in an SVD. Not the summation sign.
- PiA policy π(a | s) in reinforcement learning, or the constant 3.14159…
- TauA temperature that sharpens or flattens a softmax; in RL, a trajectory.
- PhiThe parameters of a second model (often the encoder q_φ), or a feature map φ(x).
- RhoA correlation coefficient, a decay rate (RMSprop, Adadelta), or an importance ratio in RL.
- XiA random variable or noise draw; slack variables ξᵢ in SVMs.
- KappaA condition number κ(A), a kernel function κ(x, x′), or a concentration parameter.
- NuDegrees of freedom of a Student-t distribution, a frequency, or a spare coefficient.
- ZetaA spare letter: an auxiliary variable, a noise term, or the Riemann zeta function ζ(s).
- ChiAlmost always χ², the chi-squared distribution or test.
- PsiThe parameters of a third network (after θ and φ), a feature map, or the digamma function ψ(x).
- OmegaA frequency ω (positional encodings, Fourier features) or a weight; capital Ω is a regularizer, a sample space or big-Omega.
- Gamma (capital)The gamma function Γ(x), which extends the factorial to real numbers.
Vectors and matrices
Products, transposes, norms and the other linear algebra behind every layer. Practice them in Linear Algebra for Machine Learning by Hand.
- Bold lowercase (vector)A bold lowercase letter is a vector: a list of numbers.
- Bold uppercase (matrix)A bold capital letter is a matrix (or a higher-order tensor).
- TransposeSwap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
- InverseThe matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
- Hadamard (elementwise) productMultiply two arrays of the same shape entry by entry.
- Tensor / Kronecker productAn outer, Kronecker or tensor product: every entry of one times every entry of the other.
- Centre dotA dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
- Times (cross)Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
- NormThe length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
- Frobenius normThe size of a matrix: the square root of the sum of the squares of all its entries.
- L1 normThe sum of the absolute values of the entries.
- Absolute value (bars)Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.
- DeterminantA number from a square matrix: how much it scales volume. Zero means it is not invertible.
- TraceThe sum of the diagonal entries of a square matrix.
- DiagBuild a diagonal matrix from a vector, or pull out the diagonal of a matrix.
- Identity matrixThe matrix with 1s on the diagonal and 0s elsewhere; multiplying by it changes nothing.
- Inner product (angle brackets)The inner (dot) product of two vectors: multiply matching entries and add.
- Q, K, V (query, key, value)In attention: queries Q, keys K and values V, each a matrix with one row per token.
- Direct sum / XORUsually concatenation or a direct sum of vectors or spaces; in logic and bit operations, exclusive or.
- RankThe number of independent rows (or columns) of a matrix: how many dimensions it really uses.
- Vectorization (vec)Stack a matrix’s columns into one long vector.
- SpanEvery vector you can make as a weighted sum of the given vectors.
- Dagger / pseudo-inverseThe Moore–Penrose pseudo-inverse A⁺ (written A† in many ML papers); in physics, the conjugate transpose.
- Perpendicular / independentOrthogonal (at right angles, dot product zero); doubled, statistically independent.
- Succeeds / PSD orderFor matrices, A ⪰ 0 means positive semidefinite; for outputs, y_w ≻ y_l means y_w is preferred.
Calculus and gradients
Gradients, partial derivatives and the chain rule that backpropagation runs on. Practice them in Deep Learning Math by Hand.
- Nabla (gradient)The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
- Partial derivativeA partial derivative: how one quantity changes when one input changes and the others are held fixed.
- Derivative (d/dx)An ordinary derivative: the rate of change of one quantity with respect to one variable.
- IntegralAn integral: a continuous sum. In ML it is usually an expectation or a marginalization.
- LimitThe value an expression approaches as a variable approaches something.
- InfinityInfinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
- PrimeEither a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
- Hessian matrixThe Hessian ∇²f is the matrix of second derivatives: how the gradient changes as you move.
- Jacobian matrixThe Jacobian ∂y/∂x is the matrix of every output’s derivative with respect to every input.
- Dot accent (time derivative)A dot over a letter is its rate of change over time: ẋ = dx/dt. Two dots is the second derivative.
Probability and statistics
Expectations, distributions, sampling and divergences. Practice them in Probability & Statistics for Machine Learning.
- ExpectationThe expected value: the average of what is inside, weighted by the probabilities in the subscript.
- Distributed as (tilde)“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
- Given (conditional bar)“Given”: p(y | x) is the probability of y given that x is known.
- Probability p(x)A probability or probability density; p is usually the true or model distribution, q an approximation.
- KL divergenceHow different distribution q is from p. Zero when they match; not symmetric.
- VarianceHow spread out a random quantity is: the expected squared distance from its mean, σ².
- CovarianceHow two random quantities vary together; positive when they rise together.
- Normal distributionThe normal (Gaussian) distribution with the given mean and variance.
- Proportional toEqual up to a constant factor that does not depend on the variable of interest.
- Semicolon (parameterized by)In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
- Indicator function1 when the condition inside is true, 0 when it is false.
- LogarithmA logarithm, almost always the natural log (base e) in ML papers.
- ExponentialThe exponential function eˣ, with e ≈ 2.718. Always positive.
- Entropy and cross-entropyH(p) is the entropy of a distribution: its average surprise. H(p, q) is the cross-entropy.
- Mutual informationI(X; Y) is how much knowing Y tells you about X, in bits or nats. Zero means independent.
- Uniform distribution𝒰(a, b) is the uniform distribution: every value between a and b is equally likely.
- Bernoulli distributionBernoulli(p) is a coin flip: 1 with probability p, 0 otherwise.
- Categorical distributionCat(π) picks one of K classes, class k with probability πₖ. It is how a model samples the next token.
- Dirichlet distributionDir(α) is a distribution over probability vectors: each draw is a list of K numbers that sum to 1.
Functions and operators
Sums, products, softmax, argmax and the named functions papers lean on. Practice them in Deep Learning Math by Hand.
- SummationAdd up the expression for every value of the index, from the bottom limit to the top.
- ProductMultiply the expression for every value of the index.
- ArgmaxThe input that makes the function largest, not the largest value itself.
- ArgminThe input that makes the function smallest: θ* = argmin L(θ) is the best parameter setting.
- Max and minThe largest (or smallest) value, over the arguments or over the range in the subscript.
- SoftmaxTurns a vector of scores into probabilities: exponentiate each, then divide by the total.
- ReLUThe rectified linear unit: keeps positive inputs, replaces negative ones with 0.
- Hyperbolic tangentAn S-shaped activation squashing any number into (−1, 1).
- FractionDivision: the top divided by the bottom.
- Square rootThe square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
- Composition (circle)Function composition: (f ∘ g)(x) = f(g(x)). Some papers use it for elementwise products.
- Assignment arrowAssignment in an algorithm: replace the variable on the left with the value on the right.
- Arrow (maps to)Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- Cases (piecewise)A piecewise definition: the value on each line applies when that line’s condition holds.
- SineThe sine function; in ML papers mostly inside positional encodings and rotary embeddings.
- CosineThe cosine function; in ML papers usually cosine similarity, a cosine schedule, or positional encodings.
- TangentThe tangent function sin/cos; rare in ML papers, and not the same as tanh.
- Sign functionThe sign of a number: +1 if positive, −1 if negative, 0 at zero. Applied elementwise to vectors.
- Floor and ceilingRound down (floor ⌊x⌋) or round up (ceiling ⌈x⌉) to a whole number.
- ModuloThe remainder after division: 7 mod 3 = 1.
- Binomial coefficient“n choose k”: the number of ways to pick k items from n, ignoring order.
- Softpluslog(1 + eˣ): a smooth ReLU whose output is always positive.
- Logit and logitsThe log-odds log(p/(1−p)), the inverse of the sigmoid; “logits” are the raw scores before a softmax.
- Log-sum-explog Σ exp(zᵢ): a smooth maximum, and the normalizer of a softmax in log space.
- SiLU / Swish (and SwiGLU)SiLU(x) = x·σ(x), a smooth ReLU; SwiGLU is the gated feed-forward layer built from it.
- ClipLimit a value to a range: clip(x, a, b) is a if x < a, b if x > b, else x.
- Feed-forward network (FFN, MLP)A small network applied to each position: a linear layer, an activation, and another linear layer.
- Stop-gradientThe value passes through unchanged, but no gradient flows back through it.
- ConcatenationJoin vectors end to end: a vector of length m and one of length n become one of length m + n.
- Plus or minusBoth signs at once: a ± b means a + b and a − b. In results tables, a mean and its spread.
- Iverson bracketSquare brackets around a condition: 1 if it is true, 0 if it is false.
- Big-O notationHow a cost grows with size, ignoring constants: O(n²) means at most proportional to n² for large n.
Reinforcement learning
States, actions, rewards, returns, value functions and the other letters of RL papers. Practice them in Probability & Statistics for Machine Learning.
- Value function VV(s) is how much total discounted reward to expect from state s onward.
- Action-value function QQ(s, a) is the expected total reward from taking action a in state s, then following the policy.
- Advantage AA(s, a) = Q − V: how much better action a is than the policy’s average action in state s.
- Reward rrₜ is the reward received at step t; R(s, a) is the reward function that hands it out.
- State s and action asₜ is the state at step t, aₜ the action taken there; s′ is the next state.
- Return GGₜ is the return: the total discounted reward from step t onward. The agent maximizes its expectation.
- Objective JJ(θ) is the objective: the quantity to maximize, such as the expected return of a policy.
- State and action spaces𝒮 is the set of all states and 𝒜 the set of all actions in a Markov decision process.
Sets, shapes and definitions
Membership, number sets, tensor shapes, definitions and comparisons. Practice them in Linear Algebra for Machine Learning by Hand.
- Real numbers (ℝ) and shapesThe real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
- Element of“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
- Set bracesA set: a collection of items. {x | condition} is every x that satisfies the condition.
- For all“For every”: the statement holds for each value. ∃ means “there exists”.
- Defined as (:=)“Is defined as”: introduces a new name for the expression on the other side.
- Defined as (≜)“Is defined as”: the same as :=. Introduces notation; it is not a claim to check.
- Approximately equalApproximately equal: often a Monte Carlo estimate or a Taylor approximation.
- Identically equalIdentically equal (for every input), or “defined as”, depending on the author.
- InequalitiesLess than / greater than (or equal). ≪ means “much smaller than”.
- Tensor shapesℝ with a superscript of sizes joined by × declares an array’s shape: ℝ^{B×T×d} is a 3-axis tensor.
- SubsetA ⊆ B: every element of A is also in B. ⊇ is the same, read from the other side.
- Union and intersectionUnion ∪: in either set. Intersection ∩: in both.
- Set differenceA ∖ B: everything in A that is not in B.
- Empty setThe set with nothing in it.
- Logical and, or, not∧ is “and”, ∨ is “or”, ¬ is “not”. In some papers ∧ and ∨ mean min and max.
- If and only if“If and only if”: each side implies the other, so they are true together or false together.
- Not equalThe two sides are different.
As an Amazon Associate I earn from qualifying purchases.