arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.09332cs.LG
收藏

基于无网格离散化的物理信息神经网络加速训练

Accelerated Training of Physics-Informed Neural Networks (PINNs) using Meshless Discretizations

SRM Institute of Science and Technology(SRM科学技术研究所);University of Utah(犹他大学)

Ramansh Sharma, Varun Shankar

摘要:

提出了一种新的物理信息神经网络(PINNs)加速训练技术:离散训练PINNs(DT-PINNs)。已知在训练期间经由自动微分重复计算PINN损失函数中的偏导数项在计算上是昂贵的,特别是对于高阶导数。DT-PINN通过使用无网格径向基函数有限差分(RBF-FD)计算并通过稀疏矩阵向量乘法应用的高阶精确数值离散化来替换这些精确的空间导数来训练。RBF-FD的使用允许DT-PINN甚至在放置在不规则域几何形状上的点云样本上进行训练。此外,虽然传统的PINN(vanilla-PINN)通常在GPU上以32位浮点(fp 32)存储和训练,但我们表明,对于DT-PINN,在GPU上使用fp 64会导致比fp 32 vanilla-PINN更快的训练时间,并且精度相当。我们通过一系列的实验证明了DT-PINNs的效率和准确性。首先,我们探讨了网络深度对具有随机权重的神经网络的数值和自动微分的影响,并表明三阶精度及以上的RBF-FD近似在足够精确的同时更有效。然后,我们将DT-PINN与vanilla-PINN在线性和非线性泊松方程上进行比较,并表明DT-PINN在消费者GPU上实现了2- 4倍的训练时间。最后,我们还表明,可以得到类似的结果,PINN解决方案的热方程(时空问题)通过离散的空间导数使用RBF-FD和使用自动微分的时间导数。我们的研究结果表明,fp 64 DT-PINN提供了一个优越的成本精度的档案fp 32香草-PINN。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑