Papers · Generative models · 2022
Flow Matching for Generative Modeling
The notation of the Flow matching paper, explained: its 78 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
Flow matching: train a network to output a velocity field that carries noise to data, by regressing onto simple per-example target velocities.
The direction of time is the opposite of diffusion papers: here is the noise and (approximately) the data, so samples are made by integrating from to . is the learned vector field, the target for one data point , and the flow (the map that moves points along).
Read from arXiv's HTML version: 78 displayed equations and 160 pieces of inline math. 52 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 →
- Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- (25)Decode →
- Decode →
- Decode →
- Decode →
- (26)Decode →
- Decode →
- (27)Decode →
- (28)Decode →
- (29)Decode →
- (30)Decode →
- (31)Decode →
- (32)Decode →
- Decode →
- (33)Decode →
- (34)Decode →
- Decode →
- (35)Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- (36)Decode →
- (37)Decode →
- Decode →
- Decode →
- (38)Decode →
- (39)Decode →
- Decode →
- (40)Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- Decode →
- (41)Decode →
- Decode →
- Decode →
- (42)Decode →
- (43)Decode →
- (44)Decode →
- (45)Decode →
- Decode →
- Decode →
- (46)Decode →
- (47)Decode →
Symbols, by category
Most used first. The examples are written as the paper writes them.
Notation conventions
- , ,
Italic letters (variables) 869 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 714 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) 28 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Tilde accent 15 uses
A modified version of the variable: noisy, corrupted, proposed or intermediate.
- ,
Star (optimal) 11 uses
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
Loss (ℒ) 10 uses
The loss: the number training tries to make small. Also written L, J(θ) or ℓ.
Dots (ellipsis) 2 uses
“And so on”: continue the pattern.
Greek letters
- ,
Phi 57 uses
The parameters of a second model (often the encoder q_φ), or a feature map φ(x).
Sigma (lowercase) 50 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Psi 32 uses
The parameters of a third network (after θ and φ), a feature map, or the digamma function ψ(x).
Mu 23 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Beta 18 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Theta 17 uses
The model’s parameters: all of its weights and biases, as one collection.
Alpha 12 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Epsilon 8 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Lambda 4 uses
Usually the strength of a regularization term; also eigenvalues.
Delta (capital) 2 uses
A change or update: ΔW is the change to the weights W.
Vectors and matrices
Times (cross) 27 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
- , ,
Inverse 21 uses
The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
- , ,
Norm 19 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Q, K, V (query, key, value) 13 uses
In attention: queries Q, keys K and values V, each a matrix with one row per token.
Bold uppercase (matrix) 10 uses
A bold capital letter is a matrix (or a higher-order tensor).
Inner product (angle brackets) 7 uses
The inner (dot) product of two vectors: multiply matching entries and add.
Determinant 5 uses
A number from a square matrix: how much it scales volume. Zero means it is not invertible.
- ,
Transpose 5 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
Centre dot 4 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Calculus and gradients
- , ,
Prime 25 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
- , ,
Integral 22 uses
An integral: a continuous sum. In ML it is usually an expectation or a marginalization.
- , ,
Derivative (d/dx) 17 uses
An ordinary derivative: the rate of change of one quantity with respect to one variable.
- ,
Nabla (gradient) 10 uses
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
- ,
Partial derivative 2 uses
A partial derivative: how one quantity changes when one input changes and the others are held fixed.
Infinity 1 use
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
Probability and statistics
- ,
Probability p(x) 215 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Given (conditional bar) 87 uses
“Given”: p(y | x) is the probability of y given that x is known.
Logarithm 40 uses
A logarithm, almost always the natural log (base e) in ML papers.
- , ,
Expectation 19 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
- , ,
Exponential 15 uses
The exponential function eˣ, with e ≈ 2.718. Always positive.
Normal distribution 12 uses
The normal (Gaussian) distribution with the given mean and variance.
Distributed as (tilde) 7 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
Uniform distribution 3 uses
𝒰(a, b) is the uniform distribution: every value between a and b is equally likely.
Semicolon (parameterized by) 1 use
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Functions and operators
- , ,
Fraction 46 uses
Division: the top divided by the bottom.
- ,
Arrow (maps to) 24 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- , ,
Max and min 14 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
- , ,
Square root 6 uses
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
- ,
Summation 2 uses
Add up the expression for every value of the index, from the bottom limit to the top.
Composition (circle) 1 use
Function composition: (f ∘ g)(x) = f(g(x)). Some papers use it for elementwise products.
Sets, shapes and definitions
- ,
Tensor shapes 23 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.
- , ,
Inequalities 8 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Real numbers (ℝ) and shapes 3 uses
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
Approximately equal 2 uses
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
5 things the catalog has no entry for yet
-
div19 -
\downarrow12 -
id4 -
\uparrow3 -
BPD2
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)
- 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)