Adaptive Self-Supervision Algorithms for Physics-Informed Neural Networks

Shashank Subramanian, Robert M. Kirby, Michael W. Mahoney, Amir Gholami

TL;DR

Physics-Informed Neural Networks (PINNs) often struggle to converge when physical features are sharp or localized. This paper introduces a novel adaptive collocation scheme that dynamically relocates training points to high-error regions using the gradient of the loss function and a cosine-annealing schedule, resulting in up to a 10x reduction in prediction error without increasing computational overhead.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) are a powerful tool for Scientific Machine Learning (SciML) because they embed physical laws (like PDEs) directly into the neural network's loss function as a "soft constraint." However, training them is notoriously difficult. The loss landscapes are often ill-conditioned, and the models frequently get stuck in poor local minima.

A major overlooked factor is the placement of collocation points—the specific coordinates in the domain where the network is forced to "obey" the physics. Standard practice involves sampling these points randomly at the start and keeping them fixed. The authors argue this is sub-optimal: if a PDE has a sharp feature (like a shock wave or a localized source), a random uniform grid will likely miss the most critical areas, leading to massive prediction errors.

Methods

The authors propose moving away from static sampling toward Adaptive Self-supervision. They introduce three main strategies:

  1. Resampling: Simply refreshing the random collocation points whenever the optimizer (LBFGS) stalls. This helps "shake" the model out of local minima.
  2. Adaptive-R (Residual-based): Sampling new points based on the magnitude of the PDE residual. Areas where the model violates the physics most get more points.
  3. Adaptive-G (Gradient-based): The paper’s primary innovation. It uses the gradient of the loss function with respect to the spatial coordinates as a proxy for where the model is struggling.
  4. Progressive Cosine Annealing: To prevent the model from becoming too focused on one spot and ignoring the rest of the domain, they use a cosine schedule. This periodically transitions the sampling from purely uniform (global exploration) to highly adaptive (local refinement), ensuring the model maintains a global understanding of the physics while zooming in on trouble spots.

Datasets

The researchers evaluated their methods on two prototypical 2D steady-state PDE systems:

  • 2D Poisson Equation: A standard elliptic system used to model heat or potential.
  • 2D Diffusion-Advection Equation: A system that simulates how substances move and spread, which is significantly harder to solve due to the directional "flow" (advection).

For both, they tested two variants: TC1/TC3 (Smooth) where the source function is broad, and TC2/TC4 (Sharp) where the source is highly localized, making it much harder for standard PINNs to capture.

Key Insights and Ideas

  • The Gradient is a Better Proxy: While many previous works used the raw PDE residual to pick points, this paper shows that the gradient of the loss (Adaptive-G) is often more effective at localizing sharp features.
  • Fixed Points are a Trap: Keeping collocation points static is a primary source of training failure in PINNs. Even simple resampling can boost performance, but it isn't enough for complex, sharp features.
  • The "Exploration vs. Exploitation" Balance: The cosine-annealing schedule is the "secret sauce." By periodically returning to uniform sampling, the algorithm avoids "over-fitting" its attention to one region of the domain at the expense of others.
  • Efficiency Matters: Unlike other adaptive methods that add more points (increasing compute), this method keeps the number of points constant and just moves them, making it computationally comparable to the baseline.

Key Results

  • Massive Error Reduction: In the "Sharp" 2D Poisson test case (TC2), the baseline PINN had a staggering 70.9% relative error. The Adaptive-G method slashed this to just 4.08%.
  • Performance in Low-Data Regimes: The benefits are most pronounced when the number of collocation points is small. Adaptive-G consistently achieved an order of magnitude better accuracy than the baseline in these "data-starved" scenarios.
  • Stability: The adaptive schemes showed much lower variance across different random seeds, meaning the training process is more reliable and less sensitive to initial conditions.

Limitations and Future Work

The authors identify several areas for growth:

  • Dimensionality: The study focused on 2D spatial systems. Extending this to 3D or time-dependent (3D+1) problems is a logical next step, as those loss landscapes are even more complex.
  • Architecture Tuning: The neural network architecture (a standard feed-forward NN) was kept fixed. The authors suggest that combining adaptive sampling with neural architecture search or hyperparameter optimization could yield even better results.
  • Complex Geometries: The tests were performed on simple square domains; testing on irregular or complex physical geometries remains an open challenge.

Summary updated

BibTeX
@inproceedings{subramanian2023adaptive,
  author = {Shashank Subramanian and Robert M. Kirby and Michael W. Mahoney and Amir Gholami},
  title = {{Adaptive Self-Supervision Algorithms for Physics-Informed Neural Networks}},
  booktitle = {ECAI},
  year = {2023},
  url = {https://openreview.net/forum?id=CAuFFd4HxY},
}
Figure