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

解偏微分方程的神经网络:与有限元的比较

Neural Networks to solve Partial Differential Equations: a Comparison with Finite Elements

Andrea Sacchetti, Benjamin Bachmann, Kaspar Löffel, Urs-Martin Künzi, Beatrice Paoli

摘要:

我们比较了有限元法(FEM)模拟一个标准的偏微分方程热问题的板与一个神经网络(NN)模拟。与从FEM获得的真实解的最大偏差($0.015$用于单位阶上的解)也很容易用NN实现,而无需对超参数进行太多调整。如果精度低于$0.01$,则需要使用替代优化器进行细化,以达到与NN相似的性能。浮点运算值之间的粗略比较,作为一个独立于机器的量化的计算性能,表明FEM和NN之间的显着差异,有利于前者。对于计算时间也是如此:对于$10^{-5}$量级的精度,FEM和NN分别需要$54$和$1100$秒。对不同超参数的影响的详细分析表明,精度和计算时间仅微弱地依赖于它们的主要部分。使用“adam”优化器无法实现低于$0.01$的精度,并且看起来似乎根本无法实现低于$10^{-5}$的精度。总之,目前的工作表明,对于求解稳态二维热方程的具体情况下,有限元算法的性能显着优于通过网络的解决方案。

英文摘要:

We compare the Finite Element Method (FEM) simulation of a standard Partial Differential Equation thermal problem of a plate with a hole with a Neural Network (NN) simulation. The largest deviation from the true solution obtained from FEM ($0.015$ for a solution on the order of unity) is easily achieved with NN too without much tuning of the hyperparameters. Accuracies below $0.01$ instead require refinement with an alternative optimizer to reach a similar performance with NN. A rough comparison between the Floating Point Operations values, as a machine-independent quantification of the computational performance, suggests a significant difference between FEM and NN in favour of the former. This also strongly holds for computation time: for an accuracy on the order of $10^{-5}$, FEM and NN require $54$ and $1100$ seconds, respectively. A detailed analysis of the effect of varying different hyperparameters shows that accuracy and computational time only weakly depend on the major part of them. Accuracies below $0.01$ cannot be achieved with the "adam'' optimizers and it looks as though accuracies below $10^{-5}$ cannot be achieved at all. In conclusion, the present work shows that for the concrete case of solving a steady-state 2D heat equation, the performance of a FEM algorithm is significantly better than the solution via networks.

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

↑