The Fokker–Planck Equation and Probability Flow

Dive into Deep Learning · §38.5

The Fokker–Planck Equation, Reverse SDEs, and Probability Flow
marginal density PDE · score function · diffusion as transport · probability-flow ODE · Anderson time reversal

100,000 Random Paths Draw the Exact Same Histogram

Motivation

Under the Ornstein–Uhlenbeck SDE dX = -X\,dt + \sqrt{2}\,dW, every individual particle path is unpredictable. Yet launching 100{,}000 particles from x_0 = 2 produces the exact same bell-curve histogram \mathcal{N}(2e^{-t}, 1 - e^{-2t}) on every run:

From Random Paths to Deterministic Densities: Which partial differential equation moves the marginal density p_t(\mathbf{x}) of an SDE cloud, and how can we run that density evolution backward from noise to data?

Vector Calculus: Divergence, Laplacian, and Parts

Mathematical Preliminaries

Turning Itô’s lemma for particle averages into a PDE for p_t(\mathbf{x}) relies on three multivariable operators:

  • Divergence (\nabla \cdot \mathbf{u} = \sum_{i=1}^d \partial_i u_i): Net outflow per unit volume (\nabla\cdot(x_1, x_2) = 2; pure rotation \nabla\cdot(-x_2, x_1) = 0). By the divergence theorem, \int_\Omega \nabla\cdot\mathbf{u}\,d\mathbf{x} = \oint_{\partial\Omega} \mathbf{u}\cdot\mathbf{n}\,dS.
  • Laplacian (\Delta \psi = \nabla \cdot \nabla \psi = \sum_{i=1}^d \partial_i^2 \psi): Measures how much \psi(\mathbf{x}) lies below its local sphere average (\bar{\psi}_r(\mathbf{x}) - \psi(\mathbf{x}) \approx \frac{r^2}{2d}\Delta\psi(\mathbf{x})).
  • Integration by Parts: For fields decaying at infinity, moving \nabla\cdot flips the sign once, while moving \Delta flips it twice: \int \psi\,(\nabla\cdot\mathbf{u})\,d\mathbf{x} = -\int \nabla\psi \cdot \mathbf{u}\,d\mathbf{x}, \quad \int \psi\,\Delta p\,d\mathbf{x} = \int p\,\Delta\psi\,d\mathbf{x}

Deriving Fokker–Planck, I: Expected Bump Evolution

Weak-Form Derivation

A jagged SDE path \mathbf{X}_t has no time derivative, but the expectation \mathbb{E}[\phi(\mathbf{X}_t)] of any smooth, compactly supported test function (“bump”) \phi: \mathbb{R}^d \to \mathbb{R} is differentiable in time:

  1. Apply Multivariate Itô’s Lemma: Along d\mathbf{X} = \mathbf{f}(\mathbf{X}, t)\,dt + g(t)\,d\mathbf{W}, the (dW)^2 = dt correction adds \frac{1}{2}g(t)^2\Delta\phi: d\phi(\mathbf{X}_t) = \left(\nabla\phi(\mathbf{X}_t) \cdot \mathbf{f}(\mathbf{X}_t, t) + \frac{1}{2}g(t)^2\,\Delta\phi(\mathbf{X}_t)\right)dt + g(t)\,\nabla\phi(\mathbf{X}_t) \cdot d\mathbf{W}_t
  2. Take Expectations Across All Paths: Because the Itô integral has mean zero (\mathbb{E}[\int g\nabla\phi \cdot d\mathbf{W}] = 0), the stochastic term drops out completely: \frac{d}{dt}\mathbb{E}\!\left[\phi(\mathbf{X}_t)\right] = \mathbb{E}\!\left[\nabla\phi(\mathbf{X}_t) \cdot \mathbf{f}(\mathbf{X}_t, t) + \frac{1}{2}g(t)^2\,\Delta\phi(\mathbf{X}_t)\right]

Deriving Fokker–Planck, II: Integration by Parts

The Density PDE

Moving derivatives off the test bump \phi(\mathbf{x}) onto p_t(\mathbf{x}) via integration by parts yields the Fokker–Planck PDE:

\partial_t p_t(\mathbf{x}) = -\nabla \cdot \big(\mathbf{f}(\mathbf{x}, t)\,p_t(\mathbf{x})\big) + \frac{1}{2}g(t)^2\,\Delta p_t(\mathbf{x})

  • Two competing operators: First-order advection -\nabla\cdot(\mathbf{f}p_t) transports mass along the drift \mathbf{f}, while second-order diffusion \tfrac12 g^2\Delta p_t smooths peaks into valleys.

Advection vs. Diffusion and the Heat Equation

Physical Interpretation

Each operator on the right-hand side of \partial_t p_t = -\nabla\cdot(\mathbf{f}p_t) + \frac{1}{2}g(t)^2\Delta p_t reshapes the probability cloud in a complementary way:

  • Advection (-\nabla\cdot(\mathbf{f}p_t)): First-order deterministic drift transport. It increases density wherever the vector field \mathbf{f} carries more probability mass into a small box than out of it.
  • Diffusion (\frac{1}{2}g(t)^2\Delta p_t): Second-order Laplacian smoothing, which is Itô’s (dW)^2 = dt correction seen at the density level. It lowers peaks (\Delta p_t < 0) and fills valleys (\Delta p_t > 0).
  • The Heat Equation (\mathbf{f} = \mathbf{0}): Switching off the drift leaves \partial_t p_t = \frac{1}{2}g(t)^2\Delta p_t. Any isotropic Gaussian \mathcal{N}(\mathbf{m}, v_t\mathbf{I}) solves it with linearly growing variance v_t = v_0 + \int_0^t g(\tau)^2\,d\tau (at x=0, t=1, g=1, both \partial_t p and \frac{1}{2}\partial_{xx}p equal -\frac{1}{2\sqrt{2\pi}} \approx -0.1995).

Gaussian Moment ODEs for Ornstein–Uhlenbeck

Exact Moment Closure

Substituting a Gaussian ansatz p(x, t) = \mathcal{N}(x; m(t), v(t)) into the 1D OU Fokker–Planck PDE \partial_t p = \theta\partial_x(xp) + \tfrac12 g^2\partial_{xx}p reduces the PDE to two scalar ODEs:

\dot{m} = -\theta m, \qquad \dot{v} = g^2 - 2\theta v

  • Stationary equilibrium (\dot{m} = \dot{v} = 0): At m_\infty = 0 and v_\infty = \frac{g^2}{2\theta}, inward drift compression cancels outward Laplacian diffusion everywhere.

Linearity of Fokker–Planck and Mixture Marginals

Bimodal Benchmark

Because the Fokker–Planck PDE is linear in p_t, any convex mixture of Gaussian solutions p_0(x) = \sum_k w_k \mathcal{N}(x; \mu_k, v_{0,k}) evolves by applying the moment ODEs to each component independently:

p_0 = \frac{1}{2}\mathcal{N}(-2, 0.25) + \frac{1}{2}\mathcal{N}(2, 0.25) \;\xrightarrow{\text{OU }(\theta=1, g=\sqrt{2})}\; p_t = \frac{1}{2}\mathcal{N}\!\left(-2e^{-t}, 1 - 0.75e^{-2t}\right) + \frac{1}{2}\mathcal{N}\!\left(+2e^{-t}, 1 - 0.75e^{-2t}\right)

t=0.25: max|dp/dt| = 4.4e-01; max|residual| at 4001, 8001 points: 4.4e-06, 1.1e-06 (ratio 4.0)
t=1.0: max|dp/dt| = 1.7e-01; max|residual| at 4001, 8001 points: 6.3e-07, 1.6e-07 (ratio 4.0)
t=3.0: max|dp/dt| = 3.2e-03; max|residual| at 4001, 8001 points: 1.2e-06, 3.0e-07 (ratio 4.0)

Doubling the spatial grid from 4{,}001 to 8{,}001 points divides the centered-difference PDE residual by 4.0\times at every time t, confirming second-order stencil convergence to zero.

The Score Function: Pointing Uphill on Log-Density

The Score Field

The score of a probability density p_t(\mathbf{x}) is the gradient of its log-density with respect to the state \mathbf{x}:

\mathbf{s}_t(\mathbf{x}) = \nabla_{\mathbf{x}}\log p_t(\mathbf{x}) = \frac{\nabla_{\mathbf{x}} p_t(\mathbf{x})}{p_t(\mathbf{x})}

  • Gaussian Score Is a Linear Spring: For p(\mathbf{x}) = \mathcal{N}(\mathbf{x}; \boldsymbol{\mu}, v\mathbf{I}), \nabla_{\mathbf{x}}\log p(\mathbf{x}) = -\frac{\mathbf{x} - \boldsymbol{\mu}}{v} pulling particles toward the mean \boldsymbol{\mu} with stiffness 1/v.
  • Critical Points and Tails: \mathbf{s}_t(\mathbf{x}) = \mathbf{0} at modes, local minima, and saddle points of p_t, while \|\mathbf{s}_t(\mathbf{x})\| is largest in low-density valleys and far tails where \log p_t changes steeply.

Closed-Form Score of a Gaussian Mixture

Responsibility-Weighted Springs

For a mixture p(x) = \sum_k w_k N_k(x) with Gaussian components N_k(x) = \mathcal{N}(x; \mu_k, v_k), differentiating \log p(x) expresses the score as a posterior-weighted average of the individual component springs:

\nabla\log p(x) = \sum_{k} r_k(x)\left(-\frac{x - \mu_k}{v_k}\right), \qquad r_k(x) = \frac{w_k N_k(x)}{\sum_j w_j N_j(x)} = P(\text{component } k \mid x)

  • Symmetric Two-Mode Formula (w_1 = w_2 = \frac{1}{2}, \mu_k = \pm\mu, v_k = v_0): The responsibilities simplify to a logistic sigmoid, giving the hyperbolic tangent score: s_0(x) = \frac{\mu\tanh(\mu x / v_0) - x}{v_0} = 8\tanh(8x) - 4x \qquad (\mu = 2, v_0 = 0.25)
  • Bimodality Criterion: The origin x = 0 has slope s_0'(0) = \frac{\mu^2 - v_0}{v_0^2} = 60 > 0 (a density minimum separating two modes at \approx \pm 2 whenever \mu^2 > v_0; the modes merge into one when \mu_t^2 \le v_t).

Verifying the Mixture Score and Its Valley Geometry

Numerical Verification

Comparing the general softmax-responsibility score score_t(x, 0) against the analytic tanh formula confirms machine-precision agreement and highlights the steep restoring force across the central valley:

max|responsibility form - tanh form| = 7.3e-15
score changes sign near [-2.  0.  2.]
slope at 0: 60.00, formula (mu^2 - v0) / v0^2 = 60.00

Conservation of Probability and Continuity Equation

Deterministic Transport

When particles move deterministically along an ODE velocity field \dot{\mathbf{x}} = \mathbf{u}(\mathbf{x}, t), probability mass is conserved. The flux crossing a surface per unit area and time is the probability current \mathbf{j}(\mathbf{x}, t) = q_t(\mathbf{x})\mathbf{u}(\mathbf{x}, t):

  • Integral Mass Balance: By the divergence theorem, the rate of change of probability inside any region \Omega equals minus the net boundary outflow: \frac{d}{dt}\int_\Omega q_t\,d\mathbf{x} = -\oint_{\partial\Omega} \mathbf{j}\cdot\mathbf{n}\,dS = -\int_\Omega \nabla\cdot(q_t\mathbf{u})\,d\mathbf{x}
  • The Continuity Equation: Pointwise conservation requires: \partial_t q_t + \nabla \cdot (q_t\,\mathbf{u}) = 0
  • Log-Density Along Characteristics: Expanding \nabla\cdot(q_t\mathbf{u}) = \mathbf{u}\cdot\nabla q_t + q_t\nabla\cdot\mathbf{u} recovers Liouville’s trace rule \frac{d}{dt}\log q_t(\mathbf{x}(t)) = -\nabla\cdot\mathbf{u}(\mathbf{x}(t), t).

The Key Identity: Rewriting Diffusion as Transport

Bridging SDEs and ODEs

Using \nabla p_t = p_t\nabla\log p_t converts the second-order Laplacian \tfrac12 g^2\Delta p_t into a first-order transport divergence:

\partial_t p_t + \nabla \cdot \big(p_t\,\mathbf{u}_t\big) = 0, \qquad \mathbf{u}_t(\mathbf{x}) = \mathbf{f}(\mathbf{x}, t) - \frac{1}{2}g(t)^2\,\nabla\log p_t(\mathbf{x})

  • Probability-flow velocity \mathbf{u}_t: At the marginal density level, random Brownian kicks act identically to a deterministic velocity -\tfrac12 g^2\nabla\log p_t pushing probability downhill.

Worked Example: Solving the Heat Equation as a Flow

Outward Probability Flow

Consider pure Brownian motion (\mathbf{f} = \mathbf{0}, g = 1) started from p_0 = \mathcal{N}(0, v_0), so p_t = \mathcal{N}(0, v_t) with v_t = v_0 + t and score \nabla\log p_t(x) = -x/v_t:

  • Outward Flow Velocity: u_t(x) = -\frac{1}{2}g^2\nabla\log p_t(x) = \frac{x}{2v_t} = \frac{x}{2(v_0 + t)}
  • Exact ODE Trajectories: Separating variables in \dot{x} = \frac{x}{2(v_0 + t)} gives smooth, non-crossing rays: x(t) = x(0)\sqrt{\frac{v_0 + t}{v_0}}
  • Same Histogram, Different Paths: For v_0 = 1 at t = 3, the ODE stretches every particle deterministically by \sqrt{4} = 2\times, matching the \mathcal{N}(0, 4) marginal of jagged Brownian paths.

Simulating the Heat Flow: Brownian Kicks vs. Heun ODE

Numerical Verification

Starting from 20{,}000 draws z \sim \mathcal{N}(0, 1), adding a Brownian increment \mathcal{N}(0, 3) and integrating \dot{x} = \frac{x}{2(1+t)} with Heun’s method both produce a \mathcal{N}(0, 2^2) cloud at T = 3:

std at t=3.0: Brownian 1.995, flow 1.994, exact 2.000
max|x_ode - 2 z| = 5.8e-06

The Probability-Flow ODE: Deterministic Twin of an SDE

Probability-Flow ODE

For any SDE d\mathbf{X} = \mathbf{f}(\mathbf{X}, t)\,dt + g(t)\,d\mathbf{W}, defining an ODE with velocity \mathbf{u}_t yields a deterministic process that shares the exact same marginal density p_t(\mathbf{x}) at every instant t \in [0, T]:

\frac{d\mathbf{x}}{dt} = \mathbf{u}_t(\mathbf{x}) = \mathbf{f}(\mathbf{x}, t) - \frac{1}{2}g(t)^2\,\nabla_{\mathbf{x}}\log p_t(\mathbf{x})

  • Why the Marginals Match: Because \mathbf{u}_t satisfies \partial_t p_t + \nabla\cdot(p_t\mathbf{u}_t) = 0, the ODE density q_t and SDE density p_t obey the exact same continuity equation from q_0 = p_0, so \log q_t and \log p_t change at the same rate -\nabla\cdot\mathbf{u}_t along every characteristic trajectory.
  • Exact Likelihood Evaluation: Integrating Liouville’s trace rule from 0 to T turns any score-based diffusion model into a Continuous Normalizing Flow: \log p_0(\mathbf{x}(0)) = \log p_T(\mathbf{x}(T)) + \int_0^T \nabla \cdot \mathbf{u}_t(\mathbf{x}(t))\,dt

Comparing SDE and PF-ODE Marginals on the Mixture

Bimodal Evolution

Evolving 20{,}000 particles from our bimodal mixture p_0 = \frac{1}{2}\mathcal{N}(-2, 0.25) + \frac{1}{2}\mathcal{N}(2, 0.25) via Euler–Maruyama on the OU SDE vs. Heun’s method on the probability-flow ODE:

95% band for n = 20000: 0.0096
t=0.25: KS(SDE) = 0.0051, KS(ODE) = 0.0074
t=1.00: KS(SDE) = 0.0088, KS(ODE) = 0.0074
t=3.00: KS(SDE) = 0.0044, KS(ODE) = 0.0074

Comparing SDE and PF-ODE Marginals on the Mixture (cont.)

Bimodal Evolution

Why is KS(ODE) the same at every t? In 1D, the ODE flow map \Phi_t is strictly increasing and maps the true CDF F_0 to F_t, so it transports the initial sample’s empirical quantiles without adding any stochastic resampling noise.

Time Reversal: Visiting Forward Marginals Backward

Generative Reversal

The forward SDE smooths data p_0 into noise p_T \approx \mathcal{N}(\mathbf{0}, \mathbf{I}) (merging the two modes at t^* \approx 0.78). How can we run the process from right to left (t: T \to 0) to generate data from noise?

  • Why Backward Heat Flow Is Possible Here: Solving the raw heat equation \partial_t p = \frac{1}{2}g^2\Delta p backward from an unknown profile is ill-posed. Instead, the forward marginals p_t are already fixed, and their score \nabla\log p_t supplies the exact uphill restoring force that undoes the smoothing.

Infinitesimal Bayes’ Rule on a Single Backward Step

Deriving the Reverse Drift

By Bayes’ rule, p(\mathbf{x}_t = \mathbf{x} \mid \mathbf{x}_{t+\tau} = \mathbf{y}) \propto p(\mathbf{y} \mid \mathbf{x})\,p_t(\mathbf{x}). Expanding \log p_t(\mathbf{x}) \approx \log p_t(\mathbf{y}) + (\mathbf{x} - \mathbf{y})\cdot\nabla\log p_t(\mathbf{y}) and completing the square in the Gaussian exponent shifts the backward mean by +g^2\tau\nabla\log p_t(\mathbf{y}), yielding Anderson’s reverse-time SDE (t : T \to 0):

d\mathbf{X} = \Big[\mathbf{f}(\mathbf{X}, t) - g(t)^2\,\nabla_{\mathbf{x}}\log p_t(\mathbf{X})\Big]\,dt + g(t)\,d\bar{\mathbf{W}}

Anderson’s Reverse-Time SDE and the Factor of Two

Reverse-Time Diffusion

Taking the continuous limit \tau \to 0 gives Anderson’s reverse-time SDE, integrated backward from t = T down to t = 0:

d\mathbf{X} = \Big[\mathbf{f}(\mathbf{X}, t) - g(t)^2\,\nabla_{\mathbf{x}}\log p_t(\mathbf{X})\Big]\,dt + g(t)\,d\bar{\mathbf{W}}

  • Forward Reversed Clock (\bar{t} = T - t \in [0, T]): Stepping forward in \bar{t} (d\bar{t} = -dt > 0) negates the deterministic drift while keeping the noise amplitude g: d\mathbf{Y}_{\bar{t}} = \Big[-\mathbf{f}(\mathbf{Y}_{\bar{t}}, T - \bar{t}) + g(T - \bar{t})^2\,\nabla\log p_{T-\bar{t}}(\mathbf{Y}_{\bar{t}})\Big]\,d\bar{t} + g(T - \bar{t})\,d\mathbf{W}_{\bar{t}}
  • Sanity Check on Stationary OU (p_t \equiv \mathcal{N}(0, 1), f = -x, g = \sqrt{2}, s_t = -x):
    • Probability-Flow ODE: u_t(x) = f - \frac{1}{2}g^2 s_t = -x - 1(-x) = 0 (particles stand still).
    • Reverse SDE in \bar{t}: Drift is -f + g^2 s_t = +x + 2(-x) = -x with noise \sqrt{2} (stationary OU is its own time reversal). With only \frac{1}{2}g^2, the reverse drift would be 0 and the cloud would explode like pure Brownian motion.

The λ-Family of Reverse Samplers Sharing Marginals

Unifying ODE and SDE Samplers

Why does the reverse SDE carry twice the score correction (g^2\nabla\log p_t) of the probability-flow ODE (\frac{1}{2}g^2\nabla\log p_t)? Both belong to a one-parameter family of reverse processes with noise amplitude \lambda g (\lambda \ge 0):

  • Reverse Family Drift (t: T \to 0): \mathbf{b}_\lambda(\mathbf{x}, t) = \mathbf{f}(\mathbf{x}, t) - \frac{1 + \lambda^2}{2}g(t)^2\,\nabla\log p_t(\mathbf{x})
  • Why Two Halves Are Needed: In the reversed clock \bar{t} = T - t, the first +\frac{1}{2}g^2\nabla\log p_t undoes the forward Fokker–Planck smoothing (\lambda = 0, the probability-flow ODE). Injecting reverse noise \lambda g\,d\mathbf{W}_{\bar{t}} adds a new Laplacian smoothing +\frac{\lambda^2}{2}g^2\Delta p_t, which requires an extra +\frac{\lambda^2}{2}g^2\nabla\log p_t uphill pull to cancel (\lambda = 1, Anderson’s reverse SDE).

Generating Asymmetric Modes From Symmetric Noise

Reverse-Time Sampling

Starting 20{,}000 particles from symmetric prior noise \mathcal{N}(0, 1) at T = 3 and integrating Anderson’s reverse SDE down to t = 0 on the lopsided mixture p_0 = 0.8\,\mathcal{N}(-2, 0.25) + 0.2\,\mathcal{N}(2, 0.25):

max|p_T - N(0,1)| at T=3: 0.0145 (peak 0.40)
mass on the left: 0.800 (data 0.800)
means -1.993, +1.998 (data -2, +2)
widths 0.504, 0.509 (data 0.5)
KS to the exact p_0: sampler 0.0068, exact sample 0.0054

Generating Asymmetric Modes From Symmetric Noise (cont.)

Reverse-Time Sampling

  • When Does the Score Allocate the 80% / 20% Mode Weights?
    • Not at t = 0: In each mode, r_k(x) \in \{0, 1\}, so s_0(x) \approx -(x \pm 2)/0.25 is blind to the mixture weights (0.8, 0.2).
    • Not at t = 3: Both components overlap near \mathcal{N}(0, 1), so their springs nearly coincide.
    • At Intermediate Noise (t \approx 1): The equal-responsibility watershed x_t^* = \frac{v_t}{2m_t}\ln\frac{0.8}{0.2} sweeps across +0.85, steering particles at x \in (0, 0.85) into the heavier left mode as the two peaks separate.

Discretization Bias and Step Placement Near t = 0

Where Solver Steps Matter Most

Tracking the exact variance recursion of reverse Euler–Maruyama on a single Gaussian mode \mathcal{N}(2, 0.25) (\text{true width} = 0.5) isolates the discretization bias without Monte Carlo noise:

           300 uniform steps: width excess 0.0096
           600 uniform steps: width excess 0.0047
          1200 uniform steps: width excess 0.0024
          2400 uniform steps: width excess 0.0012
          1500 uniform steps: width excess 0.0019
1500 steps, 1000 on t <= 0.5: width excess 0.0006
  • 97% of the Bias Comes From t \le 0.5: Refining steps 10\times only on the final sixth of the reverse run (t \in [0, 0.5]) cuts the width excess from 0.0047 to 0.0006.
  • Two Compounding Causes: (1) The reverse drift slope \kappa_t = \theta - g^2/v_t is steepest at t = 0 (1 - 2/0.25 = -7 vs. -1 near t = T), and (2) early errors at large t are contracted by every subsequent step factor (1 + \kappa_t\Delta t)^2 < 1, whereas errors near t = 0 reach the output unattenuated.

Concept Check: Fokker–Planck, Scores, and Time Reversal

Concept Check

Test your understanding of density evolution and reverse-time processes:

  1. Score of a Narrow Gaussian: For p(x) = \mathcal{N}(x; 3, 0.1^2), what is the score s(x) = \nabla_x \log p(x) at x = 3.2, and which way does it point?
  2. Custom Reverse Noise (\lambda = \sqrt{3}): If a reverse-time sampler for d\mathbf{X} = \mathbf{f}\,dt + g\,d\mathbf{W} injects noise of amplitude \sqrt{3}\,g, what drift \mathbf{b}(\mathbf{x}, t) must it use to preserve the exact marginals p_t?
  3. Prior Mismatch at t = T: Why does Anderson’s reverse SDE (\lambda = 1) recover the 0.8 / 0.2 mode weights from \mathcal{N}(0, 1) at T = 3 more accurately than the deterministic probability-flow ODE (\lambda = 0)?

Answers:

  1. s(x) = -\frac{x - 3}{0.01} = -100(x - 3), so s(3.2) = -20, pointing strongly left (back toward the mode \mu = 3).
  2. Using \mathbf{b}_\lambda = \mathbf{f} - \frac{1+\lambda^2}{2}g^2\nabla\log p_t with \lambda^2 = 3 gives \mathbf{b}_{\sqrt{3}} = \mathbf{f} - 2g^2\nabla\log p_t.
  3. At finite T = 3, p_T still has mean -1.2e^{-3} \approx -0.06 \ne 0. Because the PF-ODE is a deterministic bijection, it preserves the exact CDF quantiles of the mismatched \mathcal{N}(0, 1) start all the way to t = 0, whereas the reverse SDE’s noise injection mixes and washes out initial prior mismatch.

Summary: Fokker–Planck, Probability Flow, and Reversal

Key Takeaways

Equation / Object Mathematical Form Generative Modeling Role
Fokker–Planck PDE \partial_t p_t = -\nabla\cdot(\mathbf{f}p_t) + \frac{1}{2}g(t)^2\Delta p_t Deterministic evolution of an SDE’s marginal density p_t(\mathbf{x})
Score Function \mathbf{s}_t(\mathbf{x}) = \nabla_{\mathbf{x}}\log p_t(\mathbf{x}) = \frac{\nabla p_t(\mathbf{x})}{p_t(\mathbf{x})} Points uphill on log-density; only unknown needed for reversal
Diffusion as Transport \frac{1}{2}g^2\Delta p_t = \nabla\cdot\big(p_t \cdot \frac{1}{2}g^2\nabla\log p_t\big) Converts Laplacian smoothing into a continuity velocity -\frac{1}{2}g^2\mathbf{s}_t
Probability-Flow ODE \dot{\mathbf{x}} = \mathbf{u}_t(\mathbf{x}) = \mathbf{f}(\mathbf{x}, t) - \frac{1}{2}g(t)^2\nabla\log p_t(\mathbf{x}) Deterministic twin sharing all SDE marginals p_t; gives exact likelihoods
Anderson’s Reverse SDE d\mathbf{X} = \big[\mathbf{f}(\mathbf{X}, t) - g(t)^2\nabla\log p_t(\mathbf{X})\big]\,dt + g(t)\,d\bar{\mathbf{W}} Generates data p_0 from noise p_T; full g^2 undoes forward + reverse noise
\lambda-Sampler Family Drift \mathbf{f} - \frac{1+\lambda^2}{2}g^2\nabla\log p_t, noise \lambda g Interpolates between deterministic ODE (\lambda=0) and reverse SDE (\lambda=1)