TENG: Time-Evolving Natural Gradient for Solving PDEs With Deep Neural Nets Toward Machine Precision

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

TL;DR

TENG (Time-Evolving Natural Gradient) is a novel framework for solving partial differential equations (PDEs) using neural networks that achieves near-perfect "machine precision" accuracy. By combining variational principles with natural gradient optimization, TENG outperforms existing methods like PINNs and TDVP by orders of magnitude, effectively bridging the gap between deep learning and classical high-precision numerical analysis.

The Challenge with Neural PDE Solvers

Partial Differential Equations (PDEs) form the mathematical backbone of physics and engineering, describing phenomena from heat flow to fluid dynamics. While traditional numerical solvers (like finite element methods) are powerful, they often struggle with high-dimensional problems or complex geometries.

Neural networks have emerged as a promising alternative due to their nature as universal function approximators. However, solving Initial Value Problems—where a system evolves over time—has remained a major hurdle. Current approaches generally fall into two camps:

  1. Global-in-time (e.g., PINNs): These attempt to solve the entire time-space volume simultaneously but frequently struggle with optimization convergence and accuracy.
  2. Sequential-in-time (e.g., TDVP, OBTI): These solve the PDE step-by-step. Unfortunately, they either suffer from "projection errors" (TDVP) or get trapped in the complex, non-convex landscape of neural network parameters (OBTI).

Consequently, most neural PDE solvers remain "low-precision," yielding errors far higher than what rigorous engineering applications require.

Introducing TENG: Time-Evolving Natural Gradient

To address these shortcomings, the authors introduce TENG, a method that generalizes and significantly improves upon previous sequential approaches.

Conceptual diagram of TENG bridging TDVP and OBTI through repeated tangent projection.

The Core Innovation: Repeated Tangent Projection

Instead of taking a single "best guess" at the update direction (as seen in the Time-Dependent Variational Principle, or TDVP), TENG treats each time step as a mini-optimization problem. It calculates the gradient of the loss in the function space (how the solution $u$ should change) and then projects that gradient onto the parameter space (how the neural network weights $\theta$ should change) using a natural gradient approach.

Key technical highlights include:

  • Iterative Refinement: Within a single time step, TENG performs multiple iterations of these projections. This allows it to reach a training loss close to $10^{-14}$ (machine precision) before advancing to the next time step.
  • Higher-Order Integration: Unlike many optimization-based methods restricted to simple "Forward Euler" steps, the authors developed TENG-Heun (2nd order) and TENG-RK4 (4th order) variants. These enable larger time steps without sacrificing accuracy.
  • Sparse Updates: To maintain computational efficiency, TENG employs a "sparse update" scheme, randomly sub-sampling a fraction of the neural network parameters to update in each iteration.

Key Insights

  • Function Space vs. Parameter Space: The authors observe that while the loss function is a complex, non-convex landscape in terms of neural network weights ($\theta$), it is often much better behaved (convex) in the space of the actual functions ($u$). TENG exploits this by performing the "heavy lifting" of the gradient calculation in function space.
  • TDVP is a Special Case: The paper mathematically proves that the popular TDVP method is essentially TENG limited to a single iteration. By simply iterating, TENG eliminates the systematic projection errors that plague TDVP.
  • Reparameterization Invariance: A major theoretical advantage is that TENG’s optimal solution remains consistent regardless of how the network is parameterized (e.g., using different activation functions or architectures), provided the network is sufficiently expressive.

Experimental Validation and Results

The researchers benchmarked TENG against several classic, challenging PDEs, including the Heat Equation (2D & 3D), the Allen-Cahn Equation (known for sharp, difficult-to-capture boundaries), and Burgers’ Equation (which produces steep shock gradients). They also tested complex geometries, such as a 2D disk with Dirichlet boundary conditions.

Relative L2-Error over time comparing TENG to baseline methods across four different PDEs.
  • Unprecedented Accuracy: TENG-Heun achieved relative $L^2$ errors in the range of $10^{-5}$ to $10^{-6}$ for nonlinear equations like Allen-Cahn and Burgers'. For context, standard OBTI and PINN methods often hover around $10^{-1}$ to $10^{-3}$ on the same problems.
  • Machine Precision per Step: In per-step optimizations, TENG consistently reached losses of $10^{-14}$. This means the neural network matched the PDE's target update as perfectly as standard floating-point arithmetic allows.
  • Efficiency: Despite achieving vastly higher precision, TENG’s runtime remains comparable to existing methods because it requires far fewer total iterations to converge than standard optimizers like Adam or L-BFGS.

Limitations and Future Work

While TENG represents a massive leap forward, the authors note a few areas for future exploration:

  • Vector-Valued Systems: The current research focuses primarily on scalar-valued PDEs. Extending this framework to vector-valued systems, such as the full Navier-Stokes equations for fluid flow, is a logical next step.
  • Complex Boundary Conditions: While the authors demonstrated success with periodic and Dirichlet boundaries, more complex, time-varying, or Neumann boundary conditions require further investigation.
  • Scaling to Massive Networks: The computational cost of the natural gradient (solving a least-squares problem for the Jacobian) grows with the number of parameters. Scaling to massive "foundation-model" networks will necessitate even more advanced sparse or low-rank approximation techniques.

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 Nets Toward Machine Precision}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=v1I4zRAjMb},
}
Figure