Generative Models · 171
Glossary
The technical terms of this track, with short definitions (and the Persian term where available). Each term links to the lesson where it is introduced.
- 1-Lipschitz
- A function with for all . For a differentiable this means everywhere. Introduced in: Lesson 5
- active units
- The latent dimensions with . Dimensions that are not active have collapsed. Introduced in: Lesson 2
- adaLN-Zero
- Conditioning by a shift, a scale and a gate per block, computed from a global vector (timestep and class). The gates start at zero, so every block is the identity at initialization. Introduced in: Lesson 13
- affine coupling layer
- A flow layer that keeps one half of the coordinates and uses them to scale and shift the other half, . Its Jacobian is triangular, so the log-determinant is . Introduced in: Lesson 4
- amortization gap
- The part of the ELBO gap caused by the encoder not outputting the best member of the family for a given , . Introduced in: Lesson 1
- amortized inference
- Using one encoder network to output the variational distribution for every data point, instead of optimizing a separate for each point. Introduced in: Lesson 1
- ancestral sampling
- Sampling a model in the order of its factors, for example first and then , or one after another in an autoregressive model. Introduced in: Lesson 1
- approximation gap
- The part of the ELBO gap that remains with the best member of the chosen family, . It is large when the family is too simple. Introduced in: Lesson 1
- autoregressive model
- A model that learns each conditional of the chain rule with a network that sees only the earlier variables. It gives an exact likelihood in one pass and samples in sequential passes. Introduced in: Lesson 3
- autoregressive property
- The requirement that the parameters of factor depend only on . It guarantees that the product of the conditionals is a normalized distribution. Introduced in: Lesson 3
- backbone
- The denoising network of a diffusion model, usually a U-Net or a transformer. Introduced in: Lesson 13
- bits per dimension (bpd)
- The negative log-likelihood of an image in bits divided by the number of dimensions . For 8-bit data, a uniform model has 8 bpd. Introduced in: Lesson 14
- blind spot
- A wedge of earlier pixels to the upper right that a stack of masked convolutions in PixelCNN never sees, although they come before the target in raster order. The gated PixelCNN removes it with two stacks. Introduced in: Lesson 3
- calibration
- Statistical consistency between forecasts and outcomes. A calibrated ensemble treats the outcome as one more exchangeable member. Introduced in: Lesson 14
- causal mask
- The attention mask that sets the scores from position to all later positions to before the softmax, so position sees only its prefix. Introduced in: Lesson 3
- chain rule of probability
- The exact factorization , valid for every distribution and every order of the variables. Introduced in: Lesson 3
- classifier guidance
- Adding from a separately trained noisy classifier to the unconditional score, with guidance scale . Introduced in: Lesson 11
- classifier-free guidance (CFG)
- Combining the conditional and unconditional predictions of one network, . is the conditional model and is guidance; it costs 2 NFE per step. Introduced in: Lesson 11
- codebook
- The finite list of code vectors of a VQ-VAE. The codebook loss moves each code toward the encoder outputs assigned to it. Introduced in: Lesson 2
- commitment loss
- The VQ-VAE term that keeps the encoder output close to its chosen code. Introduced in: Lesson 2
- condition dropout
- Replacing the condition by a null token with probability (often 0.1–0.2) during training, so one network learns the conditional and the unconditional model. Introduced in: Lesson 11
- conditional flow matching (CFM) loss
- . It equals the flow matching loss plus a constant, so it has the same minimizer, but its minimum is not zero. Introduced in: Lesson 10
- conditional path
- The path of one pair, for the linear path. Its velocity is the conditional velocity. Introduced in: Lesson 10
- consistency distillation (CD)
- Training a consistency model by comparing its outputs at two adjacent noise levels, where the lower point comes from one ODE solver step of a pretrained teacher. Introduced in: Lesson 12
- consistency function
- The map from any point of a PF-ODE path to the end point of that path. It satisfies self-consistency and the boundary condition . Introduced in: Lesson 12
- consistency model
- A network trained to be a consistency function, so it generates a sample in one step (or a few steps with re-noising). Introduced in: Lesson 12
- consistency training (CT)
- Training a consistency model without a teacher, using and with the same noise as the pair of adjacent points. Introduced in: Lesson 12
- continuity equation
- . It says that probability mass moves with the vector field and is conserved. Introduced in: Lesson 4
- continuous normalizing flow (CNF)
- A flow defined by an ODE . The log-density changes along a path by minus the divergence of , . Introduced in: Lesson 4
- continuous ranked probability score (CRPS)
- . It is strictly proper, has the units of , and works with samples. Introduced in: Lesson 14
- contrastive divergence (CD-)
- An EBM training method that starts MCMC chains at the data batch and runs steps to get negative samples. It is cheap but biased. Introduced in: Lesson 6
- convex conjugate
- . It gives the variational lower bound used by f-GAN. Introduced in: Lesson 5
- coupling
- A joint distribution of whose marginals are and . It is a transport plan that says how much mass moves from each to each . Introduced in: Lesson 5
- critic
- The network of a Wasserstein GAN. It has no sigmoid and is kept (approximately) 1-Lipschitz, so its objective estimates . Introduced in: Lesson 5
- cross-attention
- Attention in which the queries come from the image (or latent) tokens and the keys and values come from the condition tokens, such as text. Introduced in: Lesson 13
- data assimilation
- Estimating the state of a dynamical system, such as the atmosphere, from a model and sparse noisy observations over time. Introduced in: Lesson 15
- data distribution
- The unknown distribution from which the training examples were drawn. Introduced in: Lesson 1
- DDIM
- A sampler that predicts and puts it back at a lower noise level with the predicted noise. With no fresh noise () it is the Euler step of the PF-ODE in EDM coordinates; with it is DDPM. Introduced in: Lesson 9
- decoder
- The conditional distribution of a latent variable model, usually given by a neural network. Also called the likelihood. Introduced in: Lesson 1
- denoiser
- The function that returns the mean clean point given a noisy point. It is the optimal predictor of in squared error. Introduced in: Lesson 6
- denoising score matching (DSM)
- Regressing on the known target . Its minimizer is the score of the noisy density , and its loss differs from explicit score matching on only by a constant. Introduced in: Lesson 6
- diffusion coefficient
- The factor that scales the random part of an SDE. Introduced in: Lesson 9
- diffusion model
- A generative model that learns to reverse a fixed process that adds Gaussian noise to data step by step. Sampling starts from pure noise and removes noise step by step. Introduced in: Lesson 7
- diffusion transformer (DiT)
- A transformer backbone for latent diffusion that cuts the latent into patches, one token per patch, and uses adaLN-Zero blocks. Introduced in: Lesson 13
- Dirac-GAN
- A GAN with data at a point mass at 0, a generator at a point mass at and a linear discriminator. Plain gradient play circles around the equilibrium and does not converge. Introduced in: Lesson 5
- distortion
- The reconstruction term of the negative ELBO, . It measures how badly the decoder rebuilds . Introduced in: Lesson 2
- distribution matching distillation (DMD)
- Training a one-step generator whose KL gradient is the difference of the teacher's score and a score model fitted to the generator's own samples, plus a regression loss. Introduced in: Lesson 12
- divergence
- The trace of the Jacobian of a vector field, . It is the rate at which the flow expands volume. Introduced in: Lesson 4
- downsampling factor
- The integer with latent size , . Stable Diffusion uses . Introduced in: Lesson 13
- DPS (diffusion posterior sampling)
- Zero-shot guidance with the likelihood score . It works for any differentiable but ignores the uncertainty of . Introduced in: Lesson 15
- drift
- The deterministic part of an SDE. Introduced in: Lesson 9
- EDM coordinates
- and , so that . In them the PF-ODE is . Introduced in: Lesson 9
- EDM preconditioning
- The form of Karras et al. 2022, with coefficients chosen so that the network input and its effective target have unit variance. Introduced in: Lesson 8
- ELBO (evidence lower bound)
- . It satisfies , so it is a lower bound that is tight when is the posterior. Introduced in: Lesson 1
- EM algorithm
- Expectation–maximization. It alternates an E-step that sets to the exact posterior (gap 0) and an M-step that maximizes the ELBO over . Each iteration does not decrease the log-likelihood. Introduced in: Lesson 1
- encoder
- A network that outputs the variational distribution for any input . Introduced in: Lesson 1
- energy score
- The multivariate version of the CRPS, . It is strictly proper but weak at detecting wrong correlations. Introduced in: Lesson 14
- energy-based model (EBM)
- A density given by an energy function . Low energy means high probability. Introduced in: Lesson 6
- Euler–Maruyama
- The simplest discretization of an SDE, for . The noise scales with . Introduced in: Lesson 6
- evidence
- The marginal density of an observed point in a latent variable model. Its logarithm is the quantity that the ELBO bounds from below. Introduced in: Lesson 1
- exposure bias
- The mismatch between training on real prefixes and sampling from the model's own prefixes, which can let errors build up over long sequences. It does not bias the likelihood. Introduced in: Lesson 3
- f-divergence
- for a convex with . KL () and the JSD are examples. Introduced in: Lesson 5
- FID
- Fréchet Inception Distance. The Fréchet distance between Gaussians fitted to Inception-v3 features of real and generated images; lower is better. It is biased upward for a finite sample size. Introduced in: Lesson 14
- Fisher divergence
- , the mean squared distance between two scores. Introduced in: Lesson 6
- flow matching
- Learning the velocity field of an ODE that carries noise to data by regression on a probability path. The flow matching loss regresses on the unknown marginal velocity. Introduced in: Lesson 10
- forward operator
- The map from the unknown to what the sensors see, for example a blur, a mask or a subsampled Fourier transform. Introduced in: Lesson 15
- forward posterior
- The Gaussian , known in closed form. Each ELBO term of DDPM compares a learned reverse step with it. Introduced in: Lesson 7
- forward process
- The fixed noising chain of DDPM. Its marginal is . Introduced in: Lesson 7
- free bits
- Replacing by , so the first nats per latent dimension cost nothing. It is a fix for posterior collapse. Introduced in: Lesson 2
- Fréchet distance
- The squared 2-Wasserstein distance between two Gaussians, . Introduced in: Lesson 14
- generative adversarial network (GAN)
- A generator that maps noise to samples and a discriminator that classifies samples as real or fake, trained as a two-player game. Introduced in: Lesson 5
- generative model
- A model of a probability distribution that should be close to the data distribution. It is used to draw new samples, to score inputs by their density, or to condition on part of the input. Introduced in: Lesson 1
- Glow
- A flow for images built from actnorm, invertible convolutions and affine coupling layers. Introduced in: Lesson 4
- gradient penalty
- The WGAN-GP term at random interpolates of real and fake points. It softly enforces the 1-Lipschitz condition. Introduced in: Lesson 5
- guidance
- Changing the score (or noise prediction) at sampling time to make samples more typical of a condition , at the cost of diversity. Introduced in: Lesson 11
- Heun's method
- A second-order ODE solver: an Euler predictor step, then a trapezoidal corrector that averages the slopes at both ends. It costs 2 NFE per step. Introduced in: Lesson 9
- Hutchinson's estimator
- An unbiased estimate of a trace, for random with . FFJORD uses it to estimate the divergence with one vector–Jacobian product per probe. Introduced in: Lesson 4
- IAF (inverse autoregressive flow)
- An autoregressive flow in the sampling direction, . Sampling takes one pass, but the density of an outside point takes passes. Introduced in: Lesson 4
- ill-posed
- A problem in which many fit the data equally well, or the solution changes a lot with small changes in . The prior decides which solutions are plausible. Introduced in: Lesson 15
- implicit classifier gradient
- , read off from the difference of the conditional and unconditional predictions. Introduced in: Lesson 11
- importance weight
- The ratio . Its mean under is . Introduced in: Lesson 1
- inverse problem
- Recovering an unknown from measurements . The answer is the posterior . Introduced in: Lesson 15
- IWAE bound
- The importance-weighted bound with samples from . is the ELBO, and grows with toward . Introduced in: Lesson 1
- Jensen–Shannon divergence (JSD)
- with . It is symmetric and lies between and ; it is whenever the supports do not overlap. Introduced in: Lesson 5
- joint attention
- Attention over the concatenation of image and text tokens, so both streams read each other. MM-DiT (Stable Diffusion 3) uses it with separate weights per stream. Introduced in: Lesson 13
- Kantorovich–Rubinstein duality
- . It turns the transport problem into a maximization over 1-Lipschitz functions. Introduced in: Lesson 5
- KID
- Kernel Inception Distance. An unbiased estimate of MMD$^2$ on Inception features with the cubic kernel . Introduced in: Lesson 14
- KL annealing
- Raising the weight of the KL term from 0 to 1 during training, to reduce posterior collapse. Introduced in: Lesson 2
- KV cache
- The stored keys and values of all earlier positions in a causal transformer. With it, each new sampling step computes attention only for the new position. Introduced in: Lesson 3
- Langevin dynamics
- The SDE , which has as a stationary density. It is noisy gradient ascent on . Introduced in: Lesson 6
- latent diffusion
- A two-stage design: train an autoencoder that compresses images into a smaller latent, then train the diffusion model on the latents and decode once at the end. Introduced in: Lesson 13
- latent variable model
- A model with a hidden variable , a simple prior and a simple likelihood (decoder) . Its density is the marginal . Introduced in: Lesson 1
- log score
- The scoring rule . It is strictly proper but needs a density. Introduced in: Lesson 14
- MADE
- Masked autoencoder for distribution estimation. An MLP whose weight matrices are multiplied by binary masks built from unit degrees, so output depends only on inputs . Introduced in: Lesson 3
- MAF (masked autoregressive flow)
- An autoregressive flow in the density direction, . The density takes one pass; sampling takes passes. Introduced in: Lesson 4
- marginal velocity
- , the average of the conditional velocities through at time . It generates the marginal path. Introduced in: Lesson 10
- maximum likelihood estimation (MLE)
- Choosing the parameters that maximize the average log-density of the data, . It is the same as minimizing the forward KL divergence . Introduced in: Lesson 1
- maximum mean discrepancy (MMD)
- , the squared distance between the mean feature vectors of two distributions in the feature space of a kernel . Introduced in: Lesson 14
- Metropolis-adjusted Langevin algorithm (MALA)
- ULA used as a proposal, followed by a Metropolis–Hastings accept/reject step. The accept step removes the bias of ULA. Introduced in: Lesson 6
- Min-SNR-
- A loss weight that caps the weight in units at , usually with . It lowers the weight of the easy low-noise levels. Introduced in: Lesson 8
- minibatch optimal transport (OT)
- Re-pairing the data and noise points of each training batch by an exact assignment before flow matching, so the pairs cross less. Introduced in: Lesson 10
- mode collapse
- A GAN failure in which the generator maps many values of to one or a few modes of the data, so samples look good but have low diversity. Introduced in: Lesson 5
- mode covering
- The behavior of a model fitted by the forward KL . It must put mass on every region where the data has mass, so it spreads over all modes. Also called mass covering. Introduced in: Lesson 1
- mode seeking
- The behavior of a model fitted by the reverse KL . Mass where is tiny is expensive and missing regions cost nothing, so tends to sit inside one mode. Introduced in: Lesson 1
- moment matching
- The result that the Gaussian with the smallest forward KL to (the MLE Gaussian) has the same mean and covariance as . More generally, MLE in an exponential family matches the expected sufficient statistics. Introduced in: Lesson 1
- network function evaluations (NFE)
- The number of network calls a sampler makes. Samplers are compared at equal NFE, because the network dominates the cost. Introduced in: Lesson 9
- noise schedule
- The sequence of per-step noise variances, with and . Common choices are the linear and the cosine schedule. Introduced in: Lesson 7
- noise-contrastive estimation
- Training an unnormalized model by a logistic classifier that separates data from samples of a known noise distribution; is learned as one more parameter. Introduced in: Lesson 6
- noise-prediction network
- A network trained to predict the noise that was added to . DDPM trains it with the simple loss . Introduced in: Lesson 7
- noisy classifier
- The classifier on noisy inputs. It is the clean classifier averaged over the denoising posterior . Introduced in: Lesson 11
- non-saturating loss
- The generator loss . It gives large gradients when the discriminator confidently rejects the fakes, unlike the original (saturating) loss . Introduced in: Lesson 5
- normalizing flow
- An invertible map from data to a simple base distribution. Its density follows from the change of variables, . Introduced in: Lesson 4
- null token
- A special "no condition" input that gives the unconditional prediction of a conditional network. Introduced in: Lesson 11
- order of a solver
- The power in "global error ". Euler has order 1 and Heun has order 2. Introduced in: Lesson 9
- partition function
- The normalizing constant of an energy-based model. In high dimension it cannot be computed. Introduced in: Lesson 6
- patchify
- Cutting a latent of side into patches and embedding each one linearly, which gives tokens. Introduced in: Lesson 13
- pathwise gradient estimator
- A gradient estimator that differentiates through the sample using the reparameterization trick. It usually has a much lower variance than the score-function estimator. Introduced in: Lesson 2
- perplexity
- of the mean negative log-likelihood per token in nats, . A uniform model over tokens has perplexity . Introduced in: Lesson 3
- positive and negative phase
- The two parts of the EBM log-likelihood gradient. The positive phase lowers the energy at the data points; the negative phase raises the energy at samples from the model. Introduced in: Lesson 6
- posterior collapse
- A failure of VAE training in which for all (in all or some latent dimensions), so carries no information and the decoder ignores it. Introduced in: Lesson 2
- precision and recall (generative)
- Precision is the share of generated samples that lie in the support of the real data (fidelity). Recall is the share of real samples that lie in the support of the model (diversity). Introduced in: Lesson 14
- prior
- The distribution of the latent variable before seeing , usually . Introduced in: Lesson 1
- probability integral transform (PIT)
- The value of the true value under the claimed distribution function. It is uniform on when the distribution is calibrated. Introduced in: Lesson 15
- probability path
- A family of densities , , from the data () to the noise (). Introduced in: Lesson 10
- probability-flow ODE (PF-ODE)
- The deterministic ODE . It has the same marginals as the forward SDE and maps noise to data by a deterministic, invertible map. Introduced in: Lesson 9
- progressive distillation
- Training a student whose one sampler step equals two steps of the teacher, then repeating with the student as the new teacher, to halve the number of steps each round. Introduced in: Lesson 12
- proper scoring rule
- A scoring rule whose expected value under the truth is smallest at . It is strictly proper if is the only minimizer. Introduced in: Lesson 14
- R1 penalty
- The term added to the discriminator loss. It makes the GAN game converge locally, for example in the Dirac-GAN. Introduced in: Lesson 5
- rank histogram
- A histogram of the rank of the outcome among the ensemble members over many cases. It is flat for a calibrated ensemble, U-shaped when the ensemble is too narrow and dome-shaped when it is too wide. Introduced in: Lesson 14
- raster order
- The pixel order of PixelCNN, row by row and left to right within each row. Introduced in: Lesson 3
- rate
- The KL term of the negative ELBO, . It is the price, in nats, of storing information about in . Introduced in: Lesson 2
- rectified flow
- The flow learned with the linear path. Reflow trains it again on the pairs (noise, generated sample) of the trained flow, which makes its paths straighter. Introduced in: Lesson 10
- reflow
- Training a new flow-matching model on the deterministic pairs produced by a trained flow. The lines cross less, so the new paths are straighter and need fewer steps. Introduced in: Lesson 10
- reparameterization trick
- Writing a sample as a differentiable function of the parameters and independent noise, for example with , so that gradients flow through into the encoder. Introduced in: Lesson 2
- reverse process
- The learned Markov chain that runs from back to data. Introduced in: Lesson 7
- reverse-time SDE
- , solved from noise to data. It has the same marginals as the forward SDE. Introduced in: Lesson 9
- scale factor
- The constant that rescales the latents to about unit variance before diffusion, for example for Stable Diffusion v1. Introduced in: Lesson 13
- scheduled sampling
- A fix for exposure bias that sometimes feeds the model's own predictions as the prefix during training. Introduced in: Lesson 3
- score
- The gradient of the log-density, . It does not depend on the normalizing constant; for an EBM it is . Introduced in: Lesson 6
- score matching
- Fitting a model score to the score of the data. Explicit score matching minimizes the Fisher divergence; implicit and denoising score matching remove the unknown target. Introduced in: Lesson 6
- score-based data assimilation (SDA)
- A diffusion prior over whole trajectories, built from local scores on short windows, combined with observation guidance and predictor–corrector sampling. Introduced in: Lesson 15
- score-function estimator
- The gradient estimator (REINFORCE). It needs only values of , so it works for discrete , but its variance is high. Introduced in: Lesson 2
- scoring rule
- A number that rates a forecast distribution after the outcome is seen. In this track lower is better. Introduced in: Lesson 14
- SDEdit
- Noising a guess to a level and running the unconditional reverse process. It uses no likelihood; trades faithfulness against realism. Introduced in: Lesson 15
- signal scale and noise scale
- The numbers and in . In DDPM, and . Introduced in: Lesson 8
- signal-to-noise ratio (SNR)
- . It decreases as goes from data to noise. Its logarithm is the log-SNR. Introduced in: Lesson 8
- simulation-based calibration (SBC)
- A test of a posterior sampler. Draw from the prior, simulate , draw posterior samples, and record the rank of . For an exact sampler the ranks are uniform. Introduced in: Lesson 15
- spectral normalization
- Dividing each weight matrix by its largest singular value (estimated by power iteration), which bounds the Lipschitz constant of the network by 1. Introduced in: Lesson 5
- spread–skill ratio
- The ensemble spread divided by the RMSE of the ensemble mean. With the correction factor it is about 1 for a calibrated ensemble. Introduced in: Lesson 14
- step schedule
- The noise levels at which a sampler calls the network, for example the Karras grid with parameter . Introduced in: Lesson 9
- stochastic differential equation (SDE)
- An equation for a random path, with drift , diffusion coefficient and Brownian motion . Introduced in: Lesson 9
- straightness
- , which measures how much the velocity changes along the flow's paths. means straight paths, where one Euler step is exact. Introduced in: Lesson 10
- target network
- A copy of the network with parameters , a stop-gradient moving average of , used to compute the training target. Introduced in: Lesson 12
- teacher forcing
- Training an autoregressive model with the true prefix from the data as input, not the model's own samples. Introduced in: Lesson 3
- tilted target
- The density . CFG does not sample it exactly for , because the guided scores do not belong to one diffusion path. Introduced in: Lesson 11
- train–test mismatch (zero terminal SNR)
- When the last noise level still has , training inputs at contain some signal, but sampling starts from pure noise. The fix is a schedule that reaches SNR 0. Introduced in: Lesson 8
- Tweedie's formula
- For , . It links the best denoiser to the score of the noisy density. Introduced in: Lesson 6
- unadjusted Langevin algorithm (ULA)
- The Euler–Maruyama step of the Langevin SDE with a fixed step , . Its stationary distribution has an error of order . Introduced in: Lesson 6
- uniform dequantization
- Training a continuous density on with for integer data . The continuous log-likelihood is then a lower bound on the log-probability of the discrete model. Introduced in: Lesson 14
- value function
- The GAN objective , minimized by and maximized by . Introduced in: Lesson 5
- variance exploding (VE)
- A noising process with , , where grows to a large maximum. Introduced in: Lesson 8
- variance preserving
- A noising process with , which keeps the variance at 1 for data of unit variance. DDPM is variance preserving. Introduced in: Lesson 7
- variational autoencoder (VAE)
- A latent variable model with a neural decoder and a neural encoder , trained together by stochastic gradient ascent on the ELBO. Introduced in: Lesson 2
- variational distribution
- A chosen distribution over the latent that approximates the posterior . Introduced in: Lesson 1
- variogram score
- A scoring rule that compares the expected differences between pairs of sites with the observed ones. It is sensitive to the correlation structure. Introduced in: Lesson 14
- velocity (-prediction)
- The target . In the VP case it is the rate of change of along the angle with , . Introduced in: Lesson 8
- VQ-VAE
- An autoencoder whose latent is the nearest vector of a finite codebook. The gradient passes the quantization with a straight-through copy; a prior over the code indices is fitted afterwards. Introduced in: Lesson 2
- Wasserstein-1 distance
- over all couplings of and , the least work to move one distribution onto the other. It grows smoothly with the distance between non-overlapping distributions. Introduced in: Lesson 5
- weight function
- The function that says how much a diffusion loss counts each log-SNR level. The noise schedule used for training and the prediction target both change it. Introduced in: Lesson 8
- zero-shot guidance
- Solving inverse problems with one unconditional diffusion prior and adding an approximate likelihood score at sampling time, so the same prior serves every and . Introduced in: Lesson 15
- β-VAE
- A VAE trained on distortion $+,\beta\cdot$rate. makes information in more expensive, and makes it cheaper. Introduced in: Lesson 2