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

优化数据驱动的深度神经网络和物理信息神经网络的优化器

Optimizing the optimizer for data driven deep neural networks and physics informed neural networks

CSIRO Data61(联邦科学与工业研究组织Data61);College of Engineering and Computer Science, The Australian National University(澳大利亚国立大学工程与计算机科学学院);Defence Science and Technology Group, Department of Defence(国防部国防科学与技术集团)

John Taylor, Wenyi Wang, Biswajit Bala, Tomasz Bednarz

摘要:

我们调查的作用,优化器在确定质量的模型适合神经网络与一个小到中等数量的参数。我们研究亚当,一阶梯度优化算法,使用自适应动量,Levenberg和Marquardt(LM)算法的二阶方法,Broyden,弗莱彻,Goldfarb和Shanno算法(BFGS)的二阶方法和LBFGS,低内存版本的BFGS的性能。使用这些优化器,我们使用具有几个参数的神经网络拟合函数y = sinc(10 x)。该函数具有可变幅度和恒定频率。我们观察到,函数的较高振幅分量首先拟合,而Adam、BFGS和LBFGS努力拟合函数的较低振幅分量。我们还解决了Burgers方程使用物理告知神经网络(PINN)与BFGS和LM优化。对于我们的示例问题,具有小到中等数量的权重,我们发现LM算法能够快速收敛到机器精度,比其他优化器具有显着的优势。我们进一步研究了Adam优化器的一系列模型,发现Adam优化器需要更深的模型,其中包含大量隐藏单元,包含多达26倍的参数,以便实现LM优化器所实现的模型拟合。LM优化器的结果表明,可以用更少的参数来构建模型。我们已经在Keras和TensorFlow 2中实现了所有方法。

英文摘要:

We investigate the role of the optimizer in determining the quality of the model fit for neural networks with a small to medium number of parameters. We study the performance of Adam, an algorithm for first-order gradient-based optimization that uses adaptive momentum, the Levenberg and Marquardt (LM) algorithm a second order method, Broyden,Fletcher,Goldfarb and Shanno algorithm (BFGS) a second order method and LBFGS, a low memory version of BFGS. Using these optimizers we fit the function y = sinc(10x) using a neural network with a few parameters. This function has a variable amplitude and a constant frequency. We observe that the higher amplitude components of the function are fitted first and the Adam, BFGS and LBFGS struggle to fit the lower amplitude components of the function. We also solve the Burgers equation using a physics informed neural network(PINN) with the BFGS and LM optimizers. For our example problems with a small to medium number of weights, we find that the LM algorithm is able to rapidly converge to machine precision offering significant benefits over other optimizers. We further investigated the Adam optimizer with a range of models and found that Adam optimiser requires much deeper models with large numbers of hidden units containing up to 26x more parameters, in order to achieve a model fit close that achieved by the LM optimizer. The LM optimizer results illustrate that it may be possible build models with far fewer parameters. We have implemented all our methods in Keras and TensorFlow 2.

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

↑