Score-Based Physics-Informed Neural Networks for High-Dimensional Fokker-Planck Equations

Zheyuan Hu, Zhongqiang Zhang, George Em Karniadakis, Kenji KawaguchiarXiv 2024

Abstract

The Fokker-Planck (FP) equation is fundamental to stochastic processes, yet it faces the "curse of dimensionality" (CoD) in high-dimensional settings. Traditional methods like Monte Carlo simulations and vanilla Physics-Informed Neural Networks (PINNs) suffer from numerical underflow and instability as dimensions increase. We propose a novel score-based solver that fits the score function—the gradient of the log-likelihood—to bypass these issues. By employing a two-stage process involving score learning (via Score-PINN, SM, or SSM) and solving a subsequent log-likelihood ODE, our method achieves stable and accurate results in up to 100 dimensions.

Introduction

Stochastic systems, ranging from financial markets to molecular dynamics, are often modeled using the Fokker-Planck equation. This partial differential equation (PDE) describes the evolution of a probability density function (PDF) over time. However, as the dimensionality $d$ increases, the PDF values often decay exponentially ($e^{-d}$), leading to numerical underflow that standard solvers cannot handle. This phenomenon, known as the Curse of Dimensionality, renders traditional grid-based and even some modern neural methods ineffective.

The Challenge: Underflow and the HJB Trap

Existing approaches face two primary hurdles:

  1. Numerical Underflow: In high dimensions, the point-wise values of a PDF become so small that they fall below machine precision, causing significant errors in Monte Carlo and standard PINN methods.
  2. The HJB Trap: Attempting to model the Log-Likelihood (LL) directly transforms the linear FP equation into a nonlinear Hamilton-Jacobi-Bellman (HJB) equation. Vanilla PINNs struggle to converge on HJB equations, with errors scaling poorly as dimensionality grows.

Methodology: The Score-Based SDE Solver

To overcome these limitations, we propose focusing on the score function $s_t(x) := \nabla_x q_t(x)$, where $q_t(x)$ is the log-likelihood. Unlike the PDF, the score function remains numerically stable across high dimensions and naturally bypasses the need to calculate difficult normalization constants.

Table of mathematical notations used in the score-based solver.

The solver operates in two stages:

  • Stage 1: Score Learning. We introduce three methods: Score Matching (SM), Sliced Score Matching (SSM), and Score-PINN. Score-PINN utilizes a "Score PDE" derived from the FP equation, providing high-order supervision for superior accuracy. To ensure stability, the authors utilize network architectures that enforce initial conditions as "hard constraints."
  • Stage 2: LL Recovery. Once the score is learned, the Log-Likelihood is recovered by solving a simple Ordinary Differential Equation (the LL ODE). Because the score function is well-behaved, this recovery remains accurate even in 100D.

Benchmarks and Distributions

The proposed method was evaluated against a variety of stochastic differential equations (SDEs) and probability distributions to test its robustness across different mathematical properties.

Analytical forms of the PDF and Score for various tested distributions, including heavy-tailed cases.

Testing included:

  • Anisotropic OU Processes: Evaluated in 20D, 50D, and 100D to test scalability.
  • Geometric Brownian Motion: Resulting in anisotropic Log-normal distributions.
  • Heavy-Tailed Distributions: Including Cauchy and Laplace distributions, which present unique challenges for traditional sampling methods due to their long tails.

Results and Discussion

Numerical results demonstrate that the score-based approach is remarkably stable. While vanilla PINN errors explode with dimensionality, our methods maintained nearly constant performance up to 100D.

Score-PINN emerged as the most accurate variant, achieving an $L_2$ error for Log-Likelihood of approximately $5 \times 10^{-3}$ in 100D OU processes. While computationally more intensive than SM (due to second-order derivatives and the use of Hutchinson Trace Estimation), it offers the highest precision. Conversely, SM and SSM provide faster training times, with SM reaching up to 2700 iterations per second, offering a clear trade-off between speed and accuracy.

Conclusion

By shifting the focus from the probability density to the score function, we provide a robust solution to the curse of dimensionality for Fokker-Planck equations. The Score-Based SDE Solver, particularly the Score-PINN variant, offers a stable, fast, and accurate alternative to traditional PDE solvers and Monte Carlo methods in high-dimensional stochastic modeling.

Summary updated

BibTeX
@misc{hu2024score,
  author = {Zheyuan Hu and Zhongqiang Zhang and George Em Karniadakis and Kenji Kawaguchi},
  title = {{Score-Based Physics-Informed Neural Networks for High-Dimensional Fokker-Planck Equations}},
  year = {2024},
  eprint = {2402.07465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.07465},
}
Figure