Papers · Generative models · 2020
Denoising Diffusion Probabilistic Models
The notation of the DDPM paper, explained: its 26 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
DDPM: generate images by learning to undo a process that adds Gaussian noise step by step. The training loss turns out to be a simple squared error on the noise.
The schedule is a set of variances . The paper then defines and ; the bar here is a cumulative product, not an average. is the data and the increasingly noisy versions; is the fixed forward process and the learned reverse one. is the network: it predicts the noise in .
Read from arXiv's HTML version: 26 displayed equations and 183 pieces of inline math. 49 symbols and constructs from the catalog.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
- (1)Decode →
- (2)Decode →
- (3)Decode →
- (4)Decode →
- (5)Decode →
- (6)Decode →
- (7)Decode →
- (8)Decode →
- (9)Decode →
- (10)Decode →
- (11)Decode →
- (12)Decode →
- (13)Decode →
- (14)Decode →
- (15)Decode →
- (16)Decode →
- (17)Decode →
- (18)Decode →
- (19)Decode →
- (20)Decode →
- (21)Decode →
- (22)Decode →
- (23)Decode →
- (24)Decode →
- (25)Decode →
- (26)Decode →
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) 504 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Italic letters (variables) 122 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- ,
Bar (mean) 34 uses
A bar usually marks an average: x̄ is the mean of the x values.
- , ,
Superscript (power or label) 22 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Tilde accent 17 uses
A modified version of the variable: noisy, corrupted, proposed or intermediate.
- ,
Dots (ellipsis) 11 uses
“And so on”: continue the pattern.
Hat (estimate) 5 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Underbrace and overbrace 3 uses
A horizontal brace under or over part of a formula labels that part. It adds no math.
Greek letters
Theta 78 uses
The model’s parameters: all of its weights and biases, as one collection.
Alpha 41 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Epsilon 41 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Beta 30 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Mu 27 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Sigma (lowercase) 13 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Sigma (capital) 9 uses
A covariance matrix, or the diagonal matrix of singular values in an SVD. Not the summation sign.
Delta (lowercase) 4 uses
A small change, or the error signal δ = ∂L/∂z in backpropagation.
Lambda 3 uses
Usually the strength of a regularization term; also eigenvalues.
Vectors and matrices
- , ,
Bold lowercase (vector) 397 uses
A bold lowercase letter is a vector: a list of numbers.
Times (cross) 24 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Identity matrix 16 uses
The matrix with 1s on the diagonal and 0s elsewhere; multiplying by it changes nothing.
Bold uppercase (matrix) 9 uses
A bold capital letter is a matrix (or a higher-order tensor).
Norm 9 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Centre dot 2 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Calculus and gradients
- ,
Prime 4 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Integral 2 uses
An integral: a continuous sum. In ML it is usually an expectation or a marginalization.
Infinity 2 uses
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
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) 134 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Given (conditional bar) 71 uses
“Given”: p(y | x) is the probability of y given that x is known.
- ,
KL divergence 26 uses
How different distribution q is from p. Zero when they match; not symmetric.
Logarithm 25 uses
A logarithm, almost always the natural log (base e) in ML papers.
Distributed as (tilde) 21 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
- ,
Expectation 20 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
Normal distribution 18 uses
The normal (Gaussian) distribution with the given mean and variance.
Semicolon (parameterized by) 9 uses
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Entropy and cross-entropy 2 uses
H(p) is the entropy of a distribution: its average surprise. H(p, q) is the cross-entropy.
Uniform distribution 1 use
𝒰(a, b) is the uniform distribution: every value between a and b is equally likely.
Functions and operators
- , ,
Fraction 38 uses
Division: the top divided by the bottom.
- , ,
Square root 30 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
- ,
Summation 12 uses
Add up the expression for every value of the index, from the bottom limit to the top.
Arrow (maps to) 11 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
Plus or minus 10 uses
Both signs at once: a ± b means a + b and a − b. In results tables, a mean and its spread.
- , ,
Product 4 uses
Multiply the expression for every value of the index.
Cases (piecewise) 2 uses
A piecewise definition: the value on each line applies when that line’s condition holds.
Sets, shapes and definitions
- , ,
Inequalities 22 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
- ,
Defined as (:=) 11 uses
“Is defined as”: introduces a new name for the expression on the other side.
Approximately equal 4 uses
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
- , ,
Set braces 4 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
Element of 1 use
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
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 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)
- Classifier-Free Diffusion Guidance (Classifier-free guidance, 2022)
- Density estimation using Real NVP (RealNVP, 2016)