Papers · Generative models · 2020
Denoising Diffusion Implicit Models
The notation of the DDIM paper, explained: its 79 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
DDIM: the same trained model as DDPM, sampled with a non-random process that needs far fewer steps.
The trap: DDIM writes for what DDPM calls , the cumulative product. The paper says so, but formulas copied between the two papers go wrong if you miss it. sets how random each step is: gives the deterministic DDIM sampler, and a particular larger choice recovers DDPM.
Read from arXiv's HTML version: 79 displayed equations and 173 pieces of inline math. 66 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 →
- Decode →
- (4)Decode →
- (5)Decode →
- (6)Decode →
- (7)Decode →
- (8)Decode →
- (9)Decode →
- (10)Decode →
- (11)Decode →
- Decode →
- (12)Decode →
- (13)Decode →
- (14)Decode →
- (15)Decode →
- (16)Decode →
- (17)Decode →
- (18)Decode →
- (19)Decode →
- (20)Decode →
- (21)Decode →
- Decode →
- (22)Decode →
- (23)Decode →
- Decode →
- (24)Decode →
- (25)Decode →
- (26)Decode →
- (27)Decode →
- (28)Decode →
- (29)Decode →
- Decode →
- (30)Decode →
- (31)Decode →
- (32)Decode →
- (33)Decode →
- (34)Decode →
- (35)Decode →
- (36)Decode →
- (37)Decode →
- (38)Decode →
- (39)Decode →
- (40)Decode →
- (41)Decode →
- (42)Decode →
- (43)Decode →
- (44)Decode →
- (45)Decode →
- (46)Decode →
- (47)Decode →
- (48)Decode →
- (49)Decode →
- (50)Decode →
- (51)Decode →
- (52)Decode →
- (53)Decode →
- Decode →
- (54)Decode →
- (55)Decode →
- (56)Decode →
- (57)Decode →
- (58)Decode →
- (59)Decode →
- Decode →
- (60)Decode →
- (61)Decode →
- Decode →
- (62)Decode →
- (63)Decode →
- Decode →
- (64)Decode →
- (65)Decode →
- (66)Decode →
- Decode →
- Decode →
- Decode →
- (67)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) 1019 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Italic letters (variables) 212 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Superscript in parentheses 70 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- , ,
Bar (mean) 45 uses
A bar usually marks an average: x̄ is the mean of the x values.
- , ,
Superscript (power or label) 40 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
Dots (ellipsis) 11 uses
“And so on”: continue the pattern.
Hat (estimate) 10 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Underbrace and overbrace 7 uses
A horizontal brace under or over part of a formula labels that part. It adds no math.
- ,
Calligraphic letters 4 uses
A script capital usually names a set, a space, a distribution or a loss.
Tilde accent 2 uses
A modified version of the variable: noisy, corrupted, proposed or intermediate.
Greek letters
Alpha 191 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Sigma (lowercase) 167 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Tau 127 uses
A temperature that sharpens or flattens a softmax; in RL, a trajectory.
Theta 115 uses
The model’s parameters: all of its weights and biases, as one collection.
Epsilon 82 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Gamma 21 uses
The discount factor in reinforcement learning, or the learned scale in normalization layers.
Eta 20 uses
The learning rate in most gradient-descent papers.
Delta (capital) 17 uses
A change or update: ΔW is the change to the weights W.
Beta 9 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Mu 7 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.
Vectors and matrices
- ,
Bold lowercase (vector) 551 uses
A bold lowercase letter is a vector: a list of numbers.
Identity matrix 37 uses
The matrix with 1s on the diagonal and 0s elsewhere; multiplying by it changes nothing.
Times (cross) 23 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
- ,
Norm 13 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Centre dot 11 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Q, K, V (query, key, value) 9 uses
In attention: queries Q, keys K and values V, each a matrix with one row per token.
- , ,
Transpose 3 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
Calculus and gradients
- , ,
Derivative (d/dx) 17 uses
An ordinary derivative: the rate of change of one quantity with respect to one variable.
Nabla (gradient) 5 uses
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
- ,
Integral 3 uses
An integral: a continuous sum. In ML it is usually an expectation or a marginalization.
Infinity 1 use
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
Probability and statistics
- ,
Probability p(x) 151 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Given (conditional bar) 98 uses
“Given”: p(y | x) is the probability of y given that x is known.
Normal distribution 35 uses
The normal (Gaussian) distribution with the given mean and variance.
Distributed as (tilde) 33 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
- , ,
Expectation 24 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
Logarithm 24 uses
A logarithm, almost always the natural log (base e) in ML papers.
- ,
KL divergence 18 uses
How different distribution q is from p. Zero when they match; not symmetric.
Indicator function 14 uses
1 when the condition inside is true, 0 when it is false.
Categorical distribution 8 uses
Cat(π) picks one of K classes, class k with probability πₖ. It is how a model samples the next token.
Semicolon (parameterized by) 2 uses
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Functions and operators
- , ,
Square root 99 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
- , ,
Fraction 63 uses
Division: the top divided by the bottom.
- ,
Arrow (maps to) 53 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- , ,
Summation 12 uses
Add up the expression for every value of the index, from the bottom limit to the top.
- , ,
Product 8 uses
Multiply the expression for every value of the index.
Sine 4 uses
The sine function; in ML papers mostly inside positional encodings and rotary embeddings.
Max and min 2 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
Cases (piecewise) 2 uses
A piecewise definition: the value on each line applies when that line’s condition holds.
- ,
Argmin 2 uses
The input that makes the function smallest: θ* = argmin L(θ) is the best parameter setting.
- ,
Floor and ceiling 2 uses
Round down (floor ⌊x⌋) or round up (ceiling ⌈x⌉) to a whole number.
Cosine 1 use
The cosine function; in ML papers usually cosine similarity, a cosine schedule, or positional encodings.
Reinforcement learning
Objective J 13 uses
J(θ) is the objective: the quantity to maximize, such as the expected return of a policy.
Sets, shapes and definitions
Defined as (:=) 18 uses
“Is defined as”: introduces a new name for the expression on the other side.
Element of 16 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
- , ,
Inequalities 14 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Identically equal 7 uses
Identically equal (for every input), or “defined as”, depending on the author.
- , ,
Set braces 7 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
Real numbers (ℝ) and shapes 6 uses
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
For all 3 uses
“For every”: the statement holds for each value. ∃ means “there exists”.
- , ,
Tensor shapes 3 uses
ℝ with a superscript of sizes joined by × declares an array’s shape: ℝ^{B×T×d} is a 3-axis tensor.
Union and intersection 1 use
Union ∪: in either set. Intersection ∩: in both.
Approximately equal 1 use
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
Set difference 1 use
A ∖ B: everything in A that is not in B.
Empty set 1 use
The set with nothing in it.
1 thing the catalog has no entry for yet
-
\dim15
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)
- 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)