Kronecker-Factored Approximate Curvature for Physics-Informed Neural Networks

Felix Dangel, Johannes Müller, Marius Zeinhofer
5/24/2024
cs.LGphysics.comp-ph

No official code found. Best implementation: f-dangel/kfac-pinns-experiments (8 stars, last commit 2025-05-21).

Abstract

Physics-informed neural networks (PINNs) are infamous for being hard to train. Recently, second-order methods based on natural gradient and Gauss-Newton methods have shown promising performance, improving the accuracy achieved by first-order methods by several orders of magnitude. While promising, the proposed methods only scale to networks with a few thousand parameters due to the high computational cost to evaluate, store, and invert the curvature matrix. We propose Kronecker-factored approximate curvature (KFAC) for PINN losses that greatly reduces the computational cost and allows scaling to much larger networks. Our approach goes beyond the established KFAC for traditional deep learning problems as it captures contributions from a PDE's differential operator that are crucial for optimization. To establish KFAC for such losses, we use Taylor-mode automatic differentiation to describe the differential operator's computation graph as a forward network with shared weights. This allows us to apply KFAC thanks to a recently-developed general formulation for networks with weight sharing. Empirically, we find that our KFAC-based optimizers are competitive with expensive second-order methods on small problems, scale more favorably to higher-dimensional neural networks and PDEs, and consistently outperform first-order methods and LBFGS.

View on arXivView PDF

Code Implementations(1)

[NeurIPS2024] Paper and experiments for "Kronecker-Factored Approximate Curvature for Physics-Informed Neural Networks"

80TeX, ShellNov 6, 20231 years ago

Similar Papers

Cite this paper

@article{dangel2024kroneckerfactored,
  title  = {Kronecker-Factored Approximate Curvature for Physics-Informed Neural Networks},
  author = {Felix Dangel and Johannes Müller and Marius Zeinhofer},
  year   = {2024},
  eprint = {2405.15603},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.15603},
  url    = {http://arxiv.org/abs/2405.15603v3},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15603.svg)](https://codeofpaper.com/paper/2405.15603)

Discussion