Three Ways to Solve Partial Differential Equations with Neural Networks\n -- A Review

Jan Blechschmidt, Oliver G. Ernst

TL;DR

This review paper provides a comprehensive guide to three modern neural network-based strategies for solving partial differential equations (PDEs): Physics-Informed Neural Networks (PINNs), Feynman-Kac-based methods, and Deep BSDE solvers. It highlights how these "scientific machine learning" techniques can bypass the computational bottlenecks of classical methods, particularly when dealing with high-dimensional problems that were previously considered unsolvable.

What Problem Does This Paper Address?

Classical numerical methods for solving PDEs, such as finite element or finite difference methods, rely on discretizing space into a grid or mesh. These methods suffer from the "curse of dimensionality": as the number of spatial dimensions ($d$) increases, the number of required grid points grows exponentially ($O(N^d)$). This makes it computationally impossible to solve PDEs in 100 dimensions—a common requirement in fields like mathematical finance (portfolio optimization) and quantum physics.

The authors address the need for "mesh-free" methods that can approximate solutions in high-dimensional spaces without the exponential memory and time costs associated with traditional grids.

Methods

The paper contrasts three primary frameworks:

  1. Physics-Informed Neural Networks (PINNs):
    • How it works: PINNs treat the PDE solution as a neural network. The "physics" is embedded directly into the loss function using automatic differentiation. The network is trained to minimize the residual of the PDE at specific "collocation points," along with the misfit of initial and boundary conditions.
  2. Novelty: It is a "small data" approach that doesn't require pre-calculated solution labels; the PDE itself provides the supervision.
  3. Feynman-Kac Methods:
    • How it works: This method exploits a deep mathematical link between linear parabolic PDEs and stochastic processes (random walks). The solution to the PDE at a point is expressed as an expectation over many random paths.
  4. Novelty: By treating the solution as a regression task on simulated stochastic paths, the method achieves dimension-independent convergence, making it highly effective for linear problems in 100+ dimensions.
  5. Deep BSDE Solvers:
    • How it works: This extends the stochastic approach to semilinear (nonlinear) PDEs. It reformulates the PDE as a Backward Stochastic Differential Equation (BSDE). A neural network is used to approximate the unknown gradient of the solution at each time step.
  6. Novelty: It allows for end-to-end training of nonlinear high-dimensional problems by minimizing the error between the simulated terminal state and the known final condition of the PDE.

Datasets

The paper utilizes synthetic benchmark problems commonly used in numerical analysis to evaluate the methods:

  • Low-Dimensional: 1D Burgers equation (fluid dynamics) and 1D Eikonal equation (wave propagation/optimal control).
  • High-Dimensional (100D): The Heat equation, the Allen-Cahn equation (phase separation), and Linear-Quadratic Gaussian (LQG) control problems.
  • Software: The paper is accompanied by a suite of Jupyter notebooks providing step-by-step Python implementations using TensorFlow.

Key Insights and Ideas

  • Mesh-free Scaling: Neural networks act as universal function approximators that don't require a fixed grid, allowing them to "break" the curse of dimensionality.
  • Automatic Differentiation is Key: The ability of modern ML libraries (TensorFlow/PyTorch) to compute exact derivatives of neural networks is what makes PINNs practical.
  • Stochastic Reformulation: The most powerful insight for high-D problems is moving away from "calculus on a grid" toward "statistics on random paths."
  • Surprising Simplicity: In the Deep BSDE experiments, the authors found that even very simple network architectures (sometimes with only one time step) could provide decent approximations for complex 100D control problems in just a few seconds.

Key Results

  • High-D Success: The authors successfully solved 100-dimensional Heat and Allen-Cahn equations with relative errors as low as $10^{-3}$ to $10^{-4}$.
  • Handling Shocks: PINNs were shown to effectively capture the sharp "shocks" in the Burgers equation and "kinks" in the Eikonal equation, though they required specific activation functions like Leaky ReLU to do so accurately.
  • Efficiency: Deep BSDE solvers provided solutions to 100D nonlinear problems in minutes on standard hardware, whereas classical methods would have required more atoms than exist in the universe to store the equivalent grid.

Limitations and Future Work

  • Lack of Theory: Unlike classical methods (which have decades of error analysis), neural network solvers currently lack rigorous proofs for error bounds and convergence rates.
  • Optimization Challenges: Training these networks is an NP-hard non-convex optimization problem. The solvers can sometimes get stuck in local minima, leading to unstable results.
  • Hyperparameter Sensitivity: The quality of the solution depends heavily on the choice of learning rate, network depth, and sampling strategy, which often requires manual "tuning."
  • Future Directions: The authors suggest moving toward fully nonlinear second-order PDEs and improving the robustness of the optimization algorithms to make these methods "production-ready" for engineering.

Summary updated

Abstract

Neural networks are increasingly used to construct numerical solution methods\nfor partial differential equations. In this expository review, we introduce and\ncontrast three important recent approaches attractive in their simplicity and\ntheir suitability for high-dimensional problems: physics-informed neural\nnetworks, methods based on the Feynman-Kac formula and methods based on the\nsolution of backward stochastic differential equations. The article is\naccompanied by a suite of expository software in the form of Jupyter notebooks\nin which each basic methodology is explained step by step, allowing for a quick\nassimilation and experimentation. An extensive bibliography summarizes the\nstate of the art.\n
BibTeX
@inproceedings{blechschmidt2021three,
  author = {Jan Blechschmidt and Oliver G. Ernst},
  title = {{Three Ways to Solve Partial Differential Equations with Neural Networks\textbackslash\{\}n -- A Review}},
  booktitle = {GAMM-Mitteilungen},
  year = {2021},
  doi = {10.1002/gamm.202100006},
}
Figure