RLEKF:一个从头算精确的深势优化器
RLEKF: An Optimizer for Deep Potential with Ab Initio Accuracy
摘要:
加快深潜势等神经网络力场的训练势在必行,这通常需要数千张基于第一性原理计算的图像和几天的时间来生成准确的势能面。为此,我们提出了一种新的优化命名为重组层扩展卡尔曼滤波(RLEKF),一个优化版本的全球扩展卡尔曼滤波(GEKF)的战略,分裂大,收集小层,以克服$O(N^2)$的计算成本GEKF。该策略提供了一个近似的密集权重的误差协方差矩阵与稀疏对角块矩阵的GEKF。我们实现了RLEKF和基线亚当在我们的$α$动力学包和数值实验进行了13无偏数据集。总体而言,RLEKF收敛速度更快,精度略好。例如,在一个典型的系统上进行的测试表明,RLEKF的收敛速度比训练时期($\times$ 11.67)和挂钟时间($\times$ 1.19)都快。此外,我们从理论上证明了权值的更新是收敛的,从而克服了梯度爆炸问题。实验结果验证了RLEKF对权值的初始化不敏感。RLEKF揭示了其他人工智能科学应用,其中训练大型神经网络(具有数千个参数)是一个瓶颈。
英文摘要:
It is imperative to accelerate the training of neural network force field such as Deep Potential, which usually requires thousands of images based on first-principles calculation and a couple of days to generate an accurate potential energy surface. To this end, we propose a novel optimizer named reorganized layer extended Kalman filtering (RLEKF), an optimized version of global extended Kalman filtering (GEKF) with a strategy of splitting big and gathering small layers to overcome the $O(N^2)$ computational cost of GEKF. This strategy provides an approximation of the dense weights error covariance matrix with a sparse diagonal block matrix for GEKF. We implement both RLEKF and the baseline Adam in our $α$Dynamics package and numerical experiments are performed on 13 unbiased datasets. Overall, RLEKF converges faster with slightly better accuracy. For example, a test on a typical system, bulk copper, shows that RLEKF converges faster by both the number of training epochs ($\times$11.67) and wall-clock time ($\times$1.19). Besides, we theoretically prove that the updates of weights converge and thus are against the gradient exploding problem. Experimental results verify that RLEKF is not sensitive to the initialization of weights. The RLEKF sheds light on other AI-for-science applications where training a large neural network (with tons of thousands parameters) is a bottleneck.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。