cs.LGSep 25, 2026

Gradient Surgery for Physics-Informed Neural Networks

Authors: Thomas Borsani, Giuseppe Di Fatta

Organizations: Faculty of Engineering Free University of Bozen - Bolzano Bozen - Bolzano, Italy

Abstract

Physics-Informed Neural Networks (PINNs) are trained by optimising a composite objective that combines data fitting with physics-based constraints, typically resulting in a highly imbalanced multi-task optimisation problem. Under these conditions, existing optimisation strategies are affected by conflicting task gradients, leading to slow convergence and unstable training, particularly for stiff and high-frequency partial differential equations. We analyse gradient conflicts throughout training of PINNs with standard optimiser and investigate Multi-Task Deep Learning (MTDL) optimisation methods. In our analysis across four benchmark problems we observed that PINN optimisation exhibits three distinct phases in which angle- and magnitude-based gradient conflicts alternate, with only one present at a time. Building on these observations, we propose PAM-GS, a physics-aware gradient surgery method that adaptively mitigates task interference during training according to the observed conflict types. Experiments on four representative PDE benchmarks demonstrate that PAM-GS combines competitive solution accuracy with consistently strong task-balanced performance, outperforming existing methods on most problems.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Gradient-Update Mismatch: Rethinking Conflict-Free Training of Physics-Informed Neural Networks

    Sep 1, 2026Jing Xiao, Xinhai Chen, Qinglin Wang +5Neural Network OptimizationGradient Interference

  2. Per-Loss Adapters for Gradient Conflict in Physics-Informed Neural Networks

    May 11, 2026Bum Jun Kim, Gnankan Landry Regis N'guessanGradient InterferenceAdaptive Loss Weighting

  3. Modularity-Free Conflict-Averse Training for Generalized PINNs

    Jun 18, 2026Heejo Kong, Beomchul Park, Sung-Jin Kim +1Neural PDE SolversGradient Interference