Momentum Diminishes the Effect of Spectral Bias in Physics-Informed Neural Networks

Ghazal Farhani, Alexander Kazachek, Boyu Wang

TL;DR

Physics-Informed Neural Networks (PINNs) notoriously struggle to learn high-frequency solutions—a failure mode known as spectral bias. By analyzing PINNs through the Neural Tangent Kernel (NTK) lens, this paper proves that adding momentum transforms the training dynamics into a damped harmonic oscillator, dramatically speeding up the decay of high-frequency error modes. Practical experiments on stiff PDEs demonstrate that wide networks trained with Gradient Descent with Momentum (GDM) or Adam cleanly overcome spectral bias where standard gradient descent, curriculum learning, and adaptive weighting fail.

What Problem Does This Paper Address?

PINNs integrate partial differential equations (PDEs) directly into empirical loss functions as physics-based regularizers. Despite their success, standard PINNs often fail on stiff PDEs or solutions exhibiting high-frequency oscillations.

Prior theoretical work showed that under vanilla Gradient Descent (GD), error components decay at rates governed by the eigenvalues of the Neural Tangent Kernel ($e^{-\kappa_i t}$). High frequencies and boundary conditions correspond to tiny eigenvalues, which decay at a crawl compared to dominant modes. To make matters worse, for target solutions like $\sin(Cx)$, the loss Hessian scales as $\mathcal{O}(C^4)$, forcing the learning rate to be impractically small. While existing workarounds rely on curriculum learning or complex adaptive loss weighting, this paper asks a simpler question: Can optimizer choice alone resolve spectral bias?

Methods

The authors analyze the continuous gradient flow of infinitely wide PINNs in the NTK regime:

  • Second-Order Gradient Flow: The authors prove that the training dynamics under GDM correspond to a physical point mass $m$ undergoing damped harmonic oscillation with friction coefficient $\mu(\alpha)$: $$m \ddot{\mathbf{u}} + \mu \dot{\mathbf{u}} + \mathbf{K}(\mathbf{u} - \mathbf{g}) = 0$$ where $\mathbf{K}$ is the composite NTK containing both boundary ($\mathbf{K}_{bb}$) and residual/collocation ($\mathbf{K}_{rr}$) kernels.

  • Oscillator Regimes: The characteristic roots for eigenvalue $\kappa'_i = \kappa_i/m$ are given by $\lambda_{1,2} = -\gamma \pm \sqrt{\gamma^2 - \kappa'_i}$ (where $\gamma = \mu / 2m$):

  • Large eigenvalues (low frequencies): Fall into the under-damped regime ($\gamma^2 < \kappa'_i$), yielding exponentially decaying oscillations.
  • Small eigenvalues (high frequencies / stiff modes): Fall into the critically-damped or over-damped regimes ($\gamma^2 \ge \kappa'_i$), enabling rapid monotonic decay.
  • Adam Analysis: The authors re-formulate Adam as GDM augmented with adaptive variance normalization. When gradient signals along high-frequency directions are weak or noisy, Adam's per-coordinate scaling dynamically boosts update steps, accelerating convergence even further.

Datasets

The authors benchmark their methods on standard synthetic 1D PDE problems used in scientific machine learning:

  1. 1D Poisson’s Equation: $\partial^2 u / \partial x^2 = -C^2 \sin(Cx)$ on $x \in [0, 1]$ across varying frequency scales $C \in [5\pi, 15\pi]$.
  2. 1D Transport Equation: $\partial u / \partial t + \beta \, \partial u / \partial x = 0$ tested across advection velocities $\beta \in [2, 25]$ with various initial conditions: $\sin(x)$, $\sin^2(x)$, $\tanh(x)$, and $\sin(x)\cos(x)$.
  3. 1D Reaction-Diffusion Equation: $\partial u / \partial t = \nu \Delta u + \rho u(1-u)$ tested across diffusion/reaction rates up to $\nu = 9, \rho = 7$.

Key Insights and Ideas

  • Momentum inverts the convergence bottleneck: Under vanilla GD, large eigenvalues converge instantly while small eigenvalues lag, creating severe spectral bias. Momentum balances this: dominant modes become oscillatory, while small-eigenvalue modes decay quickly without oscillation.
  • Boundary condition disparity in PINNs: In Poisson's equation, the residual kernel ($\mathbf{K}_{rr}$) eigenvalues are significantly larger than the boundary kernel ($\mathbf{K}_{bb}$) eigenvalues. Under vanilla GD, the network learns the general shape of the PDE first and essentially "floats," unable to anchor to the boundary conditions (causing a large vertical shift). GDM enables simultaneous fitting of both terms.
  • Overcoming second-order optimizer pitfalls: Previous literature suggested L-BFGS paired with curriculum learning to tackle high frequencies. However, stiff PDE loss landscapes are riddled with saddle points that trap quasi-Newton methods. Adam and GDM avoid these traps while matching or exceeding L-BFGS's training speed.

Key Results

  • Poisson Equation ($C = 10\pi$): Vanilla GD stalled with relative error $> 10^{-1}$ after 55,000 epochs (requiring 180,000 epochs to hit $10^{-2}$). GDM converged to $10^{-2}$ and Adam achieved $10^{-4}$ in only 25,000 to 55,000 epochs.
  • Transport Equation ($\beta = 20$): GD failed completely (relative error $\sim 10^0$ after 125,000 epochs). GDM reached $10^{-2}$ error in 55,000 epochs, while Adam reached $10^{-2}$ error in just 15,000 epochs.
  • Comparison to Baselines: For stiff parameters ($C \ge 8\pi$ and $\beta \ge 15$), adaptive weighting (AW) and curriculum learning (C-learning) produced errors $\ge 10^{-1}$. Wide networks trained directly with Adam maintained relative errors $\le 10^{-3}$ without requiring multi-stage warm starts.

Limitations and Future Work

  • Infinite-Width Assumptions: The theoretical derivations rely on the static NTK assumption ($N \to \infty$). Although networks of width 500 validated the theory empirically, real-world deployment often involves narrower architectures where kernels evolve during training.
  • Benchmark Complexity: The empirical evaluations are limited to 1D PDEs. Higher-dimensional PDEs, turbulent fluid flows, or chaotic systems may introduce complex multiscale interactions not fully captured by simple 1D harmonic oscillator analogies.
  • Hyperparameter Sensitivity: The momentum coefficients and friction parameters must be tuned; improper damping can still lead to under-damped ringing or slow convergence.

Summary updated

BibTeX
@inproceedings{farhani2023momentum,
  author = {Ghazal Farhani and Alexander Kazachek and Boyu Wang},
  title = {{Momentum Diminishes the Effect of Spectral Bias in Physics-Informed Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=YrmoVzxBLSa},
}
Figure