28  Dynamics: Differential Equations and Generative Flows

Many of the most powerful generative models are, at heart, differential equations. This capstone chapter develops the dynamics needed to read them: ordinary differential equations and their solvers (and the neural-ODE view of a residual network), stochastic differential equations and the Itô calculus, the Fokker–Planck equation and the probability-flow ODE that make diffusion reversible, and finally score matching, diffusion, and flow matching, unified as different choices of probability path, training objective, and sampler. It draws on calculus (Chapter 24), probability (Chapter 26), optimization (Chapter 25), and divergences (Chapter 27).

Resources and Further Reading

If this chapter sparked an interest in the dynamics behind modern generative models, the following are the canonical places to go deeper.

Books and lecture notes (ODEs / SDEs)

Courses and tutorials

Foundational papers (diffusion and flow matching)

Blogs and visual explainers