arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.20417math.NAcs.NA
收藏

基于最小二乘法优化变分物理信息神经网络

Optimizing Variational Physics-Informed Neural Networks Using Least Squares

Carlos Uriarte, Manuela Bastidas, David Pardo, Jamie M. Taylor, Sergio Rojas

AI总结:

针对变分物理信息神经网络用随机梯度下降优化器收敛差的问题,提出结合最后一层最小二乘求解的混合优化器,通过正向模式自动微分或超弱格式将速度提升最高百倍,收敛性更优。

摘要:

变分物理信息神经网络在使用基于随机梯度下降的优化器时往往存在收敛性差的问题。我们通过为神经网络最后一层的权重引入最小二乘求解器,在大多数实际场景中提升了训练过程中损失的收敛性。本工作分析了由此产生的最小二乘/梯度下降混合优化器的计算成本,并阐释了如何高效实现该优化器。我们特别指出,基于反向模式自动微分的传统实现会导致算法计算成本高得难以承受。为解决这一问题,我们提出采用正向模式自动微分,或是一种超弱型格式,该格式可避免离散弱形式中试探函数的求导操作。所提出的替代方案比传统方案快至多100倍,其单次迭代的计算成本与仅使用传统基于梯度下降的优化器相近。为支撑我们的分析,我们推导了计算估计量,并在一维和二维问题中开展了数值实验。

英文摘要:

Variational Physics-Informed Neural Networks often suffer from poor convergence when using stochastic gradient-descent-based optimizers. By introducing a Least Squares solver for the weights of the last layer of the neural network, we improve the convergence of the loss during training in most practical scenarios. This work analyzes the computational cost of the resulting hybrid Least-Squares/Gradient-Descent optimizer and explains how to implement it efficiently. In particular, we show that a traditional implementation based on backward-mode automatic differentiation leads to a prohibitively expensive algorithm. To remedy this, we propose using either forward-mode automatic differentiation or an ultraweak-type scheme that avoids the differentiation of trial functions in the discrete weak formulation. The proposed alternatives are up to one hundred times faster than the traditional one, recovering a computational cost-per-iteration similar to that of a conventional gradient-descent-based optimizer alone. To support our analysis, we derive computational estimates and conduct numerical experiments in one- and two-dimensional problems.

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

↑