TENG: Time-Evolving Natural Gradient for Solving PDEs with Deep Neural Net

Zhuo Chen, Jacob McCarran, Esteban Vizcaino, Marin Soljacic, Di Luo

Abstract

Partial differential equations (PDEs) are instrumental for modeling dynamical systems in science and engineering. The advent of neural networks has initiated a significant shift in tackling these complexities though challenges in accuracy persist, especially for initial value problems. In this paper, we introduce the $\textit{Time-Evolving Natural Gradient (TENG)}$, generalizing time-dependent variational principles and optimization-based time integration, leveraging natural gradient optimization to obtain high accuracy in neural-network-based PDE solutions. Our comprehensive development includes algorithms like TENG-Euler and its high-order variants, such as TENG-Heun, tailored for enhanced precision and efficiency. TENG's effectiveness is further validated through its performance, surpassing current leading methods and achieving $\textit{machine precision}$ in step-by-step optimizations across a spectrum of PDEs, including the heat equation, Allen-Cahn equation, and Burgers' equation.

Introduction

Solving initial value problems (IVPs) for PDEs is fundamental to science and engineering, from weather forecasting to fluid dynamics. While deep learning has offered a "new hope" for high-dimensional PDEs, current methods face a major hurdle: accuracy and error propagation. Existing neural solvers generally fall into two categories: global-in-time methods like Physics-Informed Neural Networks (PINNs), which optimize over the entire space-time domain, and sequential-in-time methods like the Time-Dependent Variational Principle (TDVP) and Optimization-Based Time Integration (OBTI).

However, PINNs often struggle to reach high precision, TDVP introduces projection errors at every time step, and OBTI faces the non-convex landscape of neural network parameter space. TENG addresses these gaps by providing a solver as accurate as traditional numerical methods while leveraging the expressive power of neural networks.

Methodology: The TENG Framework

The core contribution of this work is the Time-Evolving Natural Gradient (TENG). It bridges the gap between TDVP and OBTI through a "repeated tangent space projection" approach.

Conceptual framework of TENG generalizing TDVP and OBTI via repeated tangent projection and natural gradient optimization.

TENG recognizes that while the loss function is difficult to optimize in the parameter space ($\theta$), it is often much better behaved—even convex—in the function space ($u$). Instead of a single projection or a raw optimization, TENG performs multiple iterations within a single time step. In each iteration, it calculates the gradient in function space and projects it onto the neural network's tangent space using the Natural Gradient, utilizing the Hilbert Gram matrix. To maintain efficiency, the authors employ a sparse update scheme, sub-sampling parameters to reduce the cost of solving the least-squares problem without sacrificing final accuracy.

Experimental Benchmarks and Results

TENG was evaluated on several standard mathematical benchmarks, including the Heat Equation (2D & 3D), the nonlinear Allen-Cahn Equation, and the Burgers' Equation.

Comparison of relative L2 error over time across different PDEs, demonstrating TENG's superior accuracy compared to PINNs, TDVP, and OBTI.

Key results from these experiments include:

  • Superior Accuracy: TENG-Heun (a second-order variant) achieved relative $L^2$ errors in the range of $10^{-5}$ to $10^{-6}$ across all benchmarks. In contrast, standard OBTI and PINN methods typically hover around $10^{-2}$ or $10^{-3}$.
  • Machine Precision: The framework demonstrates that training loss can reach $10^{-14}$ in individual steps, suggesting that the limitation of neural PDE solvers lies in optimization algorithms rather than the network architecture itself.
  • Stability and Efficiency: Despite the iterative nature of the method, TENG's runtime is comparable to existing sequential methods because it requires fewer iterations to converge to high-quality solutions. TENG-Heun remained stable even with relatively large time steps ($\Delta t$).

Conclusion

TENG represents a significant step toward making neural network PDE solvers a production-ready tool for scientific computing. By performing optimization in function space and projecting back to parameter space, it avoids the local minima that plague standard gradient descent. Future work will look to extend this framework to vector-valued systems like the Navier-Stokes equations and handle more complex, irregular boundary conditions in high dimensions.

Summary updated

BibTeX
@inproceedings{chen2024teng,
  author = {Zhuo Chen and Jacob McCarran and Esteban Vizcaino and Marin Soljacic and Di Luo},
  title = {{TENG: Time-Evolving Natural Gradient for Solving PDEs with Deep Neural Net}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=v1I4zRAjMb},
}
Figure