Papers · Generative models · 2022
Classifier-Free Diffusion Guidance
The notation of the Classifier-free guidance paper, explained: its 9 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Read from arXiv's HTML version: 9 displayed equations and 133 pieces of inline math. 40 symbols and constructs from the catalog.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
Symbols, by category
Most used first. The examples are written as the paper writes them.
Notation conventions
- , ,
Subscript (index or label) 273 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Italic letters (variables) 102 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Superscript (power or label) 29 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Tilde accent 26 uses
A modified version of the variable: noisy, corrupted, proposed or intermediate.
- ,
Star (optimal) 10 uses
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
- , ,
Dots (ellipsis) 4 uses
“And so on”: continue the pattern.
Greek letters
Lambda 214 uses
Usually the strength of a regularization term; also eigenvalues.
Theta 66 uses
The model’s parameters: all of its weights and biases, as one collection.
Epsilon 53 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Sigma (lowercase) 28 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Alpha 13 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Mu 4 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Vectors and matrices
- , ,
Bold lowercase (vector) 280 uses
A bold lowercase letter is a vector: a list of numbers.
Times (cross) 10 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Identity matrix 7 uses
The matrix with 1s on the diagonal and 0s elsewhere; multiplying by it changes nothing.
Norm 2 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Calculus and gradients
Prime 27 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
- ,
Nabla (gradient) 9 uses
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
Infinity 1 use
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
Integral 1 use
An integral: a continuous sum. In ML it is usually an expectation or a marginalization.
Probability and statistics
- ,
Probability p(x) 73 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Given (conditional bar) 50 uses
“Given”: p(y | x) is the probability of y given that x is known.
Logarithm 13 uses
A logarithm, almost always the natural log (base e) in ML papers.
Normal distribution 9 uses
The normal (Gaussian) distribution with the given mean and variance.
Distributed as (tilde) 9 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
- , ,
Exponential 7 uses
The exponential function eˣ, with e ≈ 2.718. Always positive.
Proportional to 4 uses
Equal up to a constant factor that does not depend on the variable of interest.
Expectation 1 use
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
Functions and operators
- ,
Max and min 17 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
- ,
Tangent 3 uses
The tangent function sin/cos; rare in ML papers, and not the same as tanh.
Arrow (maps to) 2 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
Assignment arrow 1 use
Assignment in an algorithm: replace the variable on the left with the value on the right.
Fraction 1 use
Division: the top divided by the bottom.
Summation 1 use
Add up the expression for every value of the index, from the bottom limit to the top.
Sets, shapes and definitions
Element of 9 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
- , ,
Inequalities 7 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
- , ,
Set braces 6 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
Approximately equal 5 uses
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
Empty set 4 uses
The set with nothing in it.
Real numbers (ℝ) and shapes 1 use
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
3 things the catalog has no entry for yet
-
\triangleright7 -
\downarrow2 -
\uparrow2
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 generative models papers
- Auto-Encoding Variational Bayes (VAE, 2013)
- Generative Adversarial NetsThanks: Sherjil Ozair is visiting Université de Montréal from Indian Institute of Technology DelhiThanks: Yoshua Bengio is a CIFAR Senior Fellow. (GAN, 2014)
- Denoising Diffusion Probabilistic Models (DDPM, 2020)
- Denoising Diffusion Implicit Models (DDIM, 2020)
- Score-Based Generative Modeling through Stochastic Differential Equations (Score SDE, 2020)
- Flow Matching for Generative Modeling (Flow matching, 2022)
- High-Resolution Image Synthesis with Latent Diffusion Models (Latent diffusion, 2021)
- Density estimation using Real NVP (RealNVP, 2016)