Mitigating Instability in High Residual Adaptive Sampling for PINNs via Langevin Dynamics

Minseok Jeong, Giup Seo, Euiseok HwangNeurIPS 2025

TL;DR

This paper introduces Langevin Adaptive Sampling (LAS), a novel framework designed to stabilize Physics-Informed Neural Networks (PINNs) during training. By using Langevin dynamics to update collocation points, LAS prevents the numerical instability common in high-residual sampling methods while maintaining high accuracy, especially in complex, high-dimensional partial differential equations (PDEs).

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) have revolutionized how we solve PDEs by treating physical laws as "soft constraints" within a neural network's loss function. To do this efficiently, researchers use adaptive sampling: instead of evaluating the domain uniformly, the model focuses on "collocation points" where the error (residual) is highest.

However, there is a catch. The authors identify a fundamental trade-off: focusing too aggressively on high-residual points makes the "loss landscape" incredibly steep. Mathematically, this manifests as a massive increase in the maximum eigenvalue of the Hessian, which forces researchers to use tiny, inefficient learning rates to prevent the model from diverging. This instability becomes a dealbreaker as models get deeper or as the dimensionality of the PDE increases (the "curse of dimensionality").

Methods

The authors propose Langevin Adaptive Sampling (LAS). Unlike previous methods that might just pick the top-$M$ worst points or use simple Monte Carlo integration, LAS treats the collocation points as a dynamic population that evolves over time.

The framework uses a bidirectional update:

  1. Parameter Space: The PINN parameters ($\theta$) are updated via standard gradient descent to minimize the PDE residuals at the current points.
  2. PDE Domain: The collocation points ($x$) are updated using Langevin dynamics. This involves moving points toward higher residual regions using gradients, but—crucially—adding a controlled amount of Gaussian noise.
The LAS framework utilizes a bidirectional update, alternating between gradient descent for model parameters and Langevin dynamics for collocation points.

The addition of noise is the "secret sauce." It prevents the points from collapsing into a few "sharp" error peaks (which causes instability) and instead encourages them to cover "flatter" regions of high residual, which leads to more stable and generalizable learning.

Datasets

The authors evaluated LAS against five major adaptive sampling baselines (RAD, R3, $L^\infty$, etc.) across a variety of benchmark PDEs:

  • 1D PDEs: Burgers’, Convection, Allen-Cahn, Korteweg-De Vries, and Schrödinger equations.
  • 2D PDEs: 2D Burgers’ and 2D Heat equations.
  • High-Dimensional PDEs: A "Dimension-flexible" Heat equation tested at 4D, 6D, and 8D. These are particularly challenging because traditional integration-based sampling methods often fail completely in high dimensions.

Key Insights and Ideas

  • The Steepness Penalty: The paper proves that high-residual sampling requires stricter learning rate bounds. By tracking the Hessian's eigenvalues, they show that methods like R3 and $L^\infty$ create much "sharper" loss landscapes than LAS or uniform sampling.
  • Flatness is Better: Borrowing intuition from general deep learning (where "flat minima" generalize better), the authors show that Langevin dynamics naturally favor flatter residual regions. This makes the training process significantly more robust to changes in model architecture (depth/width) and learning rates.
  • Solving the Curse of Dimensionality: Because LAS relies on local gradient information to move points rather than global resampling, it remains stable in 8D environments where other adaptive methods diverge or fail to find solutions.
By Iteration L, Langevin dynamics allow collocation points to concentrate around high-residual modes while maintaining a balanced, stable distribution.

Key Results

  • Superior Stability: In experiments with the Allen-Cahn equation, LAS remained stable at learning rates (e.g., $\eta = 0.002$) where all other adaptive baselines diverged.
  • Accuracy: LAS consistently achieved the lowest or second-lowest relative $L^2$ error across almost all tested PDEs. In the 8D Heat equation, LAS achieved a $6.92\%$ error, while most other adaptive methods failed to converge entirely ($100\%$ error).
  • Complexity Robustness: As model depth increased from 4 to 10 layers, LAS was often the only adaptive method that didn't suffer from severe performance degradation.

Limitations and Future Work

  • Computational Overhead: Calculating the gradients of the residuals with respect to the input coordinates ($x$) adds computational cost per iteration. While the authors show LAS is faster than some iterative methods like $L^\infty$, it is still slower than simple random sampling.
  • Hyperparameter Sensitivity: LAS introduces new hyperparameters, such as the Langevin step size ($\tau$) and the concentration parameter ($\beta$). While the authors found a stable "default" setting, these may still need tuning for highly specific or novel physical problems.
  • Future Directions: The authors suggest exploring more efficient variants of Langevin dynamics for even higher-dimensional problems and developing automated strategies for hyperparameter selection.

Summary updated

BibTeX
@inproceedings{jeong2025mitigating,
  author = {Minseok Jeong and Giup Seo and Euiseok Hwang},
  title = {{Mitigating Instability in High Residual Adaptive Sampling for PINNs via Langevin Dynamics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=hq2CkcEY7h},
}
Figure