arXiv:2609.01558cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.01558

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

Jing Xiao, Xinhai Chen, Qinglin Wang, Menghan Jia, Zhiquan Lai, Dongsheng Li, Jie Liu, Tiejun Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Training Physics-Informed Neural Networks (PINNs) requires jointly optimizing physics residual and initial/boundary condition loss terms, which often induce conflicting gradients. Gradient surgery methods mitigate this issue by constructing directions from loss-specific gradients to reduce conflict before optimizer transformation. However, even when the constructed direction is conflict-free, this property may not be preserved after optimizer transformation. Let ata_t denote the direction constructed by gradient surgery, utu_t the optimizer proposal, and CtC_t the conflict-free cone induced by the loss-specific gradients. We show that modern optimizers can transform ata_t through mechanisms such as historical state, adaptive scaling, preconditioning, or decoupled weight decay, so at∈Cta_t \in C_t does not generally imply ut∈Ctu_t \in C_t. We refer to this optimizer-induced discrepancy in conflict-freeness between ata_t and utu_t as Gradient–Update Mismatch (GUM). Accordingly, we propose Gradient–Update Alignment (GUA), which projects utu_t onto CtC_t to obtain the aligned update ptp_t and applies ptp_t to the parameters. When the optimizer maintains internal state, GUA further adjusts this state toward targets reconstructed from the applied update. We conduct extensive experiments and find that GUM is widespread across momentum, adaptive, and curvature-based optimizers, with conflict rates reaching up to 86.3%. Across all PINN settings, GUA achieves conflict-free applied updates and consistently improves various gradient surgery methods, reducing the relative L2L_2 error by up to 98.2% in individual settings. Data and code are available at https://github.com/JingXiao10/GUA.

1 INTRODUCTION

Solving partial differential equations (PDEs) can be computationally expensive, especially for high-dimensional problems or scenarios requiring repeated solution queries Li et al. (2020); Lu et al. (2021); Kovachki et al. (2023). Physics-Informed Neural Networks (PINNs) Raissi et al. (2019) provide a neural surrogate by incorporating physical constraints through loss terms associated with PDE residuals and initial and boundary conditions Gonon et al. (2024). However, the gradients induced by different loss terms can differ substantially in magnitude and direction, leading to gradient conflicts and making PINN training difficult Zhang et al. (2026).

A common strategy for improving PINN training is loss balancing, which adjusts the weights of different loss terms to reduce imbalances in gradient magnitudes among physical constraints. These weights can be set manually or adapted during training. However, loss balancing does not directly address conflicts in gradient directions, and the choice of effective weights varies across problems Wang et al. (2021); Liu & Wang (2021); Li & Feng (2022); Bischof & Kraus (2025). This motivates the use of gradient surgery, which directly modifies loss-specific gradients to construct directions with reduced conflict. Such methods were originally developed for multi-task learning (MTL), including PCGrad Yu et al. (2020), CAGrad Liu et al. (2021a), IMTL-G Liu et al. (2021b), A-MTL Senushkin et al. (2023), UPGrad Quinton & Rey (2024), and ConFIG Liu et al. (2025). These methods have also been adopted in PINNs to mitigate conflicts among the gradients induced by different physical constraints Liu et al. (2025).

Despite their methodological differences, these gradient surgery methods follow the same optimization pipeline: they first construct a direction from loss-specific gradients and then pass it to the optimizer. This naturally raises a key question: when gradient surgery constructs a conflict-free direction, does it remain conflict-free after optimizer transformation? Let ata_t denote the direction constructed by gradient surgery, utu_t the optimizer proposal, and CtC_t the conflict-free cone induced by the loss-specific gradients at step tt. We show that a conflict-free direction constructed by gradient surgery may not remain conflict-free after optimizer transformation, as illustrated in Figure 1. Formally, at∈Cta_t \in C_t does not generally imply ut∈Ctu_t \in C_t. Modern optimizers can transform ata_t through mechanisms such as historical state, adaptive scaling, preconditioning, or decoupled weight decay Wang et al. (2025), which can move the optimizer proposal outside the conflict-free cone. We refer to this optimizer-induced discrepancy in conflict-freeness between ata_t and utu_t as Gradient-Update Mismatch (GUM).

Gradient-Update Mismatch

Figure

Figure 1: Gradient–Update Mismatch. A conflict-free direction ata_{t} before optimizer transformation may become a conflicting optimizer proposal utu_{t} after transformation.

This observation suggests that conflict handling should consider not only the direction ata_t constructed before optimizer transformation, but also the optimizer proposal utu_t before it is applied to the parameters. We therefore propose Gradient–Update Alignment (GUA), which aligns the optimizer proposal utu_t with the current conflict-free cone CtC_t. Specifically, GUA projects utu_t onto CtC_t to obtain the aligned update ptp_t, which is then applied to the parameters. When the optimizer maintains internal state, GUA further adjusts this state toward targets reconstructed from the applied update, reducing the influence of components removed by the projection on subsequent proposals.

Our contributions are summarized as follows:

  1. We identify and formalize a largely overlooked issue, which we term Gradient–Update Mismatch: the conflict-free direction ata_{t} constructed by gradient surgery does not necessarily remain conflict-free after being transformed by the optimizer into the actual update proposal utu_{t}.

  2. We characterize how optimizer transformations can induce GUM. We derive exact conflict-preservation conditions for fixed-state affine transformations and extend the analysis to general nonlinear optimizer maps, covering mechanisms such as historical state, adaptive scaling, preconditioning, and weight decay.

  3. We propose Gradient–Update Alignment, introducing an update-level perspective on conflict handling. GUA considers conflict-freeness not only for the direction constructed before optimizer transformation, but also for the optimizer proposal before it is applied to the parameters.

  4. We conduct extensive experiments demonstrating that GUM is widespread across momentum, adaptive, and curvature-based optimizers, and that GUA achieves conflict-free applied updates across all evaluated PINN settings while consistently improving various gradient surgery methods.

References (74)