Skip to main content
The probability transport chapter moved samples from noise to data along a velocity field. Each sample followed a smooth path, and the flow matching section learned that field from samples. Flow matching designs the motion explicitly. It picks an interpolation between noise and data, which fixes both the path of densities and the velocity field along it, and then learns that field by regression. This chapter asks a different question. Can you get a useful probability path without first designing a velocity field? Diffusion models get one from random paths. A fixed forward process adds a little Gaussian noise at each step, so every data point drifts toward noise. The model learns to reverse that process. Time runs the other way from the transport chapter: data sits at t=0t = 0 and noise at t=Tt = T. The two views meet in the probability flow ODE, introduced in the Fokker-Planck section. The score-based section samples with it once the score is learned. It gives a velocity field that moves the density along the same path as the noisy process. The chapter builds the random process before it trains anything. The Brownian motion section introduces random walks and drift toward the origin. The Fokker-Planck section follows the density of those walks and finds a deterministic flow with the same densities, and the gradient flow section reads that evolution as steepest descent of a free energy. The score-based section then learns the missing score from samples, and the score mixture example repeats the method in two dimensions. The chapter ends with the discrete-time models: the DDPM section, its mixture example, and the DDIM example, which samples deterministically from the same trained model. For a companion text, read the elementary tutorial that derives diffusion models and flow matching from first principles (Nakkiran et al., 2024).

References

  • Nakkiran, P., Bradley, A., Zhou, H., Advani, M. (2024). Step-by-step diffusion: An elementary tutorial. arXiv [cs.LG]. Link

Found an error on this page? Report an issue.