Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

A comprehensive study of non-adaptive and residual-based adaptive sampling for physics-informed neural networks

About

Physics-informed neural networks (PINNs) have shown to be an effective tool for solving forward and inverse problems of partial differential equations (PDEs). PINNs embed the PDEs into the loss of the neural network, and this PDE loss is evaluated at a set of scattered residual points. The distribution of these points are highly important to the performance of PINNs. However, in the existing studies on PINNs, only a few simple residual point sampling methods have mainly been used. Here, we present a comprehensive study of two categories of sampling: non-adaptive uniform sampling and adaptive nonuniform sampling. We consider six uniform sampling, including (1) equispaced uniform grid, (2) uniformly random sampling, (3) Latin hypercube sampling, (4) Halton sequence, (5) Hammersley sequence, and (6) Sobol sequence. We also consider a resampling strategy for uniform sampling. To improve the sampling efficiency and the accuracy of PINNs, we propose two new residual-based adaptive sampling methods: residual-based adaptive distribution (RAD) and residual-based adaptive refinement with distribution (RAR-D), which dynamically improve the distribution of residual points based on the PDE residuals during training. Hence, we have considered a total of 10 different sampling methods, including six non-adaptive uniform sampling, uniform sampling with resampling, two proposed adaptive sampling, and an existing adaptive sampling. We extensively tested the performance of these sampling methods for four forward problems and two inverse problems in many setups. Our numerical results presented in this study are summarized from more than 6000 simulations of PINNs. We show that the proposed adaptive sampling methods of RAD and RAR-D significantly improve the accuracy of PINNs with fewer residual points. The results obtained in this study can also be used as a practical guideline in choosing sampling methods.

Chenxi Wu, Min Zhu, Qinyang Tan, Yadhu Kartha, Lu Lu• 2022

Related benchmarks

TaskDatasetResultRank
PDE solvingHelmholtz equation
Relative L2 Error0.306
32
PDE solving1D Burgers
RelL2 Error1.90e-5
29
PDE solvingNavier-Stokes 2D
MSE0.003
26
PDE solving1D Convection-Diffusion
MSE2.27e-6
8
PDE solving1D Helmholtz
MSE1.86e-5
8
PDE solving2D Convection-Diffusion
MSE6.50e-7
8
Partial Differential Equation SolvingKlein-Gordon equation Large regime, m=5
Relative MSE0.0016
6
Partial Differential Equation SolvingKlein-Gordon equation Small regime, m=1
Relative MSE0.0421
6
Partial Differential Equation SolvingKlein-Gordon equation Medium regime, m=3
Relative MSE9.42e-4
6
Partial Differential Equation SolvingNavier-Stokes equation Small regime, Re=500
Relative MSE0.487
6
Showing 10 of 20 rows

Other info

Follow for update