Introduction
Physics-Informed Neural Networks (PINNs) have emerged as a powerful meshless tool for solving partial differential equations (PDEs). By incorporating physical laws directly into the neural network's loss function, PINNs can approximate complex solutions without the need for traditional discretization. However, the performance of PINNs is highly sensitive to the distribution of "collocation points"—the discrete locations in the domain where the PDE residual is evaluated. Standard uniform or random sampling often fails to capture sharp features like shocks or rapid transitions, leading to poor accuracy in "stiff" regions.
The Sampling Problem in PINNs
In many physical systems, the solution's complexity is not uniform. For instance, in fluid dynamics, a shock wave represents a localized region of extreme gradients. A uniform distribution of collocation points wastes computational resources on smooth areas while undersampling the critical regions where the physics is hardest to learn. While adaptive resampling—periodically redistributing points toward high-error regions—has been proposed, identifying the most effective "guiding information" for this redistribution remains an open question.
Methodology: Beyond Simple Residuals
This research investigates several metrics for guiding adaptive resampling. The core innovation is the introduction of the mixed second derivative of the PDE residual ($PDE_{xt}$) as a guiding metric. By considering how the residual changes across both space and time simultaneously, $PDE_{xt}$ identifies regions of high "residual curvature," which often correspond to the most challenging parts of the solution.
The study compares $PDE_{xt}$ against several baselines:
- Fixed Distributions: Random sampling and Hammersley sampling (a low-discrepancy sequence).
- Residual-based ($PDE$): Resampling based on the magnitude of the PDE residual.
- Solution Curvature ($U_{xt}$): Resampling based on the mixed second derivative of the predicted solution.
The training protocol involves an initial phase with the ADAM optimizer followed by L-BFGS, with points redistributed every 2,000 steps based on a Probability Density Function (PDF) derived from the chosen metric.
Experimental Results
The methods were rigorously tested on the 1D Burgers’ equation and the Allen-Cahn equation. These benchmarks are known for developing sharp fronts and complex transient behaviors.
As shown in Figure 5, $PDE_{xt}$ consistently achieves lower $L^2$ relative error as the number of resamples increases. For the standard Burgers' case, it reached errors below 0.1% far more efficiently than other methods. In more extreme cases (e.g., $\nu = 0.001$), $PDE_{xt}$ was the only method capable of achieving an error under 10%, highlighting its robustness for highly stiff problems.
Efficiency and the "Critical N" Threshold
A key finding of the study is the relationship between the number of collocation points ($N$) and the sampling strategy. While uniform sampling like Hammersley performs adequately when $N$ is very large, adaptive sampling becomes essential when working with a limited point budget.
Figure 6 illustrates this "Critical N" threshold. $PDE_{xt}$ is remarkably resilient to sparsity; in one experiment, halving the number of points caused the error in fixed methods to spike by over 300%, whereas the $PDE_{xt}$ error only increased by 19%. This suggests that $PDE_{xt}$ allows for high-precision solutions with significantly fewer computational resources.
Conclusion
This investigation demonstrates that the choice of guiding information is critical for the success of adaptive resampling in PINNs. The mixed second derivative of the PDE residual ($PDE_{xt}$) serves as a superior guide, particularly for problems with sharp features and limited collocation point budgets. While future work is needed to scale these findings to higher dimensions and more complex geometries, $PDE_{xt}$ represents a significant step toward more efficient and robust physics-informed machine learning.
Summary updated