Mathematics for AI and Machine Learning

Foundations for modern AI and machine learning

Forward Diffusion

Chapter 21 Dynamics & diffusion

Chapter 21: Fokker-Planck and Distribution Dynamics — Generative

From the book

Chapter 21: Fokker-Planck and Distribution Dynamics. In the chapter mind map this icon labels Generative: Forward Diffusion to Gaussian. The discussion below is excerpted and lightly edited from § Forward Diffusion in Generative Models in Mathematics for AI and Machine Learning.

In diffusion models, the forward process is designed to gradually add noise to data. For a pure diffusion process without drift (corresponding to the Variance Exploding formulation):

where $\beta(t) > 0$ is a noise schedule that controls the diffusion rate over time.

This is the heat equation (also called the diffusion equation), which describes pure diffusion without drift.

the book figure visualizes the forward diffusion process in diffusion models, demonstrating how the heat equation destroys information over time. The top panel shows the initial distribution at $t=0$: a complex, multimodal structure with three distinct peaks representing structured data with high information content. The middle panel shows the distribution at $t=1.5$: the peaks begin to merge and blur as fine details are lost, entropy increases, and information is destroyed. The bottom panel shows the distribution at $t=15$: convergence to a single, broad, featureless Gaussian (pure noise) with zero information. The dashed line shows the theoretical single Gaussian approximation. This visualization makes concrete the fundamental property of diffusion: it acts as a smoothing operator, and complex data structures are inevitably smoothed into trivial noise—this is the Central Limit Theorem in action. For diffusion models, this forward process transforms any data distribution into pure noise, which can then be reversed using the learned score function.

What this drawing shows

What you see. Forward diffusion corrupts a structured data density (bimodal $p_{\mathrm{data}}$) into a wide Gaussian noise distribution as $t \uparrow$; animation shows peaks merging and flattening.

In the mind map. Chapter 21 — Generative: Forward Diffusion to Gaussian. See From the book above for definitions, figures, and worked examples.

Where to read next

Open Chapter 21 companion →

Read the full definitions, figures, and worked examples in Chapter 21: Fokker-Planck and Distribution Dynamics — see the mind-map node Generative: Forward Diffusion to Gaussian.

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs

Animated GIF (256×256 px)
GIF 256×256 px Copy GIF URL
Animated GIF (128×128 px)
GIF 128×128 px Copy GIF URL
Animated GIF (64×64 px)
GIF 64×64 px Copy GIF URL