arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.00860cs.LGcs.AIcs.NAmath.NAphysics.comp-ph
收藏

零坐标平移:用于物理信息算子学习的自动微分

Zero Coordinate Shift: Whetted Automatic Differentiation for Physics-informed Operator Learning

STFC(科学与技术设施委员会);Rutherford Appleton Laboratory(卢瑟福·阿普尔顿实验室);Oak Ridge National Laboratory(橡树岭国家实验室)

Kuangdai Leng, Mallikarjun Shankar, Jeyan Thiyagalingam

AI总结:

提出零坐标平移(ZCS)技巧,通过为每个空间/时间维度引入单个标量叶变量,简化物理信息算子学习中的自动微分,显著降低GPU内存和训练时间,且不损害训练结果。

摘要:

自动微分(AD)是物理信息机器学习中的关键步骤,用于计算网络输出相对于配置点坐标的高阶导数。本文提出了一种新颖且轻量级的算法,用于物理信息算子学习中的自动微分,我们称之为零坐标平移(ZCS)技巧。ZCS不是将所有采样坐标作为叶变量,而是为每个空间或时间维度仅引入一个标量叶变量,将所需的导数从“多根多叶”简化为“单根多叶”,从而使得反向模式自动微分可以直接使用。通过避免沿函数(物理参数)维度复制计算图,ZCS带来了显著的性能提升。ZCS易于使用当前的深度学习库实现;我们自己的实现是通过扩展DeepXDE包完成的。我们进行了全面的基准分析和几个案例研究,训练物理信息DeepONets来求解无数据的偏微分方程(PDE)。结果表明,ZCS持续将GPU内存消耗和训练时间减少了一个数量级,并且这种减少因子随函数数量而缩放。作为一种底层优化技术,ZCS对数据、物理(PDE)或网络架构没有任何限制,并且不会从任何方面损害训练结果。

英文摘要:

Automatic differentiation (AD) is a critical step in physics-informed machine learning, required for computing the high-order derivatives of network output w.r.t. coordinates of collocation points. In this paper, we present a novel and lightweight algorithm to conduct AD for physics-informed operator learning, which we call the trick of Zero Coordinate Shift (ZCS). Instead of making all sampled coordinates as leaf variables, ZCS introduces only one scalar-valued leaf variable for each spatial or temporal dimension, simplifying the wanted derivatives from "many-roots-many-leaves" to "one-root-many-leaves" whereby reverse-mode AD becomes directly utilisable. It has led to an outstanding performance leap by avoiding the duplication of the computational graph along the dimension of functions (physical parameters). ZCS is easy to implement with current deep learning libraries; our own implementation is achieved by extending the DeepXDE package. We carry out a comprehensive benchmark analysis and several case studies, training physics-informed DeepONets to solve partial differential equations (PDEs) without data. The results show that ZCS has persistently reduced GPU memory consumption and wall time for training by an order of magnitude, and such reduction factor scales with the number of functions. As a low-level optimisation technique, ZCS imposes no restrictions on data, physics (PDE) or network architecture and does not compromise training results from any aspect.

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

↑