arXiv:2610.31855cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31855

Cautious Conflict-Free Inverse Gradient Methods

Damian Hattler, Qiang Liu, Nils Thuerey

ABSTRACT

Partial differential equations (PDEs) are indispensable tools for modeling complex phenomena in physics and engineering. Physics-Informed Neural Networks (PINNs) have emerged as a powerful alternative to traditional numerical solvers by directly incorporating physical constraints into neural network loss functions. Despite their advantages, PINN training requires multi-objective optimization, which often leads to significant gradient conflicts among boundary, initial, and residual loss terms. The Conflict-Free Inverse Gradient (ConFIG) method addresses these conflicts; however, integrating ConFIG with adaptive optimizers such as Adam introduces a critical vulnerability: the conflict-free direction generated by ConFIG is further processed by the optimizer, and the resulting weight update may no longer be conflict-free with respect to the task gradients. To address this issue, Cautious ConFIG is proposed as a concise three-line extension to the ConFIG algorithm that empirically restores the conflict-freeness guarantee prior to the weight update. The method is evaluated on three PINN benchmarks: the 1D Viscous Burgers' equation, the 1D Nonlinear Schrödinger equation, and the 2D Kovasznay flow. Experimental results demonstrate consistent performance improvements over the standard ConFIG baseline. Additionally, the stabilizing effect of cautious masking and its reaction to conflict severity, task number, and optimizer lag are investigated using a simple toy system. The code is available at https://github.com/damiha/CautiousConFIG

1 INTRODUCTION

Partial differential equations (PDEs) are widely applied in physics Sommerfeld (1949), chemistry Jamwal et al. (2025), engineering Ames (1965), and finance Duffy (2013) to model complex phenomena that evolve over space and time. These equations implicitly define a function of several variables, and solving a PDE with given initial and boundary conditions involves determining this function. Traditionally, PDEs and their initial boundary value (IBV) problems are solved using numerical methods that discretize the domain into a finite set of subregions. The solution function is then represented as a set of values corresponding to these subregions. For example, the PDE can be reformulated as a time-stepping rule by approximating partial derivatives with finite differences. Discretization may introduce artifacts, particularly for complex geometries, and the number of subregions can increase exponentially with the number of dimensions, a phenomenon known as the curse of dimensionality Bellman (2015). Physics-informed neural networks (PINNs) Raissi et al. (2019) have gained significant attention in recent years by directly parameterizing the solution function with a neural network. This approach mitigates discretization errors and alleviates the curse of dimensionality. As a mesh-free method, it is well-suited for complex geometries. Furthermore, formulating IBV problems as neural network training enables the utilization of recent advances in deep learning architectures and optimization techniques. However, PINNs also present limitations, as deep learning methods are less well-understood regarding error analysis and generalization compared to classical numerical approaches. While numerical methods reliably yield solutions when conditions such as the Courant-Friedrichs-Lewy criterion Courant et al. (1952) are satisfied, training a neural network in a high-dimensional loss landscape can be unpredictable. One notable challenge in PINN training is gradient interference. Each IBV condition is formulated as a separate loss function, and the resulting gradients can interact adversely, severely hindering convergence. The ConFIG method Liu et al. (2025) was developed to address the gradient interference problem by computing an update direction that is conflict-free with respect to all task gradients. However, the ConFIG direction typically serves as an input to another optimizer, such as Adam Kingma & Ba (2014), and the resulting update direction may not remain conflict-free with respect to the task gradients. Consequently, the conflict-freeness property is often lost before the weight update is applied. Our contributions are as follows:

• We introduce Cautious ConFIG, a simple three-line extension compatible with any ConFIG-optimizer combination. It incurs negligible computational overhead, is easily parallelizable on the GPU, and effectively restores ConFIG's mathematical properties.

• We evaluate Cautious ConFIG on three challenging PINN benchmarks: the 1D viscous Burgers equation, the 1D nonlinear Schrödinger equation, and the 2D Kovasznay flow, observing substantial performance improvements over the baseline (19% to 28% relative improvement).

• We analyze the effectiveness of Cautious ConFIG by monitoring key metrics during PINN training and present a computational model demonstrating that Cautious ConFIG produces update directions that align more closely with task gradients under conditions of severe conflict, numerous tasks, and significant optimizer lag.