Cargando…

Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations

When PINNs solve the Navier–Stokes equations, the loss function has a gradient imbalance problem during training. It is one of the reasons why the efficiency of PINNs is limited. This paper proposes a novel method of adaptively adjusting the weights of loss terms, which can balance the gradients of...

Descripción completa

Detalles Bibliográficos
Autores principales: Li, Shirong, Feng, Xinlong
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9497516/
https://www.ncbi.nlm.nih.gov/pubmed/36141140
http://dx.doi.org/10.3390/e24091254
_version_ 1784794524766175232
author Li, Shirong
Feng, Xinlong
author_facet Li, Shirong
Feng, Xinlong
author_sort Li, Shirong
collection PubMed
description When PINNs solve the Navier–Stokes equations, the loss function has a gradient imbalance problem during training. It is one of the reasons why the efficiency of PINNs is limited. This paper proposes a novel method of adaptively adjusting the weights of loss terms, which can balance the gradients of each loss term during training. The weight is updated by the idea of the minmax algorithm. The neural network identifies which types of training data are harder to train and forces it to focus on those data before training the next step. Specifically, it adjusts the weight of the data that are difficult to train to maximize the objective function. On this basis, one can adjust the network parameters to minimize the objective function and do this alternately until the objective function converges. We demonstrate that the dynamic weights are monotonically non-decreasing and convergent during training. This method can not only accelerate the convergence of the loss, but also reduce the generalization error, and the computational efficiency outperformed other state-of-the-art PINNs algorithms. The validity of the method is verified by solving the forward and inverse problems of the Navier–Stokes equation.
format Online
Article
Text
id pubmed-9497516
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-94975162022-09-23 Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations Li, Shirong Feng, Xinlong Entropy (Basel) Article When PINNs solve the Navier–Stokes equations, the loss function has a gradient imbalance problem during training. It is one of the reasons why the efficiency of PINNs is limited. This paper proposes a novel method of adaptively adjusting the weights of loss terms, which can balance the gradients of each loss term during training. The weight is updated by the idea of the minmax algorithm. The neural network identifies which types of training data are harder to train and forces it to focus on those data before training the next step. Specifically, it adjusts the weight of the data that are difficult to train to maximize the objective function. On this basis, one can adjust the network parameters to minimize the objective function and do this alternately until the objective function converges. We demonstrate that the dynamic weights are monotonically non-decreasing and convergent during training. This method can not only accelerate the convergence of the loss, but also reduce the generalization error, and the computational efficiency outperformed other state-of-the-art PINNs algorithms. The validity of the method is verified by solving the forward and inverse problems of the Navier–Stokes equation. MDPI 2022-09-06 /pmc/articles/PMC9497516/ /pubmed/36141140 http://dx.doi.org/10.3390/e24091254 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Li, Shirong
Feng, Xinlong
Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations
title Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations
title_full Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations
title_fullStr Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations
title_full_unstemmed Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations
title_short Dynamic Weight Strategy of Physics-Informed Neural Networks for the 2D Navier–Stokes Equations
title_sort dynamic weight strategy of physics-informed neural networks for the 2d navier–stokes equations
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9497516/
https://www.ncbi.nlm.nih.gov/pubmed/36141140
http://dx.doi.org/10.3390/e24091254
work_keys_str_mv AT lishirong dynamicweightstrategyofphysicsinformedneuralnetworksforthe2dnavierstokesequations
AT fengxinlong dynamicweightstrategyofphysicsinformedneuralnetworksforthe2dnavierstokesequations