Skip to main content
QUICK REVIEW

[论文解读] Accelerated Training of Physics-Informed Neural Networks (PINNs) using Meshless Discretizations

Ramansh Sharma, Varun Shankar|arXiv (Cornell University)|May 19, 2022
Model Reduction and Neural NetworksPhysics and Astronomy被引用 22
一句话总结

DT-PINNs 加速训练,通过用高阶 RBF-FD 离散化替代 PINN 损失中的精确空间导数,并在 fp64 训练下,在泊松问题上实现 2-4 倍加速,且精度相当。

ABSTRACT

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.

研究动机与目标

  • 推动用于偏微分方程求解的物理信息神经网络(PINNs)更快的训练。
  • 提出离散训练的 PINN(DT-PINNs),使用无网格的 RBF-FD 进行空间导数的离散化。
  • 证明在 GPU 上,fp64 DT-PINNs 能以更快的训练速度达到 vanilla-PINN 的精度。
  • 展示在不规则区域上的泊松方程和热方程的适用性。

提出的方法

  • 用高阶 RBF-FD 微分矩阵替代 PINN 损失中的基于 autograd 的空间导数。
  • 在陪点模板上预计算 RBF-FD 权重,并通过稀疏矩阵向量乘法(SpMV)应用。
  • 将神经网络在 fp64 下训练,而非 fp32,以提高精度和速度。
  • 将该方法应用于非线性和线性泊松方程,以及一个具有混合空间离散化和时间 autograd 的时空热方程。
  • 证明高阶 RBF-FD(p>2)在保持精度的同时实现更快的训练。

实验结果

研究问题

  • RQ1基于 RBF-FD 的空间导数能否在不降低精度的前提下加速 PINN 的训练?
  • RQ2在泊松型 PDEs 上,RBF-FD 的哪种阶数 p 能提供最佳的成本-精度权衡?
  • RQ3在 GPU 上,使用 DT-PINNs 的 fp64 训练是否比 fp32 的 vanilla-PINNs 收敛得更快?
  • RQ4DT-PINN 在线性与非线性泊松方程以及类似热方程的时空问题上的性能对比如何?

主要发现

  • 在使用 p>2 的 RBF-FD 时,DT-PINNs 对线性和非线性泊松方程的相对误差与 vanilla-PINNs 相似。
  • 在消费级 GPU 上,DT-PINNs 的训练时间比在可比架构的 fp32 vanilla-PINNs 快 2-4 倍。
  • 对于所测试的问题,使用 fp64 的 DT-PINNs 相较于 fp32 的 vanilla-PINNs 提供更优的成本-精度比。
  • 对于热方程,时空混合方法(空间 RBF-FD 与时间 autograd)在精度相当的同时实现 2-4x 的加速。
  • 提高 RBF-FD 阶数 p 能提升空间导数的精度并减少达到低误差所需的训练轮数,相对于基于 autograd 的方法。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。