A deep learning method for solving Fokker-Planck equations

Jiayu Zhai, Matthew Dobson, Yao Li

Abstract

The time evolution of the probability distribution of a stochastic differential equation follows the Fokker-Planck equation, which usually has an unbounded, high-dimensional domain. Inspired by recent developments in mesh-free computational methods, this paper presents a deep learning-based solver for the Fokker-Planck equation that effectively bypasses the "curse of dimensionality." By combining physics-informed regularization of the PDE operator with sparse, noisy Monte Carlo data, the method produces highly accurate probability distributions for complex stochastic systems in up to 20 dimensions.

Introduction

The Fokker-Planck equation (FPE) is a fundamental tool for modeling the evolution of probability distributions in systems driven by stochastic processes, such as financial markets or molecular dynamics. However, traditional numerical solutions face significant hurdles:

  1. The Curse of Dimensionality: Grid-based methods like finite elements scale exponentially with dimensionality, making high-dimensional systems (e.g., 10D or 20D) computationally impossible to solve.
  2. Boundary Conditions: FPEs often operate on unbounded domains. Defining appropriate boundary conditions at "infinity" is a major challenge for traditional solvers.

While Monte Carlo (MC) simulations are mesh-free, they are inherently noisy and require massive sample sizes to achieve high precision. This research proposes a hybrid Neural Network Fokker-Planck Solver that is mesh-free, scalable, and robust to noisy data.

Methodology

The proposed approach represents the probability density function $u(x)$ as a neural network $u(x, \theta)$. The network is trained using a composite loss function designed to balance physical consistency with available data:

  • Physics-Informed Loss ($L_1$): This term enforces the stationary FPE ($\mathcal{L}u = 0$) through automatic differentiation, ensuring the solution adheres to the underlying physical laws.
  • Data-Driven Loss ($L_2$): This term utilizes a small set of reference points (typically $10^2$ to $10^4$) where the density is estimated via low-accuracy Monte Carlo simulations.

To ensure stable convergence despite the different scales of these loss terms, the authors employ a "double shuffling" optimization strategy. The Adam optimizer updates parameters for each loss component separately within each iteration, providing a more robust training process than standard weighted loss functions.

Experimental Evaluation

The solver was tested on several synthetic benchmarks with known exact solutions:

  • 2D and 4D Ring Densities: Systems involving gradient flow and rotation.
  • 6D Turbulence Model: A dynamical model with a conditional linear structure.
  • 10D and 20D Linear Systems: High-dimensional approximations of the stochastic heat equation.

Key Results and Insights

PDE-Based Denoising

A significant finding is that the PDE operator $\mathcal{L}$ acts as a powerful regularizer. The physics constraint allows the neural network to filter out uncorrelated noise from the Monte Carlo reference data. Even with data containing up to 50% relative error, the solver reconstructs the underlying density with high precision.

Comparison of Monte Carlo data, linear solutions, and the neural network solution for a 2D ring density. The bottom row highlights the superior error reduction achieved by the neural network approach.

Scalability and Efficiency

  • High-Dimensional Performance: The solver successfully captured the probability density of a 20-dimensional system, a task beyond the reach of grid-based methods.
  • Data Efficiency: In 6D, the method achieved high accuracy using only 20,000 reference points, a fraction of what a pure MC approach would require.
  • Computational Speed: Training for a 20D problem converges in approximately six minutes per epoch, typically requiring only 20-30 epochs to reach a solution.

Limitations and Future Work

The solver's performance degrades when probability distributions are highly concentrated (low-noise regimes), as the network requires greater width to capture sharp gradients. Future work will explore extensions to non-Gaussian Lévy noise and the study of quasi-stationary distributions in biological and chemical contexts.

Summary updated

BibTeX
@inproceedings{zhai2021deep,
  author = {Jiayu Zhai and Matthew Dobson and Yao Li},
  title = {{A deep learning method for solving Fokker-Planck equations}},
  booktitle = {MSML},
  year = {2021},
  url = {https://openreview.net/forum?id=5DquHA6XnA},
}
Figure