A Gaussian mixture distribution-based adaptive sampling method for physics-informed neural networks

Yuling Jiao, Di Li, Xiliang Lu, Jerry Zhijian Yang, Cheng Yuan

TL;DR

Researchers have developed GAS (Gaussian Mixture Distribution-Based Adaptive Sampling), a new method that significantly improves the accuracy of Physics-Informed Neural Networks (PINNs) when solving complex PDEs. By using residual information and Laplace approximation to intelligently place new training points where the error is highest, GAS achieves state-of-the-art accuracy on singular and high-dimensional problems while remaining computationally efficient.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) have become a go-to tool for solving Partial Differential Equations (PDEs), especially in high-dimensional spaces where traditional mesh-based methods (like Finite Element Methods) fail due to the "curse of dimensionality."

However, PINNs have a major weakness: accuracy on irregular problems. Standard PINNs typically sample training points uniformly across the domain. If a solution has a "singularity"—a sharp peak or a region where the values change abruptly—uniform sampling is likely to miss it. This leads to high errors in the very regions where the physics is most interesting. While previous "adaptive sampling" methods exist, they are often computationally heavy or struggle to capture multiple sharp features simultaneously.

Methods

The authors propose GAS, which treats adaptive sampling as a risk maximization problem. The process follows an "incremental learning" loop:

  1. Train: Train a standard PINN on an initial set of points.
  2. Identify: Calculate the "residual" (the error in the PDE) across the domain.
  3. Model: Instead of just adding points at the highest error locations, GAS fits a Gaussian Mixture Model (GMM) to the error distribution.
  4. Means ($\mu$): Placed at locations with the largest residuals (local maximizers).
  5. Covariances ($\Sigma$): Determined using a Laplace approximation. Essentially, the algorithm looks at the gradient of the residual; if the error changes rapidly, the Gaussian is narrow; if it changes slowly, the Gaussian is wider.
  6. Sample & Repeat: New points are sampled from this GMM and added to the training set. Crucially, they use an incremental approach—keeping old data while adding new data—to prevent "catastrophic forgetting."

The authors distinguish between GAS-T (using the top $N$ error points) and GAS-L (using local maximizers), with the latter being more effective for problems with multiple peaks.

Datasets

The method was evaluated on several synthetic but challenging PDE benchmarks designed to test how well solvers handle singularities:

  • One-peak problem (2D): A Poisson equation with a single, very sharp exponential peak.
  • Two-peaks problem (2D): An elliptic equation with two distinct singularities.
  • Nine-peaks problem (2D): A complex domain with nine sharp features distributed in a grid.
  • High-dimensional linear problem (10D): A 10-dimensional Poisson equation used to test the method's scalability and its ability to alleviate the curse of dimensionality.

Key Insights and Ideas

  • The "Where" and the "How Wide": Most adaptive methods focus on where to add points. GAS uses the Laplace approximation to mathematically determine how wide the sampling region around an error point should be based on the local curvature of the residual.
  • Min-Max Formulation: The authors frame the training as a game: the neural network tries to minimize the residual, while the sampling distribution tries to maximize the risk (finding the network's weak spots). This is conceptually similar to how Generative Adversarial Networks (GANs) are trained.
  • Efficiency via Gradients: By using the gradient of the residual to set covariances, the method avoids the need for expensive second-order derivatives (Hessians) or complex density estimation networks (like KRnets used in previous methods).

Key Results

  • Superior Accuracy: In the 2D one-peak problem, GAS achieved a Mean Square Error (MSE) of $1.0 \times 10^{-5}$, outperforming the popular DAS (Deep Adaptive Sampling) method ($4.0 \times 10^{-4}$) and uniform sampling ($1.0 \times 10^{-3}$) by significant margins.
  • Handling Multi-Singularity: In the nine-peak test, GAS-L successfully localized all eight peaks (one was missed initially but caught later) within just a few iterations, whereas uniform sampling failed to converge to a meaningful solution.
  • High-Dimensional Scaling: In 10D, GAS achieved an error of $0.001$ using $2.1 \times 10^6$ accumulated samples, significantly better than the $0.008$ error achieved by DAS with $6 \times 10^5$ samples, demonstrating better performance as the dataset grows.

Limitations and Future Work

  • Point Singularities: The current GMM approach is specifically optimized for "point" singularities (sharp peaks). The authors note that for "line" or "surface" defects (like shock waves in fluid dynamics), a simple GMM might not be the most efficient representation.
  • Deep Generative Models: The authors suggest that for even more complex error distributions, the GMM could be replaced by a deep generative model (like a VAE or Diffusion model) to represent the "added density" $\rho_{add}$.
  • Theoretical Framework: While the numerical results are strong, the authors aim to provide a more rigorous theoretical analysis of the min-max convergence in future studies.

Summary updated

BibTeX
@article{jiao2024gaussian,
  author = {Yuling Jiao and Di Li and Xiliang Lu and Jerry Zhijian Yang and Cheng Yuan},
  title = {{A Gaussian mixture distribution-based adaptive sampling method for physics-informed neural networks}},
  journal = {Engineering Applications of AI},
  year = {2024},
  doi = {10.1016/j.engappai.2024.108770},
}
Figure