Probing optimisation in physics-informed neural networks

Nayara Fonseca, Veronica Guidetti, Will Trojak · DOI

Abstract

Physics-Informed Neural Networks (PINNs) offer a powerful framework for solving partial differential equations (PDEs) by embedding physical laws into the loss function. However, their training is often plagued by convergence issues. This paper investigates PINN optimization dynamics by introducing a low-cost metric to track the curvature of the training trajectory. By analyzing the 1D linear advection equation, we demonstrate a strong negative correlation between convergence error and trajectory curvature, revealing that high-quality PINN solutions reside in highly curved regions of the parameter space. Our findings explain the superior performance of second-order methods like LBFGS and challenge conventional wisdom regarding "flat" minima in scientific machine learning.

Introduction

PINNs have revolutionized the approach to solving PDEs, yet they remain notoriously difficult to optimize. While much research has focused on architecture and loss weighting, the actual path an optimizer takes through the high-dimensional weight landscape is poorly understood. This study aims to bridge this gap by visualizing and measuring the kinematics of optimization.

The researchers propose tracking Local Trajectory Curvature ($\kappa_\omega$) as a particle moving through parameter space. Unlike the computationally expensive Hessian matrix, this metric uses a first-order approximation to monitor the "twistiness" of the optimizer's path on the fly. We compare four optimizers: Gradient Descent (GD), ADAM, LBFGS, and the physics-inspired Bouncing Born–Infeld (BBI).

Experimental Setup

The study focuses on the 1D Linear Advection Equation, where the wave speed ($\beta$) serves as a complexity tuner. Higher $\beta$ values represent more challenging physics for the network to learn. Experiments were conducted on both "Small" (751 parameters) and "Large" (7,851 parameters) Multi-Layer Perceptron (MLP) architectures using approximately 2,000 training points sampled across the spatial and temporal domain.

Results and Discussion

A primary finding of this work is the strong link between solution quality and the geometric properties of the optimization path.

The Complexity Barrier

As the wave speed $\beta$ increases, the PDE becomes significantly harder to solve. Figure 1 illustrates the performance degradation across different optimizers. For high speeds, the optimization landscape becomes increasingly difficult, and most optimizers fail to capture the underlying physics, with the loss becoming dominated by initial conditions.

Median MSE as a function of wave speed $\beta$ for different optimizers. Solid and dashed lines represent different network architectures.

While LBFGS and ADAM are the most effective, even they face a "barrier" at very high complexity. Standard Gradient Descent performed the worst, often failing to overcome saddle points or escape local minima due to a lack of momentum or stochasticity. Larger networks generally achieved lower errors, supporting the idea that more parameters help find better paths through the complex loss landscape.

Curvature as a Quality Proxy

The most striking discovery is the strong negative correlation between convergence error (MSE) and trajectory curvature ($\kappa_\omega$). Contrary to the common deep learning intuition that "flat" minima lead to better generalization, PINNs appear to reach their most physically accurate states in "highly curved" regions of the parameter space.

Correlation between MSE and trajectory curvature $\kappa_\omega$ for small (left) and large (right) architectures. Lower error solutions correspond to higher curvature regions.

As shown in Figure 3, LBFGS consistently achieved the highest trajectory curvature and the lowest error. Because it utilizes second-order information, it can navigate these highly curved regions more effectively than first-order methods. The researchers demonstrated that the Spearman correlation between MSE and curvature remains strongly negative (often < -0.5) throughout the training process, not just at the end. Interestingly, the physics-inspired BBI optimizer did not perform as well as expected in this setup, likely due to hyperparameter sensitivity.

Conclusion

This research provides a new lens through which to view PINN optimization. By demonstrating that high-quality solutions reside in highly curved regions, it clarifies the success of second-order methods and highlights a potential fundamental difference between scientific ML and traditional AI. Future work will explore if these curvature insights hold true for non-linear PDEs like Navier-Stokes and higher-dimensional problems.

Summary updated

BibTeX
@misc{fonseca2023probing,
  author = {Nayara Fonseca and Veronica Guidetti and Will Trojak},
  title = {{Probing optimisation in physics-informed neural networks}},
  year = {2023},
  eprint = {2303.15196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.15196},
}
Figure