29  Dynamics: Differential Equations and Generative Flows

A generative model must carry a simple reference distribution to a complicated data distribution. A dynamical model makes three choices: the probability path between the endpoints, the vector field that moves samples along that path, and the numerical method used to integrate the field. Errors in these three choices have different causes. A poorly estimated field is a statistical error; a coarse solver is a numerical error; and an inconvenient path may make even an accurate field expensive to integrate.

The four sections separate these questions in dependency order. Ordinary differential equations define deterministic flows and the solvers used to integrate them. Stochastic differential equations add Brownian noise and Itô calculus. The Fokker–Planck equation then converts random path dynamics into deterministic density evolution, exposing the score needed for time reversal. Finally, score matching and flow matching estimate the unknown field by regression and use it for generation. The presentation assumes the calculus, probability, optimization, and divergence material developed in Chapter 25, Chapter 27, Chapter 26, and Chapter 28.

Resources and Further Reading

The following references provide broader treatments of differential equations and their applications to generative modeling.

Books and lecture notes (ODEs / SDEs)

Courses and tutorials

Foundational papers (diffusion and flow matching)

Blogs and visual explainers