Manuscript Offprint

arXiv:2610.31551

Fine-Grained Analysis of Catastrophic Forgetting in Continual Learning via Algorithmic Stability

Guodong Zheng, Yan Sun, Peng Wang, Enneng Yang, Jiafei Lyu, Xiaochun Cao, Dacheng Tao, Li Shen

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

Guodong Zheng 1^{1}, Yan Sun 2^{2}, Peng Wang 1^{1}, Enneng Yang 1^{1}, Jiafei Lyu 3^{3}, Xiaochun Cao 1^{1}, Dacheng Tao 2^{2}, Li Shen 1^{1}

Abstract—Understanding catastrophic forgetting, in which learning new tasks degrades performance on previously learned tasks, remains a fundamental challenge in continual learning (CL). Existing theoretical analyses often rely on specific model or task structures and offer limited insight into how iterative optimization affects forgetting. To address this gap, we develop an algorithmic stability framework for expected population forgetting under SGD without prescribing a particular model architecture. Specifically, we decompose forgetting into intra-task and cross-task generalization gaps and empirical forgetting. To bound the generalization gaps, we track how a sample perturbation affects updates within a task and propagates through subsequent tasks. We consider constant, intra-task decaying, and continuously decaying learning-rate schedules. Comparing the two decaying schedules allows us to characterize how restarting learning-rate decay at task boundaries affects the propagation of historical sample perturbations. For empirical forgetting, we derive bounds for all three schedules by retaining cumulative gradient alignment along the optimization trajectory, without requiring convexity. Combining these results yields upper bounds on expected forgetting that capture the effects of training set size, the number of updates per task, the total number of tasks, learning-rate schedules, and cumulative gradient alignment. Finally, we conduct experiments on Split CIFAR-100 and Split MiniImageNet to examine the empirical implications of our theoretical findings.

Index Terms—Catastrophic forgetting, algorithmic stability, intra-task generalization gap, cross-task generalization gap, empirical forgetting.

I. INTRODUCTION

Continual learning (CL) aims to learn from a sequence of non-stationary data streams and tasks over time. However, this classical training paradigm remains vulnerable to a fundamental challenge, known as catastrophic forgetting [1, 2], in which the model exhibits a substantial degradation in performance on previously learned tasks as it adapts to newly introduced tasks.

To mitigate catastrophic forgetting, several empirical methods have been proposed and have achieved promising results [3]. However, the theoretical understanding remains much less developed. Existing analyses have largely focused on the linear regime [4–8] or the neural tangent kernel (NTK) regime [9–11]. While linear models yield explicit forgetting bounds, the resulting guarantees depend on the assumed linear structure. NTK-based analyses extend the study to neural networks, but typically rely on infinite-width limits. Moreover, most of these studies analyze forgetting through closed-form solutions to the optimization problem, abstracting away the fine-grained dynamics of iterative updates and yielding coarse bounds. Recently, Zheng et al. [11] analyze forgetting dynamics through NTK gradient flow, which captures more detailed trajectories than conventional static analyses. Taheri et al. [12] characterize forgetting in two-layer quadratic neural networks in the kernel regime, deriving explicit empirical forgetting bounds for orthogonal XOR-cluster tasks and using algorithmic stability to control delayed generalization. These studies provide insights into how forgetting evolves during training, while their guarantees remain tied to specific kernel approximations, network architectures, or task structures. This motivates an analysis of training dynamics, without prescribing a particular network architecture, that tracks both within-task updates and the propagation of their effects across tasks.

In this work, we develop an algorithmic stability analysis of expected forgetting in CL. We quantify forgetting as the expected increase in population risk on historical tasks and decompose it into intra-task generalization gaps (IGG), cross-task generalization gaps (CGG), and empirical forgetting (EF). To bound the generalization terms, we characterize stability under a sample perturbation in either the current task or a historical task. We follow SGD trajectories to track how the perturbation affects updates within that task and propagates through subsequent tasks. This analysis yields generalization bounds for constant, intra-task decaying, and continuously decaying learning rate schedules in the convex setting, and for the two decaying schedules in the non-convex setting. Under intra-task decay, the learning rate decreases from the same initial value within each task, whereas under continuous decay, it continues decreasing across task boundaries. Comparing these schedules allows us to characterize how resetting the learning rate at task boundaries affects the propagation of historical sample perturbations. For EF, we analyze changes in empirical risk on historical tasks along the optimization trajectory, retaining the cumulative inner products between gradients of historical tasks and those of the current task. The EF analysis covers all three learning rate schedules without requiring convexity. Combining these results yields bounds on expected population forgetting that explicitly account for both generalization gaps and empirical risk changes.

As summarized in Table I, the bounds reveal distinct effects of learning-rate scheduling on generalization and empirical forgetting. For convex losses with step sizes at most 2/β2/\beta, the IGG and CGG bounds scale as O(N/n)\mathcal{O}(N/n) under constant

1^{1}Guodong Zheng, Peng Wang, Enneng Yang, Xiaochun Cao and Li Shen are with the School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University, Shenzhen, China. (E-mail: zhenggd3@mail.sysu.edu.cn; wangp389@mail.sysu.edu.cn; ennengyang@gmail.com; caoxiaochun@mail.sysu.edu.cn; mathshenli@gmail.com).

2^{2}Yan Sun and Dacheng Tao are with the College of Computing and Data Science and the Generative AI Lab at Nanyang Technological University, Singapore. (Email: sun.yan.95@outlook.com; dacheng.tao@gmail.com))

3^{3}Jiafei Lyu is with the Tencent Hunyuan, Shenzhen, China. (Email: dmksjfl@gmail.com)

TABLE I: Results for the IGG, CGG, and EF under convex and non-convex loss functions with three learning-rate (LR) schedules: constant (C), intra-task decaying (ID), and continuously decaying (CD). Here, TT is the number of tasks and i∈[T−1]i \in [T-1] is the index of a previous task. NN and nn denote the number of iterations and training samples per task, respectively. LL and β\beta are the Lipschitz and smoothness constants. We define p=cβcβ+1p = \frac{c\beta}{c\beta+1}, where cc is the constant factor in the learning rate. The term GT,i\mathcal{G}_{T,i} is cumulative gradient alignment defined in Equation (6). For the non-convex ID setting, the IGG and CGG upper bounds reported in the table apply when 2cL2<N2cL^2 < N and 2cL2(eN)cβ(T−i)<N2cL^2(eN)^{c\beta(T-i)} < N, respectively. When a condition is not satisfied, the corresponding upper bound is N/nN/n. The full assumptions and detailed piecewise results are provided in Section IV.

CaseLRIGG ϵi,i\epsilon_{i,i}CGG ϵT,i\epsilon_{T,i}EF ϵ~T,i\tilde{\epsilon}_{T,i}
ConvexC2cL2Nn\frac{2cL^{2}N}{n}2cL2Nn\frac{2cL^{2}N}{n}−GT,i+βc2L22N(T−i)-\mathcal{G}_{T,i} + \frac{\beta c^{2}L^{2}}{2}N(T-i)
ID2cL2ln⁡(eN)n\frac{2cL^{2}\ln(eN)}{n}2cL2ln⁡(eN)n\frac{2cL^{2}\ln(eN)}{n}−GT,i+βc2L22(2−1/N)(T−i)-\mathcal{G}_{T,i} + \frac{\beta c^{2}L^{2}}{2}(2-1/N)(T-i)
CD2cL2nln⁡(1+1i−1)\frac{2cL^{2}}{n}\ln\left(1+\frac{1}{i-1}\right)2cL2nln⁡(1+1i−1)\frac{2cL^{2}}{n}\ln\left(1+\frac{1}{i-1}\right)−GT,i+βc2L22(1/(iN)−1/(TN))-\mathcal{G}_{T,i} + \frac{\beta c^{2}L^{2}}{2}(1/(iN)-1/(TN))
Non-convexID(2cL2)1−pNppn−2L2βn\frac{(2cL^{2})^{1-p}N^{p}}{pn} - \frac{2L^{2}}{\beta n}ep(T−i)KNT−i+1−2L2(eN)cβ(T−i)βne^{p(T-i)}\mathcal{K}_{N^{T-i+1}} - \frac{2L^{2}(eN)^{c\beta(T-i)}}{\beta n}−GT,i+βc2L22(2−1/N)(T−i)-\mathcal{G}_{T,i} + \frac{\beta c^{2}L^{2}}{2}(2-1/N)(T-i)
CDa\mathrm{CD}^{\mathrm{a}}C11: KiN−(i−1)Nn−2L2βn\mathcal{C}_{1}^{1}:\ \mathcal{K}_{iN} - \frac{(i-1)N}{n} - \frac{2L^{2}}{\beta n}C21: KTN−(i−1)Nn−2L2βn(T/i)cβ\mathcal{C}_{2}^{1}:\ \mathcal{K}_{TN} - \frac{(i-1)N}{n} - \frac{2L^{2}}{\beta n}(T/i)^{c\beta}−GT,i+βc2L22(1/(iN)−1/(TN))-\mathcal{G}_{T,i} + \frac{\beta c^{2}L^{2}}{2}(1/(iN)-1/(TN))
C12: 2L2βn[(ii−1)cβ−1]\mathcal{C}_{1}^{2}:\ \frac{2L^{2}}{\beta n}\left[(\frac{i}{i-1})^{c\beta} - 1\right]C22: 2L2βn[(Ti−1)cβ−(Ti)cβ]\mathcal{C}_{2}^{2}:\ \frac{2L^{2}}{\beta n}\left[(\frac{T}{i-1})^{c\beta} - (\frac{T}{i})^{c\beta}\right]C22: 2L2βn[(Ti−1)cβ−(Ti)cβ]\mathcal{C}_{2}^{2}:\ \frac{2L^{2}}{\beta n}\left[(\frac{T}{i-1})^{c\beta} - (\frac{T}{i})^{c\beta}\right]−GT,i+βc2L22(1/(iN)−1/(TN))-\mathcal{G}_{T,i} + \frac{\beta c^{2}L^{2}}{2}(1/(iN)-1/(TN))

a^{\mathrm{a}} Let C1=(2cL2)1−p(iN)p−(i−1)N\mathcal{C}_1 = (2cL^{2})^{1-p}(iN)^{p} - (i-1)N and C2=(2cL2)1−p(TN)p−(i−1)N\mathcal{C}_2 = (2cL^{2})^{1-p}(TN)^{p} - (i-1)N. For j=1,2j = 1, 2, Cj1\mathcal{C}_j^1 denotes 0<Cj<N0 < \mathcal{C}_j < N, and Cj2\mathcal{C}_j^2 denotes Cj≤0\mathcal{C}_j \leq 0. When Cj≥N\mathcal{C}_j \geq N, the corresponding bound is N/nN/n.

learning rates and O(log⁡(eN)/n)\mathcal{O}(\log(eN)/n) under intra-task decay, while continuous decay gives bounds independent of NN for historical tasks i>1i > 1, with the other parameters fixed. For non-convex losses and i>1i > 1, the IGG and CGG bounds under continuous decay are no larger than those under intra-task decay at the same parameter values. In particular, for fixed c,β,L,T,ic, \beta, L, T, i with i>1i > 1, the CGG bound under continuous decay is O(1/n)\mathcal{O}(1/n) uniformly in NN. Thus, increasing the local training length does not impose an additional growth restriction for this bound to vanish as nn increases. These results show how carrying learning-rate decay across task boundaries changes the dependence of the generalization bounds on local training length. The EF bound further captures the joint contribution of cumulative gradient alignment and a second-order term controlled by squared learning rates. With the other parameters fixed, this second-order term scales as O(N)\mathcal{O}(N), O(1)\mathcal{O}(1), and O(1/N)\mathcal{O}(1/N) under constant, intra-task decaying, and continuously decaying learning rates, respectively. Combining the generalization and EF bounds characterizes how perturbation propagation and trajectory dependent gradient interactions jointly enter the population forgetting bound. Finally, we conduct experiments on Split CIFAR-100 and Split MiniImageNet to examine the empirical implications of our theoretical findings.

Our main contributions can be summarized as follows:

  • We derive explicit IGG and CGG bounds for continual SGD by tracking sample perturbations within a task and through subsequent tasks. These bounds characterize the effects of sample size, local training length, the total number of tasks, and learning-rate schedules.

  • We derive an EF bound in terms of cumulative gradient alignment and an explicit second-order term involving squared learning rates. The bound reveals how positive cumulative gradient alignment contributes to controlling empirical forgetting.

  • We derive upper bounds on expected forgetting through combining the IGG, CGG, and EF bounds, linking generalization with changes in empirical risk along the continual learning trajectory.

References (44)

  • Catastrophic interference in connectionist networks: The sequential learning problem
  • Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory
  • A comprehensive survey of forgetting in deep learning beyond continual learning
  • How catastrophic can catastrophic forgetting be in linear regression?
  • Theory on forgetting and generalization of continual learning
  • Understanding forgetting in continual learning with linear regression
  • A statistical theory of regularization-based continual learning
  • Theoretical insights into overparameterized models in multi-task and replay-based continual learning
  • A theoretical analysis of catastrophic forgetting through the ntk overlap matrix
  • Learning curves for continual learning in neural networks: Self-knowledge transfer and forgetting
  • Understanding the dynamics of forgetting and generalization in continual learning via the neural tangent kernel
  • On the theory of continual learning with gradient descent for neural networks
  • Efficient lifelong learning with a-GEM
  • Learning to learn without forgetting by maximizing transfer and minimizing interference (opens arXiv in a new tab)
  • Dark experience for general continual learning: a strong, simple baseline
  • Orthogonal gradient descent for continual learning
  • Gradient projection memory for continual learning
  • Trgp: Trust region gradient projection for continual learning
  • Data augmented flatness-aware gradient projection for continual learning
  • Revisiting flatness-aware optimization in continual learning with orthogonal gradient projection
  • Overcoming catastrophic forgetting in neural networks
  • Continual learning through synaptic intelligence
  • Learning without forgetting
  • Progressive Neural Networks
  • Lifelong learning with dynamically expandable networks
  • Sparcl: Sparse continual learning on the edge
  • Towards understanding memory buffer based continual learning
  • Unlocking the power of rehearsal in continual learning: A theoretical perspective
  • Fixed design analysis of regularization-based continual learning
  • Memory-statistics tradeoff in continual learning with structural regularization
  • Optimal 12 regularization in high-dimensional continual linear regression (opens arXiv in a new tab)
  • Theory on mixture-of-experts in continual learning
  • Generalisation guarantees for continual learning with orthogonal gradient descent (opens arXiv in a new tab)
  • Parameter-efficient fine-tuning for continual learning: A neural tangent kernel perspective
  • Gradient episodic memory for continual learning
  • Train faster, generalize better: Stability of stochastic gradient descent
  • Generalization analysis of stochastic weight averaging with general sampling
  • Error analysis affected by heavy-tailed gradients for nonconvex pairwise stochastic gradient descent
  • Understanding the stability-based generalization of personalized federated learning
  • Stability and generalization for distributed sgda
  • Learning multiple layers of features from tiny images
  • Overcoming catastrophic forgetting with hard attention to the task
  • Adaptive resonance theory: How a brain learns to consciously attend, learn, and recognize a changing world
  • Continual model merging without data: Dual projections for balancing stability and plasticity