Abstract
Modeling dynamics in the form of partial differential equations (PDEs) is an effectual way to understand real-world physics processes. For complex physics systems, analytical solutions are not available and numerical solutions are widely-used. However, traditional numerical algorithms are computationally expensive and challenging in handling multiphysics systems. Recently, using neural networks to solve PDEs has made significant progress, called physics-informed neural networks (PINNs). PINNs encode physical laws into neural networks and learn the continuous solutions of PDEs. For the training of PINNs, existing methods suffer from the problems of inefficiency and unstable convergence, since the PDE residuals require calculating automatic differentiation. In this paper, we propose Dynamic Mesh-based Importance Sampling (DMIS) to tackle these problems. DMIS is a novel sampling scheme based on importance sampling, which constructs a dynamic triangular mesh to estimate sample weights efficiently. DMIS has broad applicability and can be easily integrated into existing methods. The evaluation of DMIS on three widely-used benchmarks shows that DMIS improves the convergence speed and accuracy in the meantime. Especially in solving the highly nonlinear Schrödinger Equation, compared with state-of-the-art methods, DMIS shows up to 46% smaller root mean square error and five times faster convergence speed.
Introduction
Physics-Informed Neural Networks (PINNs) have emerged as a transformative approach for solving partial differential equations (PDEs) by integrating physical constraints directly into the neural network's loss function. Despite their potential, training PINNs remains computationally intensive. The primary bottleneck lies in the calculation of PDE residuals at collocation points using automatic differentiation (AD), which must be performed at every training iteration.
Standard training often employs uniform sampling, which fails to account for the varying complexity across the spatial and temporal domain. While importance sampling offers a theoretical solution by focusing on high-residual regions, the computational cost of calculating optimal sampling weights for all points often outweighs the benefits. This paper introduces Dynamic Mesh-Based Importance Sampling (DMIS) to overcome this "residual bottleneck" by efficiently estimating importance weights through a dynamic mesh.
Methodology: DMIS and DMWE
The proposed DMIS framework accelerates training by focusing on the most informative data points without incurring prohibitive overhead. It consists of two primary components:
- Dynamic Mesh-based Weight Estimation (DMWE): To avoid calculating residuals for the entire dataset, DMWE selects a small subset of points to compute exact residuals. It then constructs a Delaunay triangular mesh over the domain. The importance weights for the remaining points are estimated via interpolation over this mesh. This approach leverages the spatial correlation of residuals—regions of high error are typically clustered.
- Dynamic Mesh Updates: The mesh is not static; it adaptively updates its structure when the distribution of residuals shifts significantly. This allows the sampler to "track" dynamic features such as moving shock waves or localized fluctuations in the solution.
The framework also incorporates a reweighting hyperparameter ($\beta$) to stabilize training by preventing extreme gradients from high-loss points during the early stages of optimization.
Experimental Results
The effectiveness of DMIS was evaluated on three benchmark PDEs: the Schrödinger equation, the viscous Burgers’ equation, and the Korteweg-de Vries (KdV) equation.
Schrödinger Equation
The Schrödinger equation is highly non-linear and presents a significant challenge for standard PINNs. As shown in the results, DMIS achieved a five-fold increase in convergence speed compared to the standard PINN-O baseline. Furthermore, it reduced the Root Mean Square Error (RMSE) by 46% relative to state-of-the-art methods.
Burgers’ and KdV Equations
For the viscous Burgers’ equation, DMIS demonstrated superior robustness, particularly in maintaining prediction accuracy in extrapolation segments where standard PINNs often fail. In the case of the KdV equation, which involves complex third-order derivatives, DMIS significantly accelerated the convergence process, proving its utility for high-order PDEs.
Conclusion
DMIS provides a scalable and efficient solution for training PINNs by utilizing dynamic meshes to approximate importance sampling weights. By focusing computational resources on high-residual regions, DMIS simultaneously improves convergence speed and final accuracy. Future work will address the "curse of dimensionality" to extend mesh-based sampling to higher-dimensional spatial problems and further refine hyperparameter selection for diverse physical systems.
Summary updated