Abstract
The Fokker-Planck equation (FPE) is a fundamental partial differential equation governing the density evolution of Ito processes, essential in statistical physics and machine learning. Traditional numerical solvers often struggle in high dimensions or fail to preserve physical constraints like non-negativity and unit mass. We present a novel approach that shifts the focus from solving for density directly to learning the underlying velocity field. By leveraging a self-consistency potential function and Neural Ordinary Differential Equations (NODEs), our method ensures valid probability distributions by construction and demonstrates superior convergence and accuracy over standard physics-informed neural networks.
Introduction
The Fokker-Planck Equation (FPE) describes how the probability density of a system—such as particles in a fluid or neural network weights during stochastic gradient descent—evolves over time. Despite its importance, solving the FPE remains a significant challenge. Traditional grid-based methods, like finite difference, suffer from the "curse of dimensionality." While recent Physics-Informed Neural Networks (PINNs) offer a mesh-free alternative, they often fail to guarantee that the resulting density is a valid probability distribution (i.e., non-negative and integrating to one).
This paper addresses these shortcomings by identifying a critical oversight in existing methods: the velocity field driving the system's evolution is intrinsically linked to the current density. By treating the FPE as a self-consistent fixed-point problem rather than a standard PDE, we can learn the dynamics more effectively.
The Self-Consistency Framework
Instead of a "Eulerian" view (observing fixed points in space), we adopt a "Lagrangian" approach, focusing on the trajectories of individual particles.
Velocity over Density
The core innovation lies in learning the velocity field $f(t, x)$ rather than the density $\alpha(t, x)$. This shift allows the physics of the flow to naturally handle probability constraints. We define a transformation $\mathcal{A}$ such that the ground-truth velocity field $f^*$ is a fixed point: $\mathcal{A}[f^*] = f^*$. This "self-consistency" implies that the true velocity is the one that generates a density evolution which, in turn, reproduces that same velocity field.
Potential Function and Neural ODEs
To find this fixed point, we design a loss function $R(f)$ based on the second-order Sobolev norm of the difference between a candidate velocity field $f$ and its transformed version $\mathcal{A}[f]$. We parameterize the hypothesis velocity field using a Neural Ordinary Differential Equation (NODE). Because NODEs evolve densities via "push-forward" maps, the resulting density is guaranteed to be non-negative and have unit mass by construction.
To make the optimization tractable, we demonstrate that the global potential function can be estimated using individual particle trajectories. We employ the adjoint method to efficiently compute gradients, allowing for scalable training of the neural network.
Experimental Validation
We validated our approach, termed Neural Wasserstein Gradient Flow (NWGF), using a synthetic benchmark: a system with a Gaussian initial distribution and a quadratic drifting potential. This setup provides a known analytical solution, enabling precise measurement of error.
Our results show that NWGF significantly outperforms standard PINNs in both Score Estimation Error and Density Estimation Error. While PINNs often plateau or fail to capture fine details, our self-consistency approach continues to refine the solution, demonstrating remarkable stability across the entire time horizon $[0, T]$.
Discussion and Future Work
The self-consistency framework offers a robust theoretical foundation, backed by proofs showing that the Wasserstein-2 distance between the learned and true densities is bounded by our proposed potential function. However, several avenues for future research remain.
Currently, the framework assumes periodic boundary conditions, treating the space as a torus. Extending this to unbounded domains or complex physical boundaries is a priority. Additionally, computing the higher-order derivatives of the log-density required for the Sobolev norm can be computationally intensive in very high dimensions. Finally, while we assumed a constant diffusion coefficient, real-world systems often exhibit state-dependent diffusion, which will require further theoretical extensions of the self-consistency definition.
Conclusion
By reframing the Fokker-Planck Equation as a self-consistent velocity learning problem, we provide a method that is both physically grounded and numerically superior to existing neural PDE solvers. This approach ensures the integrity of the probability density while offering a scalable path toward solving complex stochastic systems in high dimensions.
Summary updated