[Paper Review] Accelerated Training of Physics-Informed Neural Networks (PINNs) using Meshless Discretizations
DT-PINNs accelerate training by replacing exact spatial derivatives in PINN losses with high-order RBF-FD discretizations and training in fp64, achieving 2-4x speedups on Poisson problems with comparable accuracy.
We present a new technique for the accelerated training of physics-informed neural networks (PINNs): discretely-trained PINNs (DT-PINNs). The repeated computation of partial derivative terms in the PINN loss functions via automatic differentiation during training is known to be computationally expensive, especially for higher-order derivatives. DT-PINNs are trained by replacing these exact spatial derivatives with high-order accurate numerical discretizations computed using meshless radial basis function-finite differences (RBF-FD) and applied via sparse-matrix vector multiplication. The use of RBF-FD allows for DT-PINNs to be trained even on point cloud samples placed on irregular domain geometries. Additionally, though traditional PINNs (vanilla-PINNs) are typically stored and trained in 32-bit floating-point (fp32) on the GPU, we show that for DT-PINNs, using fp64 on the GPU leads to significantly faster training times than fp32 vanilla-PINNs with comparable accuracy. We demonstrate the efficiency and accuracy of DT-PINNs via a series of experiments. First, we explore the effect of network depth on both numerical and automatic differentiation of a neural network with random weights and show that RBF-FD approximations of third-order accuracy and above are more efficient while being sufficiently accurate. We then compare the DT-PINNs to vanilla-PINNs on both linear and nonlinear Poisson equations and show that DT-PINNs achieve similar losses with 2-4x faster training times on a consumer GPU. Finally, we also demonstrate that similar results can be obtained for the PINN solution to the heat equation (a space-time problem) by discretizing the spatial derivatives using RBF-FD and using automatic differentiation for the temporal derivative. Our results show that fp64 DT-PINNs offer a superior cost-accuracy profile to fp32 vanilla-PINNs.
Motivation & Objective
- Motivate faster training of physics-informed neural networks (PINNs) for PDE solving.
- Propose discretely-trained PINNs (DT-PINNs) using meshless RBF-FD for spatial derivatives.
- Demonstrate that fp64 DT-PINNs can match vanilla-PINN accuracy with faster training on GPUs.
- Showcase applicability to Poisson and heat equations on irregular domains.
Proposed method
- Replace autograd-based spatial derivatives in PINN losses with high-order RBF-FD differentiation matrices.
- Precompute RBF-FD weights on the collocation stencil and apply via sparse-matrix vector multiplication (SpMV).
- Train the neural network in fp64 instead of fp32 to improve accuracy and speed.
- Apply the method to nonlinear and linear Poisson equations and to a space-time heat equation with mixed spatial discretization and autograd for time.
- Demonstrate that higher-order RBF-FD (p>2) maintains accuracy while enabling faster training.
Experimental results
Research questions
- RQ1Can RBF-FD-based spatial derivatives accelerate PINN training without compromising accuracy?
- RQ2What order p of RBF-FD provides the best cost-accuracy trade-off for PINNs on Poisson-type PDEs?
- RQ3Does training in fp64 with DT-PINNs yield faster convergence than fp32 vanilla-PINNs on GPUs?
- RQ4How does DT-PINN performance compare for linear vs nonlinear Poisson equations and for space-time problems like the heat equation?
Key findings
- DT-PINNs achieve similar relative errors to vanilla-PINNs for linear and nonlinear Poisson equations when using RBF-FD with p>2.
- DT-PINNs on a consumer GPU attain 2-4x faster training times than fp32 vanilla-PINNs on comparable architectures.
- Using fp64 DT-PINNs provides a superior cost-accuracy profile compared to fp32 vanilla-PINNs for the tested problems.
- For the heat equation, a mixed approach with spatial RBF-FD and autograd in time yields comparable accuracy with 2-4x speedups.
- Increasing RBF-FD order p improves spatial derivative accuracy and reduces training epochs needed to reach low errors, relative to autograd-based approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.