A Stable and Scalable Method for Solving Initial Value PDEs with Neural Networks

Marc Anton Finzi, Andres Potapczynski, Matthew Choptuik, Andrew Gordon Wilson

Partial Differential Equations (PDEs) are the bedrock of physics, describing everything from fluid flow to quantum mechanics. However, classical methods like finite differences or finite elements rely on grids or meshes. These suffer from the "curse of dimensionality": as the number of dimensions increases, the number of grid points grows exponentially, making 10D or 20D problems impossible to solve with traditional techniques.

Neural networks offer a way out because they can represent high-dimensional functions efficiently. However, existing neural approaches have major flaws:

  1. Global Methods (PINNs): These try to solve for all space and time at once, often suffering from "catastrophic forgetting" where the network loses the solution at early times while trying to fit later times.
  2. Local-in-Time Methods: These convert the PDE into an Ordinary Differential Equation (ODE) that describes how the network's weights should change over time. While promising, previous versions were computationally expensive (scaling cubically, $O(p^3)$, with the number of parameters $p$) and mathematically unstable, leading to "ill-conditioned" systems where numerical errors explode.

To overcome these bottlenecks, researchers have developed Neural-IVP, a stable and scalable method for solving initial value PDEs by evolving neural network parameters through time.

The Neural-IVP Approach

Neural-IVP refines the local-in-time approach through several key mathematical and architectural innovations designed to ensure stability and scale to larger networks.

Stability via SGD Restarts

The authors prove that the "parameter ODE" naturally drifts into regions of the parameter space where the math becomes unstable (singularities). This is partly because neural networks have "parameter symmetries" (e.g., scaling weights in one layer and downscaling them in the next without changing the output), which create singular directions that cause the ODE solver to fail.

While the ODE solver follows the "path of least resistance" into unstable territory, Stochastic Gradient Descent (SGD) naturally gravitates toward "flat" and stable minima. To fix the instability, Neural-IVP periodically pauses the ODE solver and performs a few steps of SGD to "refit" the network. This acts as a reset, pushing the parameters back into well-conditioned regions and preventing the uncontrolled growth of numerical errors.

Eigenvalue spectrum and the stabilizing effect of SGD restarts on maximum eigenvalues and Conjugate Gradient (CG) iterations over time.

Breaking the $O(p^3)$ Barrier

Instead of explicitly calculating and inverting massive matrices (which takes $O(p^3)$ time), Neural-IVP uses Jacobian-vector products (JVPs). This allows the use of iterative solvers like Conjugate Gradients (CG), bringing the computational cost down to $O(p)$. To speed up this iterative solver, they introduce a randomized Nyström preconditioner, which significantly reduces the number of iterations needed to solve the underlying linear systems.

By moving to an $O(p)$ framework, the authors could use networks with 100x more parameters than previous local-in-time methods, allowing them to represent much more intricate physics.

Architectural Enhancements

To further improve the network's ability to capture complex PDE initial conditions and solutions, the authors incorporated:

  • Sinusoidal embeddings (similar to those used in NeRFs) to help the network capture high-frequency details.
  • Head tuning (a last-layer linear solve) to perfectly match initial conditions.
Ablation study showing how architectural enhancements like sinusoidal embeddings, head tuning, and scaling up parameters reduce relative error across higher frequencies.

Key Results on Challenging Benchmarks

The method was evaluated on several challenging PDE benchmarks, demonstrating significant improvements over prior state-of-the-art:

  • Unprecedented Dimensionality: The method successfully solved the Fokker-Planck equation in 20 dimensions, a feat that is computationally impossible for traditional grid-based methods.
  • Complex Physics: In a Wave Maps experiment (simulating a complex, non-linear PDE from general relativity involving a black hole metric), Neural-IVP produced stable solutions where optimized finite-difference solvers ran out of memory.
  • High Accuracy: Neural-IVP achieved an order of magnitude lower PDE residual compared to previous state-of-the-art methods like EDNN.
  • Sustained Efficiency: Thanks to the Nyström preconditioner and JVP-based approach, the solver maintained a constant, low number of iterations even as the simulation progressed over time.

Limitations and Future Work

While Neural-IVP represents a major step forward for neural PDE solvers, some challenges remain. The method relies on sampling points in space to estimate the PDE residual (Monte Carlo noise); in very high dimensions, these samples can become sparse, leading to noisier gradients. Additionally, the current work focuses on Dirichlet boundaries. Extending this to more complex, non-rectangular, or open boundaries is a logical next step. Finally, future versions could leverage "active learning" to sample points more heavily in regions where the solution is changing rapidly, such as near shock waves.

Summary updated

BibTeX
@inproceedings{finzi2023stable,
  author = {Marc Anton Finzi and Andres Potapczynski and Matthew Choptuik and Andrew Gordon Wilson},
  title = {{A Stable and Scalable Method for Solving Initial Value PDEs with Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=vsMyHUq_C1c},
}
Figure