Abstract
Can neural networks learn to solve partial differential equations (PDEs)? We investigate this question for two (systems of) PDEs, namely, the Poisson equation and the steady Navier--Stokes equations. The contributions of this paper are five-fold. (1) Numerical experiments show that small neural networks (< 500 learnable parameters) are able to accurately learn complex solutions for systems of partial differential equations. (2) It investigates the influence of random weight initialization on the quality of the neural network approximate solution and demonstrates how one can take advantage of this non-determinism using ensemble learning. (3) It investigates the suitability of the loss function used in this work. (4) It studies the benefits and drawbacks of solving (systems of) PDEs with neural networks compared to classical numerical methods. (5) It proposes an exhaustive list of possible directions of future work.
Introduction
Partial differential equations (PDEs) serve as the mathematical bedrock for modeling complex phenomena in physics, engineering, and finance. Traditional numerical methods, such as finite difference or finite element methods, rely on spatial discretization into grids or meshes. However, mesh generation for complex geometries or high-dimensional spaces is often computationally prohibitive.
Recently, Physics-Informed Neural Networks (PINNs) have emerged as a mesh-free alternative, approximating PDE solutions continuously. This study critically evaluates the empirical viability of using small neural networks to solve the Poisson and steady Navier-Stokes equations, focusing on sensitivity to initialization, loss function correlation, and comparative performance against classical methods.
Methodology
The solving process is framed as an unsupervised learning problem. The constrained PDE is converted into an unconstrained optimization problem using a penalty method.
Loss Function and Optimization
The network minimizes a Monte Carlo approximation of the PDE residual. The loss function is defined as the mean squared error (MSE) of the governing equation evaluated at random interior points, combined with the MSE of the boundary conditions at random edge points. Optimization is performed using the BFGS algorithm, a second-order method, which was found to be more effective than standard first-order optimizers like Adam for these specific tasks.
Architecture
The study employs small Multi-Layer Perceptrons (MLPs) with 1 to 4 hidden layers and 16 units per layer. These networks use Sigmoid activation functions and Xavier initialization. To evaluate accuracy against known analytical solutions without numerical integration bias, a heuristic error metric inspired by finite differences is used over a uniform grid.
Experimental Results
The Poisson Equation
For a 2D Poisson problem with a known sinusoidal solution, the experiments revealed that extremely small networks are highly effective. Surprisingly, the shallowest network (1 hidden layer, 65 parameters) achieved the best performance with an error of $4.7 \times 10^{-7}$.
Steady Navier-Stokes Equations
The Kovasznay flow problem was used to test the solver on incompressible steady flow. Separate networks were used for velocity and pressure. The optimal configuration (419 total parameters) reached an error of $5.7 \times 10^{-6}$.
Key Insights
- Initialization Sensitivity: Random weight initialization significantly impacts the final solution quality. Identical architectures can produce vastly different error rates based solely on their starting state.
- Ensemble Learning: To mitigate initialization variance, training an ensemble of networks and averaging their predictions proved highly effective. For the Navier-Stokes problem, a 10-network ensemble reduced error by nearly two-thirds compared to individual model averages.
- Loss-Error Correlation: A critical finding is that minimizing the PDE residual (the loss) does not always correlate strongly with minimizing the actual solution error. While the correlation was strong for Navier-Stokes ($\ge 0.85$), it was notably weaker for the Poisson problem ($\le 0.6$).
Discussion and Future Work
While neural network solvers offer a mesh-free approach, they currently face significant challenges. The BFGS-based solver is slower than classical deterministic methods, and optimization landscapes for deeper networks remain difficult to navigate, often leading to early termination of the optimizer.
Future research directions include implementing Lagrangian descent methods to better enforce boundary constraints and using adaptive sampling (such as MCMC) to focus training on regions with high residuals.
Summary updated