{"title":"Physics-informed neural networks with adaptive loss weighting algorithm for solving partial differential equations","authors":"Bo Gao, Ruoxia Yao, Yan Li","doi":"10.1016/j.camwa.2025.01.007","DOIUrl":null,"url":null,"abstract":"In recent years, physics-informed neural networks (PINNs) have garnered widespread attentions for the ability of solving nonlinear partial differential equations (PDE) using neural networks. The paper regards PINNs as multitask learning and proposes an adaptive loss weighting algorithm in physics-informed neural networks (APINNs). APINNs could balance the magnitudes of different loss functions during the training process to ensure a balanced contribution of parameters with different magnitudes to loss functions, thereby training solutions that satisfy initial boundary conditions and physical equations. Based on the original PINNs and APINNs, we respectively simulated the solitary wave solution of the Benjamin-Ono equation, the breather wave solution of the Sine-Gordon equation and the breather wave solution of the Mukherjee-Kundu equation. In the experiment of solving the solitary wave solution of the Benjamin-Ono equation, the minimum predict error of PINNs is about 60%, while the minimum predict error of APINNs is about 1%. As for solving breather wave solution, for the Sine-Gordon equation the minimum predict error of PINNs is around 10%, while the minimum predict error of APINNs is around 2%; and for the Mukherjee-Kundu equation, the minimum predict error of PINNs is about 30%, while the minimum predict error of APINNs is about 10%. The experimental results show that compared with PINNs, the predict solutions trained by APINNs have smaller errors.","PeriodicalId":55218,"journal":{"name":"Computers & Mathematics with Applications","volume":"26 1","pages":""},"PeriodicalIF":2.9000,"publicationDate":"2025-01-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers & Mathematics with Applications","FirstCategoryId":"100","ListUrlMain":"https://doi.org/10.1016/j.camwa.2025.01.007","RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MATHEMATICS, APPLIED","Score":null,"Total":0}
引用次数: 0
Abstract
In recent years, physics-informed neural networks (PINNs) have garnered widespread attentions for the ability of solving nonlinear partial differential equations (PDE) using neural networks. The paper regards PINNs as multitask learning and proposes an adaptive loss weighting algorithm in physics-informed neural networks (APINNs). APINNs could balance the magnitudes of different loss functions during the training process to ensure a balanced contribution of parameters with different magnitudes to loss functions, thereby training solutions that satisfy initial boundary conditions and physical equations. Based on the original PINNs and APINNs, we respectively simulated the solitary wave solution of the Benjamin-Ono equation, the breather wave solution of the Sine-Gordon equation and the breather wave solution of the Mukherjee-Kundu equation. In the experiment of solving the solitary wave solution of the Benjamin-Ono equation, the minimum predict error of PINNs is about 60%, while the minimum predict error of APINNs is about 1%. As for solving breather wave solution, for the Sine-Gordon equation the minimum predict error of PINNs is around 10%, while the minimum predict error of APINNs is around 2%; and for the Mukherjee-Kundu equation, the minimum predict error of PINNs is about 30%, while the minimum predict error of APINNs is about 10%. The experimental results show that compared with PINNs, the predict solutions trained by APINNs have smaller errors.
期刊介绍:
Computers & Mathematics with Applications provides a medium of exchange for those engaged in fields contributing to building successful simulations for science and engineering using Partial Differential Equations (PDEs).