Papers · Generative models · 2021
High-Resolution Image Synthesis with Latent Diffusion Models
The notation of the Latent diffusion paper, explained: its 26 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Read from arXiv's HTML version: 26 displayed equations and 205 pieces of inline math. 55 symbols and constructs from the catalog, read as probability and statistics.
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) 283 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 213 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) 68 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- ,
Calligraphic letters 29 uses
A script capital usually names a set, a space, a distribution or a loss.
Dataset (𝒟) 14 uses
The dataset: usually N input-label pairs.
- , ,
Superscript in parentheses 6 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- , ,
Hat (estimate) 6 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Dots (ellipsis) 3 uses
“And so on”: continue the pattern.
Tilde accent 1 use
A modified version of the variable: noisy, corrupted, proposed or intermediate.
Star (optimal) 1 use
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
Greek letters
Theta 37 uses
The model’s parameters: all of its weights and biases, as one collection.
- ,
Epsilon 29 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Sigma (lowercase) 26 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Tau 20 uses
A temperature that sharpens or flattens a softmax; in RL, a trajectory.
Zeta 17 uses
A spare letter: an auxiliary variable, a noise term, or the Riemann zeta function ζ(s).
Alpha 16 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Eta 8 uses
The learning rate in most gradient-descent papers.
- ,
Phi 7 uses
The parameters of a second model (often the encoder q_φ), or a feature map φ(x).
Mu 6 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Psi 3 uses
The parameters of a third network (after θ and φ), a feature map, or the digamma function ψ(x).
Kappa 2 uses
A condition number κ(A), a kernel function κ(x, x′), or a concentration parameter.
Vectors and matrices
Times (cross) 97 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Centre dot 15 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
- , ,
Norm 7 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Absolute value (bars) 7 uses
Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.
- , ,
Transpose 3 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
Dagger / pseudo-inverse 1 use
The Moore–Penrose pseudo-inverse A⁺ (written A† in many ML papers); in physics, the conjugate transpose.
Calculus and gradients
Integral 1 use
An integral: a continuous sum. In ML it is usually an expectation or a marginalization.
Nabla (gradient) 1 use
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
Probability and statistics
- , ,
Probability p(x) 38 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Given (conditional bar) 36 uses
“Given”: p(y | x) is the probability of y given that x is known.
Normal distribution 10 uses
The normal (Gaussian) distribution with the given mean and variance.
- , ,
Expectation 6 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
Distributed as (tilde) 6 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
Logarithm 6 uses
A logarithm, almost always the natural log (base e) in ML papers.
Indicator function 4 uses
1 when the condition inside is true, 0 when it is false.
Semicolon (parameterized by) 4 uses
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Functions and operators
Plus or minus 122 uses
Both signs at once: a ± b means a + b and a − b. In results tables, a mean and its spread.
- , ,
Fraction 14 uses
Division: the top divided by the bottom.
Assignment arrow 8 uses
Assignment in an algorithm: replace the variable on the left with the value on the right.
- ,
Summation 5 uses
Add up the expression for every value of the index, from the bottom limit to the top.
- ,
Arrow (maps to) 3 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- ,
Square root 2 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
Feed-forward network (FFN, MLP) 2 uses
A small network applied to each position: a linear layer, an activation, and another linear layer.
- ,
Max and min 2 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
Product 1 use
Multiply the expression for every value of the index.
Composition (circle) 1 use
Function composition: (f ∘ g)(x) = f(g(x)). Some papers use it for elementwise products.
Softmax 1 use
Turns a vector of scores into probabilities: exponentiate each, then divide by the total.
Cases (piecewise) 1 use
A piecewise definition: the value on each line applies when that line’s condition holds.
Sets, shapes and definitions
- , ,
Tensor shapes 18 uses
ℝ with a superscript of sizes joined by × declares an array’s shape: ℝ^{B×T×d} is a 3-axis tensor.
Element of 12 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
- , ,
Set braces 9 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
- ,
Defined as (:=) 4 uses
“Is defined as”: introduces a new name for the expression on the other side.
- , ,
Inequalities 4 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Real numbers (ℝ) and shapes 1 use
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
4 things the catalog has no entry for yet
-
\uparrow29 -
\downarrow19 -
\}5 -
KL4
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)
- Classifier-Free Diffusion Guidance (Classifier-free guidance, 2022)
- Density estimation using Real NVP (RealNVP, 2016)