A Novel Adaptive Causal Sampling Method for Physics-Informed Neural Networks

Jia Guo, Haifeng Wang, Chenping HouarXiv 2022 · DOI

Abstract

Physics-Informed Neural Networks (PINNs) have emerged as a powerful tool for solving partial differential equations (PDEs) by embedding physical laws into the loss function. However, time-dependent PDEs often present convergence challenges, frequently requiring millions of collocation points to achieve stability. We present the Adaptive Causal Sampling Method (ACSM), a novel approach that enforces temporal causality during training. By prioritizing collocation points in the temporal "past" before moving to the "future," ACSM achieves up to two orders of magnitude better accuracy than state-of-the-art methods while using significantly fewer data points.

Introduction

Training a PINN is a semi-supervised task where physical constraints are enforced at discrete collocation points. A critical challenge in time-dependent problems is the selection of these points. Standard adaptive sampling methods often cluster points in regions of high residual error, which frequently occur at the end of a simulation timeline. This "sampling confusion" can lead the model to converge to physically incorrect solutions because the network has not yet mastered the initial temporal dynamics. ACSM addresses this by mimicking the step-by-step nature of traditional numerical solvers within the global optimization framework of PINNs.

Methodology: Adaptive Causal Sampling

The core innovation of ACSM is the integration of two distinct metrics for point selection:

  1. PDE Residual Loss: Identifies regions where the model currently fails to satisfy the underlying physics.
  2. Temporal Causality Weights: Assigns a weight ((\omega_i)) to time segments. If the error in earlier time steps (the "past") remains high, the weights for subsequent steps (the "future") are suppressed.
Figure 3: Evolution of temporal weights w(t) and the corresponding distribution of collocation points across training iterations.

As shown in Figure 3, the temporal weights (w(t)) act as a gate. Early in training (iteration 10,000), the weights focus the model's attention on the beginning of the time domain. As the model resolves the initial physics, the causal gate opens, allowing the sampling distribution to adaptively cover the entire spatio-temporal domain.

Experimental Results

The method was evaluated on complex non-linear benchmarks, including the Cahn-Hilliard equation (modeling phase separation) and the Korteweg-de Vries (KdV) equation (modeling solitons).

In the Cahn-Hilliard case, ACSM achieved a relative (L^2) error of (7.046 \times 10^{-3}) using only 1,000 collocation points. In contrast, standard PINN variants often require up to 2,000,000 points to reach comparable or even inferior accuracy levels.

Figure 2: Comparison of the exact solution, predicted solution, and absolute error for the Cahn-Hilliard equation using ACSM.

Figure 2 illustrates the high fidelity of the ACSM prediction. While some error remains concentrated in the high-gradient regions of the phase interface, the overall global solution remains physically consistent and highly accurate despite the minimal data requirements.

Conclusion

ACSM demonstrates that respecting the "arrow of time" is essential for the efficient training of PINNs on time-dependent problems. By intelligently gating the sampling process, the method avoids the pitfalls of standard adaptive sampling and provides a path toward solving high-dimensional engineering problems with limited computational overhead. Future work will focus on automating hyperparameter tuning and extending the method to higher spatial dimensions.

Summary updated

BibTeX
@misc{guo2022novel,
  author = {Jia Guo and Haifeng Wang and Chenping Hou},
  title = {{A Novel Adaptive Causal Sampling Method for Physics-Informed Neural Networks}},
  year = {2022},
  eprint = {2210.12914},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.12914},
}
Figure