arXiv:2611.08910math.NANov 2026

Manuscript Offprint

arXiv:2611.08910

Task-Contribution Dynamics of Adam in Physics-Informed Neural Networks: Slow-Manifold Analysis and Gradient Modulation

Enzhan Zheng, Xiaoliang Song

ABSTRACT

Physics-informed neural networks (PINNs) often suffer from imbalanced optimization of competing loss components, particularly when approximating solutions with high-frequency or multiscale features. Although existing balancing strategies have proven effective in alleviating this difficulty, the mechanisms governing the evolution of individual task contributions to Adam's parameter updates remain insufficiently understood. We introduce task-wise indicators to characterize this evolution and identify three distinct training regimes: smooth variation, intermittent spikes, and persistent oscillations. Focusing on the early smooth regime, we combine discrete-time analysis with a continuous-time singular perturbation framework under the full-batch setting and the parameter regime (1−β2)/(1−β1)≪1(1 - \beta_2)/(1 - \beta_1) \ll 1. A first-order approximation of the locally attracting slow manifold reveals two factors governing the step-to-step redistribution of task contributions: curvature-related alignment disparities and differences in the coordinatewise distributions of preconditioned task gradients. Both factors involve Adam's shared second-moment estimate. Inspired by AdaTask, we propose Gradient-Modulated Adam (GMAdam), which modulates incoming task gradients using task-specific second-moment estimates. Numerical experiments on high-frequency Poisson and wave equations, the Allen–Cahn equation, and two-dimensional lid-driven cavity flow (Re=100,400Re = 100, 400) demonstrate consistent improvements in predictive accuracy over AdaTask at comparable computational cost.

Keywords multi-objective optimization · Adam optimizer · physics-informed neural networks · deep learning

1 Introduction

The universal approximation capabilities of deep neural networks (DNNs) have given rise to a new paradigm for scientific computing involving partial differential equations (PDEs) [1, 2, 3, 4, 5]. In this context, physics-informed neural networks (PINNs) [6] have emerged as a representative methodology, in which observational data and governing physical laws are jointly incorporated into the training process. Over the past several years, PINNs have facilitated a series of promising results across various fields including fluid mechanics [7, 8, 9], geosciences [10, 11], bio-engineering [12, 13], electromagnetics [14, 15], and meta-material design [16, 17].

However, despite the notable empirical success of PINNs, significant challenges persist when they are built upon conventional neural network architectures. One fundamental challenge arises from the competing objectives in PINNs training, whose gradients may exhibit substantial disparities in magnitude and conflicts in direction [18]. These issues can be further exacerbated in the presence of high-frequency and multi-scale features of the underlying PDE solution, thereby impeding convergence toward parameters that yield low values across all loss components. To mitigate gradient magnitude imbalance, [19] proposed a periodically updated reweighting strategy (Grad Norm) aimed at equalizing

*Corresponding author: songxiaoliang@dlut.edu.cn the gradient norms of individual loss terms. A complementary perspective was provided by Wang et al. [20], who investigated the convergence behavior of individual PINN loss components within the neural tangent kernel (NTK) framework [21]. Building on this analysis, they developed an NTK-based reweighting strategy to promote balanced decreases across the different loss components.

While the preceding reweighting strategies are motivated by the behavior of task gradients, another approach seeks to address gradient magnitude imbalance through Adam itself, one of the most widely used optimizers in PINN training. In the context of multi-task learning with Adam, Yang et al. [22] introduced the relative accumulated update (rAU) metric to characterize task dominance at the level of individual parameter updates, linking this phenomenon to imbalances in accumulated gradient statistics. This observation motivated the development of AdaTask, which employs task-specific adaptive learning rates to mitigate such dominance. For PINNs, Yao et al. [23] presented MultiAdam, which likewise employs task-specific adaptive learning rates but averages the resulting updates rather than summing them as in AdaTask.

Despite these developments, the mechanisms governing the evolution of task contributions under standard Adam remain insufficiently understood. Although NTK-based analyses have provided insights into the convergence behavior of individual PINN loss components under gradient descent (GD) [20], Adam exhibits distinct dynamics arising from momentum accumulation and coordinatewise preconditioning. From a dynamical-systems perspective, Barakat and Bianchi [24] established a continuous-time ODE approximation for stochastic Adam, whereas Ma et al. [25] examined the qualitative dynamics of full-batch Adam, including oscillations and spikes in the training loss. Nevertheless, these theoretical advances do not directly explain how Adam's shared second-moment estimate influences the relative contributions of individual loss components to parameter updates. In particular, the mechanisms governing the step-to-step redistribution of these contributions remain to be characterized.

In this work, we investigate the redistribution of task contributions under Adam, focusing on the early smooth phase of training. Our theoretical analysis combines discrete-time analysis with a continuous-time dynamical formulation in the full-batch setting and under the parameter regime ε=(1−β2)/(1−β1)≪1\varepsilon = (1 - \beta_2)/(1 - \beta_1) \ll 1, revealing the factors governing the step-to-step evolution of relative task contributions. Motivated by these findings, we further develop a task-aware gradient-modulation scheme inspired by AdaTask [22]. The main contributions of this work are summarized as follows:

(i) We introduce task-wise indicators to quantify the relative contributions of individual loss components to Adam's parameter updates and identify three characteristic regimes: smooth evolution, intermittent spikes, and persistent oscillations, motivating our focus on the early smooth regime.

(ii) Under the full-batch setting and (1−β2)/(1−β1)≪1(1 - \beta_2)/(1 - \beta_1) \ll 1, we establish a continuous-time correspondence for Adam and derive a locally attracting slow manifold using geometric singular perturbation theory. The resulting first-order approximation characterizes task-contribution redistribution through curvature-related alignment disparities and differences in the coordinatewise distributions of preconditioned task gradients.

(iii) We examine how task dominance in the shared second-moment estimate can limit the redistribution of update contributions. Motivated by an equivalent formulation of AdaTask, we propose Gradient-Modulated Adam (GMAdam), which modulates task gradients using task-specific second-moment estimates.

(iv) We evaluate the proposed method on four PDE benchmarks: the Poisson, wave, and Allen–Cahn equations, and lid-driven cavity flow (Re = 100, 400). Comparisons with AdaTask and two loss-reweighting methods demonstrate consistently higher predictive accuracy than AdaTask at comparable computational cost.

The remainder of this paper is organized as follows. Section 2 reviews the PINN formulation and representative strategies for mitigating training imbalance. Section 3 develops the discrete- and continuous-time analyses of Adam's task-contribution dynamics, followed by the construction of the proposed optimization scheme. Section 4 presents numerical experiments on the four benchmark problems and compares the proposed method with existing approaches.

References (31)