Probability flow ODEs in score-based and reflected diffusion models
Organizations: Mathematical Institute, University of Oxford
Abstract
Probability-flow ordinary differential equations (PF-ODEs) are widely used as deterministic samplers for score-based diffusion models. Their usual justification is that the Fokker--Planck equation of a diffusion can be rewritten as a continuity equation driven by the score function of the forward diffusion. This identity does not, however, guarantee that the resulting velocity field generates a well-posed flow. We provide theoretical insights into the design of such deterministic samplers for generative models based on diffusions and reflected diffusions. We identify sufficient conditions for a regular Lagrangian PF-ODE flow to exist; reverse sampling and invertibility require two-sided divergence control. For learned scores, sampler stability is controlled by an unweighted velocity error, exposing a mismatch with density-weighted score matching and motivating architectural control of Jacobians, divergence, growth, and compression. Under the manifold hypothesis, positive-time regularization justifies an early-stopped PF-ODE while constants deteriorate near the data endpoint; an explicit sphere example shows that the exact deterministic flow becomes singular as the noise level vanishes even though the diffusion marginals remain well defined. These theoretical insights translate into concrete design principles for stable, invertible, and constraint-preserving diffusion samplers. We illustrate the practical relevance of these design principles using controlled numerical experiments.
Figures & tables
| Requirement/ failure mode | Analytic diagnostic | Design consequence |
|---|---|---|
| PF-ODE existence | Sobolev/BV regularity, growth, control | Regularize Jacobian/divergence and network growth; do not rely on score loss alone. |
| Reverse/invertible flow | Both and | Stronger regularization for deterministic decoding, round trips, and likelihood evaluation. |
| Under the manifold hypothesis | Normal score/compression constants diverge as | Train/sample on and use a terminal denoising or limiting step; tune jointly with schedule. |
| Low-density regions | depends on an unweighted norm; conversion from score loss uses | Add localization or low-density diagnostics/regularization; validate trajectories, not only DSM loss. |
| Reflected boundary | ; generally | Enforce co-normal relation for the drift–score field; avoid generic zero-normal-score constraints. |
| Boundary degeneracy | Loss of positivity can permit large compression near | Maintain positive-time regularization; monitor boundary density, normal trace, and compression. |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Diagnostic | Central defect ( ) | Tail defect ( ) |
|---|---|---|
| Score amplitude | ||
| Population DSM error | ||
| Unweighted velocity error | ||
| Excess Jacobian error | ||
| Mean grid trajectory error | ||
| Maximum grid trajectory error |