Reverse Fokker-Planck

Chapter 21 Dynamics & diffusion

Chapter 21: Fokker-Planck and Distribution Dynamics — Reverse-Time Fokker-Planck

From the book

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

Reversing time in the forward SDE yields a reverse-time Fokker–Planck equation. For the reverse SDE (the matrix chapter):

the corresponding Fokker–Planck equation (taking into account the reversed direction of time $dt < 0$) is:

Expanding the drift term using $\nabla \log p_t = \frac{\nabla p_t}{p_t}$ gives $-\nabla \cdot (\mathbf{f} p_t) + \nabla \cdot (\mathbf{D}\nabla p_t)$. Combined with the negative diffusion term $-\frac{1}{2}\nabla \cdot (\mathbf{D}\nabla p_t)$, this recovers: confirming that the reverse SDE exactly matches the forward marginal distributions $p_t$.

The reverse equation involves the score $\nabla_{\mathbf{x}} \log p_t$ of the very densities it is supposed to produce, so it cannot be solved from $\mathbf{f}$ and $\mathbf{G}$ alone: the forward process is well-posed, the reverse one is not until the score is known. This is why diffusion models first learn $\mathbf{s}_\theta(\mathbf{x}, t) \approx \nabla_{\mathbf{x}} \log p_t$ by denoising score matching (the matrix chapter) from forward-process samples, and only then sample by running the reverse SDE or the probability flow ODE.

the book figure contrasts the two directions on a five-mode "star" distribution. Forward, the diffusive flux $-\nabla p_t$ spreads the modes into an unstructured cloud and destroys the information about where they were; backward, the score field $\nabla\log p_t$ points uphill, against the gradient of entropy, and carries the cloud back to the modes. Without the score the reverse process has nothing to tell it where the lost structure was, which is why score learning is necessary for generation by time reversal.

What this drawing shows

What you see. Gray noise mass fixed; red score arrows $\nabla\log p$ grow toward blue structured modes, reconstructing density under reverse-time dynamics.

In the mind map. Chapter 21 — Reverse-Time Fokker-Planck. 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 Reverse-Time Fokker-Planck.

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