ConFIG: Towards Conflict-free Training of Physics Informed Neural Networks
Qiang Liu, Mengyu Chu, Nils Thuerey
TL;DR
The paper addresses gradient conflicts in Physics-Informed Neural Networks (PINNs) arising from multiple loss terms, such as PDE residuals and boundary/initial conditions. It introduces ConFIG, which computes a conflict-free update by ensuring positive projections onto all loss gradients via a unit-normalized gradient matrix and its pseudoinverse, with an adaptive length rule; a momentum-accelerated variant (M-ConFIG) further reduces backpropagation cost by alternating gradient updates. The authors prove convergence under convex and certain non-convex settings and demonstrate superior performance and runtime efficiency of ConFIG and M-ConFIG across challenging PINN tasks (Burgers, Schrödinger, Kovasznay, Beltrami), high-dimensional PDEs, and multi-task learning benchmarks (CelebA). The methods yield more balanced optimization across loss terms, mitigate bias toward the PDE residual, and offer practical impact for robust PINN training and scalable multi-task optimization.
Abstract
The loss functions of many learning problems contain multiple additive terms that can disagree and yield conflicting update directions. For Physics-Informed Neural Networks (PINNs), loss terms on initial/boundary conditions and physics equations are particularly interesting as they are well-established as highly difficult tasks. To improve learning the challenging multi-objective task posed by PINNs, we propose the ConFIG method, which provides conflict-free updates by ensuring a positive dot product between the final update and each loss-specific gradient. It also maintains consistent optimization rates for all loss terms and dynamically adjusts gradient magnitudes based on conflict levels. We additionally leverage momentum to accelerate optimizations by alternating the back-propagation of different loss terms. We provide a mathematical proof showing the convergence of the ConFIG method, and it is evaluated across a range of challenging PINN scenarios. ConFIG consistently shows superior performance and runtime compared to baseline methods. We also test the proposed method in a classic multi-task benchmark, where the ConFIG method likewise exhibits a highly promising performance. Source code is available at https://tum-pbs.github.io/ConFIG
