Dive into Deep Learning · §17
Diffusion and Flow-Based Generative Models
denoising & scores · Gaussian probability paths · ODE & SDE integration · U-Net & DiT · fast samplers · discrete masking
Motivation
A generator mapping random noise to data has no direct supervision target—forcing GANs to train a competing discriminator. Progressive Gaussian corruption creates an explicit regression target at every noise level:
Forward Corruption & Time Conventions
Every continuous model in this chapter interpolates between clean data at t = 0 and standard Gaussian noise \boldsymbol\epsilon \sim \mathcal{N}(\mathbf{0}, \mathbf{I}) at t = 1:
\mathbf{x}_t = \alpha_t \mathbf{x}_0 + \sigma_t \boldsymbol\epsilon
The Mathematical Core
Because squared error is minimized by the conditional expectation given the input, training on per-example targets recovers the posterior mean \hat{\mathbf{x}}_0(\mathbf{x}_t) = \mathbb{E}[\mathbf{x}_0 \mid \mathbf{x}_t]:
Reading Diffusion vs. Flow-Matching Papers
Diffusion papers place clean data at t = 0, whereas many flow-matching papers reverse the clock and place noise at t = 0:
Empirical Grounding
Every theoretical claim and architectural choice is tested on controlled benchmarks where exact references or calibrated feature metrics exist:
Study Guide
adaLN-Zero DiT (>10\times fewer FLOPs), two-time flow-map distillation (2 jumps match 15 Euler steps), and absorbing masked diffusion (0.17 bpp).