13 · Probability-Flow ODE

NoteDraft topic

This eleven-part topic develops sampling by transporting a simple distribution into a data distribution. The parts use their own index, 01–11, and can be read in sequence. The notes and worked examples are in development.

For the complete training-and-sampling argument in one place, start with 15 · From Score to Sampling. It develops the algorithmic recipe, a solved scalar example, and the distinction between the reverse-SDE and probability-flow samplers.

This topic follows denoising score matching and Langevin sampling and the original DDPM lecture.

Start with particle trajectories and density evolution in one dimension. Then extend the construction to vectors, learn the score from clean/noisy pairs, and implement sampling. The later parts provide experiments and an image-model recipe, then connect probability-flow ODEs to Neural ODEs, normalizing flows, and flow matching.

Part Focus
01 · Transport in one dimension Build a density path and its probability-flow ODE.
02 · Higher-dimensional transport Extend the notation and main results to vectors.
03 · Learning the score Learn a denoiser, recover the score, and construct the sampling field.
04 · One-dimensional experiments Explore four executed notebooks on transport, sampling, training, and denoising.
05 · Image-model recipe Connect the equations to an annotated MNIST implementation.
06 · Train and sample a mixture Work through neural score estimation and generation in an executed notebook.
07 · Empirical-score sampling Compute an exact bank-based score, inspect interpolation and retrieval, and sample scalars and MNIST without training.
08 · Neural ODEs and normalizing flows Connect velocity models, invertible transport, and likelihood.
09 · Flow matching Learn the velocity directly from conditional-path regression.
10 · DDPM through the reverse VP SDE Reinterpret ancestral DDPM as a numerical discretization of the reverse VP SDE.
11 · DDIM and the probability-flow ODE Derive DDIM as Euler integration in transformed probability-flow coordinates.

Parts 01–03 develop the mathematical argument. Part 04 contains focused laptop experiments; Part 06 combines training and sampling in one worked example. Part 05 is the extension to image models. Part 07 provides an exact empirical alternative and makes the supporting observations visible. Parts 08–09 connect the construction to other continuous generative models; Parts 10–11 reinterpret DDPM and DDIM through reverse-SDE and probability-flow dynamics, respectively.

Download all notebooks and code.