Automatic Differentiation is Essential in Training Neural Networks for Solving Differential Equations

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chen, Chuqi, Yang, Yahong, Xiang, Yang, Hao, Wenrui
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909540108206080
author Chen, Chuqi
Yang, Yahong
Xiang, Yang
Hao, Wenrui
author_facet Chen, Chuqi
Yang, Yahong
Xiang, Yang
Hao, Wenrui
contents Neural network-based approaches have recently shown significant promise in solving partial differential equations (PDEs) in science and engineering, especially in scenarios featuring complex domains or incorporation of empirical data. One advantage of the neural network methods for PDEs lies in its automatic differentiation (AD), which necessitates only the sample points themselves, unlike traditional finite difference (FD) approximations that require nearby local points to compute derivatives. In this paper, we quantitatively demonstrate the advantage of AD in training neural networks. The concept of truncated entropy is introduced to characterize the training property. Specifically, through comprehensive experimental and theoretical analyses conducted on random feature models and two-layer neural networks, we discover that the defined truncated entropy serves as a reliable metric for quantifying the residual loss of random feature models and the training speed of neural networks for both AD and FD methods. Our experimental and theoretical analyses demonstrate that, from a training perspective, AD outperforms FD in solving PDEs.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14099
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Automatic Differentiation is Essential in Training Neural Networks for Solving Differential Equations
Chen, Chuqi
Yang, Yahong
Xiang, Yang
Hao, Wenrui
Machine Learning
Numerical Analysis
Neural network-based approaches have recently shown significant promise in solving partial differential equations (PDEs) in science and engineering, especially in scenarios featuring complex domains or incorporation of empirical data. One advantage of the neural network methods for PDEs lies in its automatic differentiation (AD), which necessitates only the sample points themselves, unlike traditional finite difference (FD) approximations that require nearby local points to compute derivatives. In this paper, we quantitatively demonstrate the advantage of AD in training neural networks. The concept of truncated entropy is introduced to characterize the training property. Specifically, through comprehensive experimental and theoretical analyses conducted on random feature models and two-layer neural networks, we discover that the defined truncated entropy serves as a reliable metric for quantifying the residual loss of random feature models and the training speed of neural networks for both AD and FD methods. Our experimental and theoretical analyses demonstrate that, from a training perspective, AD outperforms FD in solving PDEs.
title Automatic Differentiation is Essential in Training Neural Networks for Solving Differential Equations
topic Machine Learning
Numerical Analysis
url https://arxiv.org/abs/2405.14099