Introduction
Physics-Informed Neural Networks (PINNs) offer a powerful framework for solving partial differential equations (PDEs) using deep learning. However, they are notoriously difficult to train. Their loss landscapes are often "stiff" and ill-conditioned, meaning standard first-order optimizers like Adam or SGD frequently get stuck or converge painfully slowly.
To overcome this, researchers employ Energy Natural Gradient Descent (ENGD), a second-order method that reshapes the loss landscape to make optimization easier. The catch is that ENGD is computationally brutal. It requires inverting a massive matrix based on the number of neural network parameters ($P$). For a million-parameter model, a naive implementation requires $O(P^3)$ operations—a non-starter for modern deep learning. While approximations like K-FAC exist, they are often complex to implement and tied to specific network architectures.
This paper introduces a suite of techniques adapted from the quantum physics community to supercharge ENGD, achieving the same accuracy as standard second-order methods up to 75x faster.
Core Methods: Woodbury, Momentum, and Randomization
The authors introduce three main upgrades to make natural gradients practical for PINNs:
1. The Woodbury "Push-Through" Identity Instead of working in the massive parameter space ($P$), the authors use the Woodbury matrix identity to move the computation into the sample space ($N$). Since the number of training points is usually much smaller than the number of parameters ($N \ll P$), this slashes the computational complexity from $O(P^3)$ to $O(N^2P)$. This mathematical trick makes "exact" natural gradient descent possible for models with millions of weights on standard consumer hardware.
2. SPRING (Momentum) Borrowed from the Variational Monte Carlo (VMC) literature—where researchers simulate quantum many-body systems—SPRING adds a clever form of momentum to the natural gradient. This allows the optimizer to "remember" curvature information across iterations. It leads to faster convergence and eliminates the need for the expensive "line searches" typically required by ENGD.
3. GPU-Efficient Randomized Nyström For cases with very large batch sizes where even $O(N^2P)$ is too slow, the authors utilize randomized sketching. They developed a custom version of the Nyström method that avoids slow Singular Value Decompositions (SVDs) on GPUs, relying instead on faster Cholesky decompositions.
Experimental Setup and Key Insights
The methods were evaluated on several challenging PDE benchmarks, including 5D and 100D Poisson Equations, a 4+1D Heat Equation, and a 9+1D Log-Fokker-Planck Equation. Across over 4,500 training runs, several key insights emerged:
- Cross-Pollination is Key: The most effective techniques came from VMC research. The mathematical structures of simulating quantum systems and solving PDEs with PINNs are nearly identical, making this "method transfer" highly effective.
- "Woodbury is the Right Way": For most PINN applications, the Woodbury-based exact natural gradient is superior to approximations like K-FAC because it is architecture-agnostic and easier to implement.
- The Bottleneck Shift: In high-dimensional problems, the bottleneck isn't the matrix inversion; it's the cost of differentiating through the PDE operator itself. This explains why randomized algorithms show diminishing returns as the number of dimensions increases.
- Effective Dimension: The "effective dimension" of the kernel matrix is often quite high (more than 50% of the batch size), which limits how much you can "sketch" or compress the matrix without losing critical information.
Key Results
The proposed suite of optimizations yields dramatic improvements in both speed and accuracy:
- Speed: On a 5D Poisson problem, the Woodbury-enhanced method reached the target error 75x faster than the original ENGD implementation.
- Accuracy: In the 100D Poisson and 9+1D Fokker-Planck problems, SPRING achieved $L^2$ errors an order of magnitude lower than state-of-the-art baselines like K-FAC.
- Efficiency: The custom GPU-Nyström implementation provided a 13x to 65x speedup over standard randomized linear algebra routines.
- Robustness: SPRING consistently outperformed Adam, SGD, and Hessian-free optimizers across all tested dimensions.
Limitations and Future Work
While highly effective, the approach has limitations. Randomization helps primarily in the early stages of training for low-dimensional problems but struggles to provide speedups in high-dimensional settings or late-stage "fine-tuning" phases.
Additionally, the current randomized approach uses a fixed "sketch size." The authors suggest that future work should explore adaptive rank selection, where the algorithm automatically decides how much to compress the matrix based on the current state of training. Finally, while SPRING removes the need for a line search, it introduces new hyperparameters (damping and momentum) that require tuning for optimal performance.
Summary updated