arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.14099cs.LGcs.NAmath.NA
收藏

自动微分在训练神经网络求解微分方程中的必要性

Automatic Differentiation is Essential in Training Neural Networks for Solving Differential Equations

Department One(第一部门);Department Two(第二部门);Department of Mathematics(数学系);The Hong Kong University of Science and Technology(香港科技大学);The Pennsylvania State University(宾夕法尼亚州立大学);Algorithms of Machine Learning and Autonomous Driving Research Lab(机器学习与自动驾驶算法研究实验室);HKUST Shenzhen-Hong Kong Collaborative Innovation Research Institute(香港科技大学深港协同创新研究院)

Chuqi Chen, Yahong Yang, Yang Xiang, Wenrui Hao

AI总结:

本文研究神经网络求解 PDE 时 AD 相对 FD 的训练优势,提出截断熵指标,并通过随机特征模型与两层网络的实验和理论分析证明 AD 训练更快、更可靠。

摘要:

近年来,基于神经网络的方法在科学与工程领域求解偏微分方程(PDE)方面展现出巨大潜力,尤其适用于具有复杂区域或需要融合经验数据的场景。用于 PDE 的神经网络方法的一个优势在于自动微分(AD):与传统有限差分(FD)近似需要附近的局部点来计算导数不同,自动微分只需要采样点本身。本文定量展示了 AD 在训练神经网络中的优势,并引入截断熵概念来刻画训练特性。具体而言,通过在随机特征模型和两层神经网络上开展全面的实验与理论分析,我们发现所定义的截断熵是一个可靠指标,可用于量化随机特征模型的残差损失,以及 AD 和 FD 两种方法下神经网络的训练速度。实验和理论分析表明,从训练角度看,AD 在求解 PDE 时优于 FD。

英文摘要:

Neural network-based approaches have recently shown significant promise in solving partial differential equations (PDEs) in science and engineering, especially in scenarios featuring complex domains or incorporation of empirical data. One advantage of the neural network methods for PDEs lies in its automatic differentiation (AD), which necessitates only the sample points themselves, unlike traditional finite difference (FD) approximations that require nearby local points to compute derivatives. In this paper, we quantitatively demonstrate the advantage of AD in training neural networks. The concept of truncated entropy is introduced to characterize the training property. Specifically, through comprehensive experimental and theoretical analyses conducted on random feature models and two-layer neural networks, we discover that the defined truncated entropy serves as a reliable metric for quantifying the residual loss of random feature models and the training speed of neural networks for both AD and FD methods. Our experimental and theoretical analyses demonstrate that, from a training perspective, AD outperforms FD in solving PDEs.

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

↑