Multi-Objective Loss Balancing for Physics-Informed Deep Learning
About
Physics-Informed Neural Networks (PINN) are algorithms from deep learning leveraging physical laws by including partial differential equations together with a respective set of boundary and initial conditions as penalty terms into their loss function. In this work, we observe the significant role of correctly weighting the combination of multiple competitive loss functions for training PINNs effectively. To this end, we implement and evaluate different methods aiming at balancing the contributions of multiple terms of the PINNs loss function and their gradients. After reviewing of three existing loss scaling approaches (Learning Rate Annealing, GradNorm and SoftAdapt), we propose a novel self-adaptive loss balancing scheme for PINNs named \emph{ReLoBRaLo} (Relative Loss Balancing with Random Lookback). We extensively evaluate the performance of the aforementioned balancing schemes by solving both forward as well as inverse problems on three benchmark PDEs for PINNs: Burgers' equation, Kirchhoff's plate bending equation and Helmholtz's equation. The results show that ReLoBRaLo is able to consistently outperform the baseline of existing scaling methods in terms of accuracy, while also inducing significantly less computational overhead.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| PDE solving | Klein-Gordon equation | Relative L2 Error0.0389 | 31 | |
| Forward PDE solving | Helmholtz | Relative Error0.011 | 26 | |
| Forward PDE problem solving | Burgers | Relative L2 Error0.0046 | 19 | |
| PDE solving | Heat2D-CG | Relative L2 Error2.615 | 18 | |
| Forward PDE solving | Burgers 10K-epoch | Relative L2 Error1.1 | 16 | |
| Forward PDE solving | Helmholtz 10K-epoch | Relative L2 Error1.2 | 16 | |
| Forward PDE solving | Allen–Cahn 10K-epoch | Relative L2 Error1.7 | 16 | |
| Forward PDE solving | Klein-Gordon 10K-epoch | Relative L2 Error3.8 | 16 | |
| Forward PDE solving | Conv-Diff 10K-epoch | Relative L2 Error4.12 | 16 | |
| Forward PDE problem solving | Kovasznay | Relative L2 Error0.0048 | 9 |