Manuscript Offprint
arXiv:2610.31551Fine-Grained Analysis of Catastrophic Forgetting in Continual Learning via Algorithmic Stability
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Guodong Zheng , Yan Sun , Peng Wang , Enneng Yang , Jiafei Lyu , Xiaochun Cao , Dacheng Tao , Li Shen
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 , the IGG and CGG bounds scale as under constant
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).
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))
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, is the number of tasks and is the index of a previous task. and denote the number of iterations and training samples per task, respectively. and are the Lipschitz and smoothness constants. We define , where is the constant factor in the learning rate. The term 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 and , respectively. When a condition is not satisfied, the corresponding upper bound is . The full assumptions and detailed piecewise results are provided in Section IV.
| Case | LR | IGG | CGG | EF |
|---|---|---|---|---|
| Convex | C | |||
| ID | ||||
| CD | ||||
| Non-convex | ID | |||
Let and . For , denotes , and denotes . When , the corresponding bound is .
learning rates and under intra-task decay, while continuous decay gives bounds independent of for historical tasks , with the other parameters fixed. For non-convex losses and , 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 with , the CGG bound under continuous decay is uniformly in . Thus, increasing the local training length does not impose an additional growth restriction for this bound to vanish as 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 , , and 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.
Theoretical analysis of CL. Recent theoretical studies on CL have mainly focused on catastrophic forgetting and generalization. Broadly speaking, the existing literature can be divided into two main lines of work: linear model analysis and NTK-based analysis. Under the linear regime, Evron et al. [4], Lin et al. [5] investigate forgetting and generalization under the assumptions of overparameterized linear models. Ding et al. [6] study forgetting in both overparameterized and underparameterized regimes while relaxing the data assumptions to fourth-moment conditions. Moreover, several works use linear models to analyze concrete methods for mitigating forgetting, including replay-based methods [8, 27, 28], regularization-based methods [7, 29–31], and mixture-of-experts methods [32]. The other main line of theoretical work relies on the NTK regime. Specifically, Bennani et al. [33] establish generalization error bounds for CL based on the NTK and Rademacher complexity. Doan et al. [9] analyze forgetting by introducing the NTK overlap matrix as a task similarity metric. Karakida and Akaho [10] study forgetting and generalization error through learning-curve analysis between two tasks. Zheng et al. [11] further characterize the training-time dynamics of forgetting and generalization in the general CL setting. Taheri et al. [12] analyze 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. Liu et al. [34] derive generalization bounds for parameter-efficient fine-tuning in CL. However, these theoretical analyses have several limitations: (1) they rely on restrictive model assumptions, such as linear models, infinite-width models, or infinitesimal learning rates, which make the results less general; and (2) the upper bounds derived in the NTK setting often involve complicated kernel matrices, making them difficult to interpret and generalize. In contrast, we analyze forgetting through a fine-grained characterization of the training trajectory without restrictive model assumptions. Moreover, our bounds depend only on a few readily interpretable quantities, such as the training set size, local training length, learning-rate schedule, and gradient inner products between tasks.
The work most closely related to ours is that of Taheri et al. [12], who analyze forgetting using algorithmic stability. Our analysis differs in three aspects: (1) Their theoretical results are developed for two-layer neural networks with quadratic activations and fixed output-layer weights, whereas our analysis does not prescribe a particular network architecture. (2) Their explicit empirical forgetting guarantees rely on orthogonal XOR-cluster tasks and the specified network model. Our EF bound requires only that each sample loss be Lipschitz continuous and smooth with respect to the model parameters, without imposing these structural assumptions. Their delayed generalization analysis also uses Lipschitz and smoothness assumptions on the loss. (3) Their main forgetting and generalization theorems adopt constant learning rates, whereas we examine constant, intra-task decaying, and continuously decaying learning rates.
III. PRELIMINARY
A. Continual Learning Setting
We consider the standard CL setting with sequential training tasks. For any positive integer , let . For each task , let denote the data distribution. To simplify the analysis, we assume that each task dataset contains samples, and write for the corresponding training dataset drawn i.i.d. from . The datasets are independent across tasks. We denote the task sequence by , which collects the datasets from tasks 1 to . Let denote a differentiable loss function on the parameter space . We adopt stochastic gradient descent (SGD) as our update rule, which can be formulated as
where is the learning rate and is sampled uniformly from with replacement, independently across all updates and independently of the datasets and initialization. Here, denotes the model parameters at step for task . Each task is trained for steps indexed by . We write for the model parameters obtained after training on task , with and an initialization independent of all task datasets.
Furthermore, we define the population risk of on as and the empirical risk of on as , given by
We next adopt the definition of forgetting from Zheng et al. [11], Taheri et al. [12], which characterizes the model's performance over the underlying data distribution. The formal definition is given in Definition 1.
Definition 1 (Forgetting in expectation). For any , let denote the model obtained by the randomized algorithm after training on the task sequence . We define forgetting in expectation as
Discussion. Definition 1 generalizes backward transfer (BWT) [35], a conventional metric for evaluating forgetting, in two respects. First, BWT measures forgetting on a test dataset, whereas measures forgetting over the underlying data distribution. Second, takes an expectation over the randomness in both the training dataset and the learning algorithm. These extensions yield a theoretical measure of expected population forgetting, with smaller values of indicating less forgetting.
B. Algorithmic Stability
In the non-CL setting, standard algorithmic stability typically concerns perturbations in the current training data only. In CL, by contrast, the model is exposed to a sequence of tasks, so perturbations at different tasks can propagate differently through the subsequent training trajectory. To reflect this sequential structure, we propose intra-task uniform stability for perturbations on the current task and cross-task uniform stability for perturbations on a historical task.
Definition 2 (Intra-task uniform stability). For any , a randomized algorithm is said to be -uniformly stable on task after training on tasks if, for any datasets that differ in at most one example in task , we have
Definition 3 (Cross-task uniform stability). For any , a randomized algorithm is said to be -uniformly stable on task after training on tasks if, for any datasets that differ in at most one example in task , we have
In the following analysis, and denote the infima of the nonnegative constants satisfying Definitions 2 and 3, respectively.
Remark 1. As shown in Definition 2, the stability measure -uniform stability characterizes the algorithm's stability to perturbations in the data of the current task during CL. In contrast, Definition 3 extends this notion to perturbations in a historical task, thereby capturing how the effect of a local change can propagate through the subsequent training trajectory. This reflects the cumulative of stability in CL, where the influence of earlier tasks may persist and affect the final model after training on all tasks.
In this work, we follow Hardt et al. [36], Wang et al. [37], Chen et al. [38], Liu et al. [39], Zhu et al. [40] to adopt the standard assumptions used in algorithmic stability analysis:
Assumption 1 (L-Lipschitz). For every , the function is L-Lipschitz, that is, for all ,
Assumption 2 ( -smooth). For every , the function is -smooth, that is, for all ,
Assumption 3 (Convex). For every , the function is convex, that is, for all ,
IV. THEORETICAL ANALYSIS
In this section, we provide a theoretical analysis of catastrophic forgetting. To comprehensively analyze the forgetting measure in Equation (1), it is important to derive a fine-grained decomposition that allows us to understand forgetting from multiple perspectives:
Based on the decomposition in Equation (4), we analyze the forgetting measure from the following three aspects.
(1) Intra-Task Generalization Gap (Section IV-A). This term captures the generalization behavior of the trained model on the current task. A smaller absolute intra-task generalization gap indicates closer agreement between the empirical risk and the population risk on the current task.
(2) Cross-Task Generalization Gap (Section IV-B). This term reflects the generalization behavior of the model trained on later tasks when evaluated on earlier task distributions. A smaller absolute cross-task generalization gap indicates closer agreement between the empirical risk and the population risk on previous tasks.
(3) Empirical Forgetting (Section IV-C). This term captures how much performance on the training set of task i deteriorates after learning T tasks. A smaller empirical forgetting indicates that the model forgets less of the knowledge from the training set of a previous task.
In what follows, we derive upper bounds for these three terms under convex and non-convex loss functions, respectively, to provide a comprehensive understanding of catastrophic forgetting in CL.
A. Intra-Task Generalization Gap
The intra-task generalization gap (IGG) describes the generalization performance on the current task. We next present an important theorem showing that intra-task uniform stability implies an upper bound on the intra-task generalization gap in expectation. The result is stated in Theorem 1, and the corresponding proof is given in Appendix B-A.
Theorem 1. For any , if is -uniformly stable, then
Theorem 1 shows that an intra-task uniformly stable algorithm will have a small IGG. This suggests that we can control the uniform stability itself, rather than directly bounding the generalization gap. We then provide the corresponding upper bound under both convex and non-convex loss functions.
First, we establish an upper bound for the case where the loss function is convex in Theorem 2, and the proof of Theorem 2 is given in Appendix B-B.
Theorem 2. Assume that the loss function satisfies Assumptions 1, 2, and 3. Suppose that SGD is run for N steps on each task with step sizes . Then,
Remark 2. Theorem 2 implies that, under convex loss functions, the IGG can be bounded in terms of the cumulative learning rate within task i. This bound is consistent with the classical non-CL result of Hardt et al. [36]. Hence, in the convex setting, the bound on is independent of previous tasks and depends only on the optimization process within the current task. Moreover, smaller learning rates and larger numbers of training samples can further reduce this upper bound.
Moreover, for different learning rate schedules, including the constant learning rate , the intra-task decaying learning rate , and the continuously decaying learning rate , Equation (5) can be further written as
Remark 3. The upper bound on varies across learning-rate schedules. Under a constant learning rate, the bound grows linearly with the number of SGD steps N on the current task. Under an intra-task decaying learning rate, this growth is reduced to . With other parameters fixed, reducing the number of training steps yields a smaller upper bound under both schedules, providing a theoretical motivation for early stopping. Under the continuously decaying learning-rate schedule, the bound coincides with that under intra-task decay when . For , the displayed upper bound is independent of N and is instead controlled by the task index i.
Before presenting the IGG bounds for non-convex losses, we introduce the following notation for a recurring term in the subsequent analysis:
The subscript specifies the number of iterations, with , , , and held fixed. In particular, for any positive integer ,
Then, we derive an upper bound for the more challenging non-convex case in Theorem 3, and the proof of Theorem 3 is given in Appendix B-C.
Theorem 3. Assume that the loss function satisfies Assumptions 1 and 2, with and . Suppose that SGD is run for N steps on each task with learning rates . Then,
(a) under intra-task decaying learning rates :
(b) under continuously decaying learning rates and :
where
Remark 4. Theorem 3 provides an upper bound for the IGG without assuming convexity of the loss function. Let . Under intra-task decaying learning rates, when , the bound scales as for fixed , consistent with the non-convex SGD stability rate established by Hardt et al. [36] in the single-task setting. As , the condition is sufficient for a vanishing IGG. Thus, the number of training steps can increase with the sample size, provided that it grows more slowly than . When , corresponding to a larger initial learning rate or Lipschitz constant relative to the training length, the bound becomes . In both cases, increasing the sample size or reducing the number of training steps decreases the displayed upper bound, with the other parameters fixed.
Remark 5. For , continuously decaying learning rates provide stronger control of the IGG bound as the training length increases. When , the bound is independent of and decreases with the task index . Since , it is at most . In the intermediate case , the bound increases with but remains below . Thus, the dependence on in this case does not lead to unbounded growth. For the same , the displayed bound under continuous decay is no larger than that under intra-task decay, and the improvement is strict when . When , both schedules give the bound , which remains nontrivial for . Moreover, increasing the number of training samples and decreasing the initial learning rate can further reduce the upper bound under this learning-rate schedule.
B. Cross-Task Generalization Gap
The cross-task generalization gap (CGG) captures the generalization performance on earlier tasks. Next, we present the relationship between cross-task uniform stability and the expected CGG, which reflects how perturbations on historical tasks propagate through training in the CL setting and affect CGG. The result is stated in Theorem 4, and the proof is given in Appendix C-A.
Theorem 4. For any , if is -uniformly stable, then
Theorem 4 indicates that small cross-task uniform stability leads to a small CGG. We then analyze CGG under both convex and non-convex loss functions.
First, we establish an upper bound for the case where the loss function is convex in Theorem 5, and the proof of Theorem 5 is given in Appendix C-B.
Theorem 5. Assume that the loss function satisfies Assumptions 1, 2, and 3. Suppose that SGD is run for N steps on each task with step sizes . Then,
Remark 6. Theorem 5 surprisingly shows that the bound for the CGG coincides with that for the IGG under convex loss functions. This indicates that, under convexity, the algorithmic stability of SGD is preserved throughout the entire sequence of tasks. Even as the model parameters are continuously updated using data from new tasks, the resulting bound on the expected generalization gap on historical tasks does not grow. This conclusion relies on the non-expansive property of convex and smooth loss functions, as established in Lemma 1. Therefore, the discussion of IGG bound in Remark 3 remains valid for CGG as well.
Then, we derive an upper bound for the more challenging non-convex case in Theorem 6, and the proof of Theorem 6 is given in Appendix C-C.
Theorem 6. Assume that the loss function satisfies Assumptions 1 and 2, with and . Suppose that SGD is run for N steps on each task with learning rates for . Then,
(a) under intra-task decaying learning rates :
where
(b) under continuously decaying learning rates and :
where
For i = 1 under the continuously decaying schedule,
Remark 7. Under intra-task decaying learning rates, the displayed CGG bound is nondecreasing in the number of subsequent tasks and is no smaller than the corresponding IGG bound. When , a sufficient condition for the CGG to vanish as is , with fixed. Compared with the sufficient condition for the IGG, this condition imposes a stronger restriction on the training length, reflecting the additional effect of perturbation propagation across subsequent tasks. The negative term in partially offsets the positive term and therefore tightens the bound. Within this branch, the ratio of the magnitude of the negative term to the positive term increases with the number of subsequent tasks when the other parameters are fixed, but remains strictly smaller than . Thus, retaining the negative correction provides a greater relative reduction for tasks followed by more subsequent training. Increasing the sample size or reducing the number of training steps also decreases the displayed upper bound, with the other parameters fixed.
Remark 8. Under continuous decay, the learning rate continues to decrease across task boundaries, whereas intra-task decay resets it to c at the beginning of each task. The corresponding upper bounds on perturbation amplification across subsequent tasks are and , respectively. Continuous decay thus gives a smaller amplification bound that is independent of N. For , the displayed CGG bound under continuous decay is also no larger than that under intra-task decay with the same parameters. All three cases of this bound are bounded above by , which coincides with the first-case expression when . This common upper bound decreases as i increases, with the other parameters fixed, and its independence from N extends the comparison beyond any particular training length. Consequently, for fixed c, , L, T, i with , the CGG bound is uniformly in N and vanishes as without restricting the growth of the training length.
C. Empirical Forgetting
Empirical Forgetting (EF) quantifies the degradation in performance on the training set of a previous task caused by learning subsequent tasks. We denote as the expected change in the empirical risk on task between the completion of task and the completion of task . To characterize the interactions between task and subsequent tasks during training, we define the cumulative gradient alignment (CGA) as
Here, accumulates the expected inner products between the gradients of task i and those of subsequent tasks, weighted by the corresponding learning rates. Positive and negative values indicate cumulative gradient agreement and interference, respectively. We then provide an upper bound on in Theorem 7, and the proof is given in Appendix D.
Theorem 7. Assume that the loss function satisfies Assumptions 1 and 2. Suppose that SGD is run for N steps on each task with learning rates . Then, (a) under constant learning rates :
(b) under intra-task decaying learning rates :
(c) under continuously decaying learning rates :
Remark 9. Theorem 7 bounds empirical forgetting in terms of the cumulative inner products between the old-task and current-task gradients and the squared learning rates. A positive reduces the upper bound, while a negative value increases it. For fixed T, i, c, L, and , the second-order term grows linearly with N under a constant learning rate. Under intra-task decay, it approaches as N increases and thus becomes only weakly dependent on N for large N. Under continuous decay, the term decreases proportionally to 1/N. These results hold for both convex and non-convex losses.
As discussed in Remark 9, a positive reduces the upper bound on empirical forgetting, indicating that positive gradient alignment accumulated over subsequent updates can help preserve performance on task i. This observation motivates the following connection with existing CL methods.
Relation to gradient alignment mechanisms. GEM [35] aims to mitigate negative BWT by projecting the current gradient onto the set of directions having nonnegative inner products with all previous-task memory gradients. Let denote the episodic memory containing samples from task . At step of task , the projected gradient is obtained by solving
The parameters are then updated as . To reduce the computational cost of projection, A-GEM [13] replaces these individual constraints with a single constraint based on a reference gradient estimated from samples drawn from the combined episodic memory. Both methods seek to reduce gradient interference with past data, which is consistent with the role of cumulative gradient alignment captured by in our EF bound.
Observable CGA. To examine the role of gradient alignment in empirical forgetting, we accumulate the learning-rate-weighted inner products between historical evaluation-loss gradients and the actual training gradients. We estimate the historical gradients using measurement buffers sampled from previous tasks and denote the resulting cumulative alignment by . Historical gradients are evaluated using the same loss computation as EF, while current gradients are those used for the training updates. The buffers are used exclusively for measurement. Details are provided in Appendix F.
C
ID
CD

Previous task i
Fig. 1: EF and CGA under different learning-rate schedules on Split CIFAR-100. C, ID, and CD denote constant, intra-task decaying, and continuously decaying learning rates, respectively. Curves show the means over three seeds, and shaded regions indicate one standard deviation.
As shown in Fig. 1, the estimated CGA is large and positive under constant learning rates, particularly for earlier tasks. Under intra-task decay, its magnitude is substantially smaller, although EF and remain visibly separated. Under continuous decay, the two quantities are closer and exhibit similar fluctuations across historical tasks. We also report results on Split MiniImageNet and provide details of the CGA measurements in Appendix F.
D. Forgetting in Expectation
In this section, we summarize the discussions in Sections IV-A, IV-B, and IV-C. Specifically, the forgetting measure can be bounded by the following inequality:
We next provide upper bounds on for convex and non-convex losses in Theorems 8 and 9, respectively.
Theorem 8. Assume that the loss function satisfies Assumptions 1, 2, and 3, with . Suppose that SGD is run for N steps on each task with learning rates . For , the following bounds hold:
(a) under constant learning rates :
(b) under intra-task decaying learning rates :
(c) under continuously decaying learning rates :
Theorem 9. Assume that the loss function satisfies Assumptions 1 and 2, with and . Suppose that SGD is run for N steps on each task with learning rates . Then,
(a) under intra-task decaying learning rates , if , then
(9)
(b) under continuously decaying learning rates :
where
The proofs of Theorems 8 and 9 are given in Appendix E. To obtain explicit bounds on , we evaluate the accumulated contributions of IGG, CGG, and EF across previous tasks. As shown in Equation (8), the upper bound on forgetting can be reduced by controlling , , and across historical tasks . If the IGG and CGG bounds and the magnitude of EF all vanish, then also converges to zero. The strategies for controlling these terms have been discussed in Sections IV-A–IV-C. We summarize the implications of the bounds as follows: (1) Using decaying learning rates or increasing the number of training samples per task can tighten the generalization bounds, with the other parameters held fixed.
(2) Smaller initial learning rates c can reduce the generalization bounds, while their dependence on the local training length N varies across learning-rate schedules.
(3) Positive cumulative alignment between the gradients of previous and subsequent tasks contributes to reducing the EF upper bound through the term .
V. EXPERIMENT
In this section, we present experiments on Split CIFAR-100 to examine the empirical implications of our theoretical analysis. We also conduct experiments on Split MiniImageNet, with the results reported in Appendix F.
A. Experimental Setup
Experimental setting on Split CIFAR-100. We conduct experiments on the widely used CL benchmark Split CIFAR-100 [13]. This benchmark partitions the 100 classes of CIFAR-100 [41] into 10 disjoint tasks, with 10 classes per task. We use AlexNet as the backbone, following the setting of Serra et al. [42]. We train the model with SGD to match our theoretical setting. To verify our theoretical findings, we vary the number of epochs per task in , the initial learning rate in , and the number of samples per task in . To verify how the number of epochs per task affects the metrics, we fix c = 0.1 and use the original training set setting, same as in Split CIFAR-100. To verify how the initial learning rate affects the metrics, we fix the number of epochs per task to 50 and use the same training set setting. To examine the effect of the number of training samples per task, we fix c = 0.1 and use a common budget of N = 3550 updates per task. Each experiment is repeated with random seeds 1, 2, and 3, and the figures report the mean and standard deviation across the three runs.
Observable metric. The definition in Equation (4) relies on the population risk, which is not directly observable. Therefore, we define an observable metric by replacing the population risk in the theoretical metric with the test loss. Specifically, let and denote the training loss and test loss of the model on task i, respectively, after training on task t. We report the absolute generalization gaps and signed empirical and test forgetting as follows. These observed absolute gaps are distinct from the absolute expected gaps controlled by the stability theorems:
In addition to forgetting, we evaluate the model's predictive performance using average accuracy (ACC). Let denote the test accuracy on task i after learning the first t tasks, and let T be the total number of tasks. ACC is defined as
Compute resources. We conduct the experiments on an Intel Xeon Platinum 8160 @ 2.10 GHz system with an NVIDIA RTX A6000 GPU.
B. Experimental Result
Effects of the learning rate and the number of epochs per task. As shown in Fig. 2, the two decaying learning-rate schedules generally yield smaller generalization gaps and less forgetting than the constant schedule. In particular, continuous decay keeps forgetting close to zero across the these settings. Moreover, the smallest initial learning rate and the fewest training epochs generally yield the least forgetting. To examine whether these observations extend to a more challenging benchmark and a different backbone, we also conduct experiments on Split MiniImageNet using ResNet-18. The results, reported in Appendix F, show similar overall trends.
Constant
Intra-task decay
Continuous decay

Initial learning rate c


Epochs per task

Fig. 2: IGG, CGG, EF, , and ACC under different learning rate schedules on Split CIFAR-100. The top row shows results for different initial learning rates c, while the bottom row shows results for different numbers of training epochs per task.
Stability-plasticity dilemma. As shown in Fig. 2, training with a continuously decaying learning rate yields the lowest ACC among the three learning-rate schedules. Moreover, reducing the number of training epochs or the initial learning rate does not necessarily improve ACC, even when it reduces forgetting. These observations reflect the classical stability-plasticity dilemma in CL [43–45], highlighting the difficulty of preserving past knowledge while learning new tasks.
Constant Intra-task decay Continuous decay

Training samples per task
Fig. 3: IGG and CGG with different numbers of training samples per task on Split CIFAR-100.
Effect of the number of training samples per task. As shown in Fig. 3, both IGG and CGG decrease as the number of training samples per task increases, with the number of SGD updates per task held fixed. This trend is consistent with our theoretical bounds, which decrease with the sample size when the other parameters are fixed.
Effect of gradient alignment under different learning rate schedules. We compare original CL, GEM, and A-GEM on Split CIFAR-100 under three learning rate schedules. GEM

Fig. 4: ACC and BWT for original CL, GEM, and A-GEM under different learning-rate schedules on Split CIFAR-100. Higher ACC indicates better predictive performance, while higher BWT indicates less forgetting.
enforces nonnegative inner products between the projected gradient and the memory gradients of previous tasks, whereas A-GEM uses a single constraint based on an aggregate memory gradient. As shown in Fig. 4, GEM achieves the highest ACC and BWT under the constant and intra-task decaying schedules, with larger performance gaps under the constant schedule. Under the continuously decaying schedule, however, all three methods exhibit similarly low ACC despite achieving BWT values close to zero. This pattern is consistent with the stability-plasticity dilemma. Overall, these results suggest that the benefits of gradient alignment depend on the learning rate schedule, in line with our theoretical analysis in Section IV-C, which relates EF to both CGA and learning rates.
VI. Conclusion
In this work, we propose an algorithmic stability based theoretical framework for analyzing catastrophic forgetting under both convex and non-convex loss functions with three learning-rate schedules. Specifically, we derive a fine-grained decomposition of forgetting into IGG, CGG, and EF. We further propose intra-task and cross-task stability to analyze IGG and CGG, and analyze EF through the optimization dynamics. Our theoretical results characterize how local training lengths, initial learning rates, learning-rate schedules, and cumulative gradient alignment affect the forgetting bounds. Finally, we validate our theoretical findings through several empirical studies.
Limitation. The theoretical analysis is carried out under classical assumptions such as L-Lipschitz continuity and -smoothness, which are standard in stability and generalization analyses. However, these assumptions may be restrictive in practice. It would be interesting to relax them and further strengthen our results in future work.
REFERENCES
[1] M. McCloskey and N. J. Cohen, “Catastrophic interference in connectionist networks: The sequential learning problem,” in Psychology of learning and motivation. Elsevier, 1989, vol. 24, pp. 109–165.
[2] J. L. McClelland, B. L. McNaughton, and R. C. O'Reilly, "Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory." Psychological review, vol. 102, no. 3, p. 419, 1995.
[3] Z. Wang, E. Yang, L. Shen, and H. Huang, “A comprehensive survey of forgetting in deep learning beyond continual learning,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.
[4] I. Evron, E. Moroshko, R. Ward, N. Srebro, and D. Soudry, "How catastrophic can catastrophic forgetting be in linear regression?" in Conference on Learning Theory. PMLR, 2022, pp. 4028–4079.
[5] S. Lin, P. Ju, Y. Liang, and N. Shroff, “Theory on forgetting and generalization of continual learning,” in International Conference on Machine Learning. PMLR, 2023, pp. 21078–21100.
[6] M. Ding, K. Ji, D. Wang, and J. Xu, “Understanding forgetting in continual learning with linear regression,” in International Conference on Machine Learning. PMLR, 2024, pp. 10978–11001.
[7] X. Zhao, H. Wang, W. Huang, and W. Lin, “A statistical theory of regularization-based continual learning,” in International Conference on Machine Learning. PMLR, 2024, pp. 61021–61039.
[8] M. Banayeeanzade, M. Soltanolkotabi, and M. Rostami, “Theoretical insights into overparameterized models in multi-task and replay-based continual learning,” Transactions on Machine Learning Research, 2025.
[9] T. Doan, M. A. Bennani, B. Mazoure, G. Rabusseau, and P. Alquier, “A theoretical analysis of catastrophic forgetting through the ntk overlap matrix,” in International Conference on Artificial Intelligence and Statistics. PMLR, 2021, pp. 1072–1080.
[10] R. Karakida and S. Akaho, “Learning curves for continual learning in neural networks: Self-knowledge transfer and
forgetting," in International Conference on Learning Representations, 2022.
[11] G. Zheng, P. Wang, S. Hu, Q. Zheng, and L. Shen, “Understanding the dynamics of forgetting and generalization in continual learning via the neural tangent kernel,” in International Conference on Learning Representations, vol. 2026, 2026, pp. 18488–18525.
[12] H. Taheri, A. Ghosh, and A. Mazumdar, “On the theory of continual learning with gradient descent for neural networks,” in Proceedings of the 43rd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 306. PMLR, 06–11 Jul 2026, pp. 118009–118036.
[13] A. Chaudhry, M. Ranzato, M. Rohrbach, and M. El-hoseiny, “Efficient lifelong learning with a-GEM,” in International Conference on Learning Representations, 2019.
[14] M. Riemer, I. Cases, R. Ajemian, M. Liu, I. Rish, Y. Tu, and G. Tesauro, “Learning to learn without forgetting by maximizing transfer and minimizing interference,” arXiv preprint arXiv:1810.11910, 2018.
[15] P. Buzzega, M. Boschini, A. Porrello, D. Abati, and S. Calderara, “Dark experience for general continual learning: a strong, simple baseline,” Advances in neural information processing systems, vol. 33, pp. 15920–15930, 2020.
[16] M. Farajtabar, N. Azizan, A. Mott, and A. Li, “Orthogonal gradient descent for continual learning,” in International conference on artificial intelligence and statistics. PMLR, 2020, pp. 3762–3773.
[17] G. Saha, I. Garg, and K. Roy, “Gradient projection memory for continual learning,” in International Conference on Learning Representations, 2021.
[18] S. Lin, L. Yang, D. Fan, and J. Zhang, “Trgp: Trust region gradient projection for continual learning,” in The Tenth International Conference on Learning Representations, 2022.
[19] E. Yang, L. Shen, Z. Wang, S. Liu, G. Guo, and X. Wang, "Data augmented flatness-aware gradient projection for continual learning," in Proceedings of the IEEE/CVF international conference on computer vision, 2023, pp. 5630–5639.
[20] E. Yang, L. Shen, Z. Wang, S. Liu, G. Guo, X. Wang, and D. Tao, “Revisiting flatness-aware optimization in continual learning with orthogonal gradient projection,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025.
[21] J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. A. Rusu, K. Milan, J. Quan, T. Ramalho, A. Grabska-Barwinska et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the national academy of sciences, vol. 114, no. 13, pp. 3521–3526, 2017.
[22] F. Zenke, B. Poole, and S. Ganguli, “Continual learning through synaptic intelligence,” in International conference on machine learning. PMLR, 2017, pp. 3987–3995.
[23] Z. Li and D. Hoiem, “Learning without forgetting,” IEEE transactions on pattern analysis and machine intelligence, vol. 40, no. 12, pp. 2935–2947, 2017.
[24] A. A. Rusu, N. C. Rabinowitz, G. Desjardins, H. Soyer, J. Kirkpatrick, K. Kavukcuoglu, R. Pascanu, and R. Hadsell, “Progressive neural networks,” arXiv preprint arXiv:1606.04671, 2016.
[25] J. Yoon, E. Yang, J. Lee, and S. J. Hwang, “Lifelong learning with dynamically expandable networks,” in International Conference on Learning Representations, 2018.
[26] Z. Wang, Z. Zhan, Y. Gong, G. Yuan, W. Niu, T. Jian, B. Ren, S. Ioannidis, Y. Wang, and J. Dy, “Sparcl: Sparse continual learning on the edge,” Advances in Neural Information Processing Systems, vol. 35, pp. 20366–20380, 2022.
[27] G. Zheng, P. Wang, T. Sun, and L. Shen, “Towards understanding memory buffer based continual learning,” Neural Networks, p. 108522, 2025.
[28] J. Deng, Q. Wu, P. Ju, S. Lin, Y. Liang, and N. Shroff, "Unlocking the power of rehearsal in continual learning: A theoretical perspective," in International Conference on Machine Learning. PMLR, 2025, pp. 13277–13326.
[29] H. Li, J. Wu, and V. Braverman, “Fixed design analysis of regularization-based continual learning,” in Conference on lifelong learning agents. PMLR, 2023, pp. 513–533.
[30] —, “Memory-statistics tradeoff in continual learning with structural regularization,” in International Conference on Learning Representations, vol. 2026, 2026, pp. 63493–63534.
[31] G. Karpel, E. Moroshko, R. Levinstein, R. Meir, D. Soudry, and I. Evron, “Optimal 12 regularization in high-dimensional continual linear regression,” arXiv preprint arXiv:2601.13844, 2026.
[32] H. Li, S. Lin, L. Duan, Y. Liang, and N. Shroff, "Theory on mixture-of-experts in continual learning," in The Thirteenth International Conference on Learning Representations, 2025.
[33] M. A. Bennani, T. Doan, and M. Sugiyama, “Generalisation guarantees for continual learning with orthogonal gradient descent,” arXiv preprint arXiv:2006.11942, 2020.
[34] J. Liu, Z. Ji, Y. Yu, J. Cao, Y. Pang, J. Han, and X. Li, "Parameter-efficient fine-tuning for continual learning: A neural tangent kernel perspective," IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.
[35] D. Lopez-Paz and M. Ranzato, “Gradient episodic memory for continual learning,” Advances in neural information processing systems, vol. 30, 2017.
[36] M. Hardt, B. Recht, and Y. Singer, “Train faster, generalize better: Stability of stochastic gradient descent,” in International conference on machine learning. PMLR, 2016, pp. 1225–1234.
[37] P. Wang, L. Shen, Z. Tao, S. He, and D. Tao, “Generalization analysis of stochastic weight averaging with general sampling,” in Proceedings of the 41st International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 235. PMLR, 21–27 Jul 2024, pp. 51442–51464.
[38] J. Chen, H. Chen, B. Gu, G. Liu, Y. Wang, and W. Li, "Error analysis affected by heavy-tailed gradients for non-
convex pairwise stochastic gradient descent," in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 15, 2025, pp. 15803–15811.
[39] Y. Liu, Q. Li, J. Tan, Y. Shi, L. Shen, and X. Cao, “Understanding the stability-based generalization of personalized federated learning,” in The Thirteenth International Conference on Learning Representations, 2025.
[40] M. Zhu, Y. Sun, L. Shen, B. Du, and D. Tao, “Stability and generalization for distributed sgda,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.
[41] A. Krizhevsky, “Learning multiple layers of features from tiny images,” Technical report, University of Tront, 2009.
[42] J. Serra, D. Suris, M. Miron, and A. Karatzoglou, “Overcoming catastrophic forgetting with hard attention to the task,” in International conference on machine learning. PMLR, 2018, pp. 4548–4557.
[43] S. Grossberg, “Adaptive resonance theory: How a brain learns to consciously attend, learn, and recognize a changing world,” Neural Networks, vol. 37, pp. 1–47, 2013.
[44] E. Yang, A. Tang, L. Shen, G. Guo, X. Wang, X. Cao, and J. Zhang, “Continual model merging without data: Dual projections for balancing stability and plasticity,” in Advances in Neural Information Processing Systems, vol. 38, Main Conference. Curran Associates, Inc., 2025, pp. 39275–39305.
[45] G. Zheng, E. Yang, X. Wang, Y. Chen, F. He, Q. Zheng, P. Wang, and L. Shen, “Plasticity activation via polar operator: A plug-in method for balancing stability and plasticity,” in Proceedings of the 43rd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research. PMLR, 06–11 Jul 2026, pp. 163850–163877.

Guodong Zheng is currently a postdoctoral researcher with Sun Yat-sen University, China. He received his Ph.D. degree from Huazhong University of Science and Technology, China. His work appeared in several top-tier ML conferences/journals, including ICML, ICLR, and Neural Networks. His current research interests include optimization, continual learning.

Yan Sun is currently a Postdoctoral Researcher with Nanyang Technological University (NTU). He received the B.E. degree from the University of Science and Technology of China (USTC) and the Ph.D. degree from the University of Sydney. He has published 10+ first-author papers in leading machine learning venues, including NeurIPS, ICML, ICLR, and IEEE TPAMI. His research interests include machine learning, federated and distributed learning, optimization and generalization, and efficient training and adaptation of large-scale foundation models.

Peng Wang is currently a postdoctoral researcher with Sun Yat-sen University, China. He received his Ph.D. degree from Huazhong University of Science and Technology, China. His work appeared in several top-tier ML conferences/journals, including ICML, ICLR, Neural Networks, and Pattern Recognition. His current research interests include the generalization and optimization theories of deep learning.

Enneng Yang is currently a postdoctoral researcher at Sun Yat-sen University, China. He received his Ph.D. degree from the Software College, Northeastern University, China. His work appeared in several top-tier ML & IR conferences/journals, including IEEE TPAMI, IEEE TKDE, JMLR, ICML, NeurIPS, ICLR, ICCV, ACL, WWW, SIGIR, and AAAI. His research interests include machine learning and recommendation systems.

Jiafei Lyu is currently a Senior Researcher at Tencent. He received the bachelor's and Ph.D. degrees from Tsinghua University in 2020 and 2025, respectively. He has published papers in NeurIPS, ICML, ICLR, AAAI, and the Journal of Artificial Intelligence Research. His research interests include RLHF and efficient decision-making with deep Reinforcement Learning.

Xiaochun Cao (Senior Member, IEEE) received the B.E. and M.E. degrees in Computer Science from Beihang University, Beijing, China, in 1999 and 2002, and the Ph.D. degree from the University of Central Florida, USA, in 2006. He worked as a Research Scientist at ObjectVideo Inc. for three years. From 2008 to 2012, he was a Professor at Tianjin University, China. Before joining Sun Yat-sen University, Shenzhen, he was a Professor at the Institute of Information Engineering, Chinese Academy of Sciences. He is currently the Dean and
Professor with the School of Cyber Science and Technology at Sun Yat-sen University, Shenzhen. He has published over 200 papers and received the Piero Zamperoni Best Student Paper Award at ICPR in 2004 and 2010. He serves on the Editorial Boards of IEEE TPAMI and IEEE TIP.

Dacheng Tao (Fellow, IEEE) is currently a Distinguished University Professor with the College of Computing and Data Science, Nanyang Technological University. He mainly applies statistics and mathematics to artificial intelligence and data science. His research is detailed in one monograph and over 200 publications in prestigious journals and conferences, with best paper awards, best student paper awards, and test-of-time awards. His publications have been cited over 112K times. He has an H-index of more than 160 in Google Scholar. He is a Fellow of Australian Academy of Science, AAAS, and ACM. He received the 2015 and 2020 Australian Eureka Prize, the 2018 IEEE ICDM Research Contributions Award, and the 2021 IEEE Computer Society McCluskey Technical Achievement Award.

Li Shen is currently an associate professor at Sun Yat-sen University. Previously, he was a research scientist at JD Explore Academy, Beijing, and a senior researcher at Tencent AI Lab, Shenzhen. He received his bachelor's degree and Ph.D. from the School of Mathematics, South China University of Technology. His research interests include efficient deep learning, efficient reinforcement learning, optimization and deep learning theory. He has served as the senior program committee for AAAI and IJCAI, area chairs for ICML, NeurIPS, ICLR, CVPR, and ACMMM.
He is also the associate editor for IEEE Transactions on Pattern Analysis and Machine Intelligence, IEEE Transactions on Knowledge and Data Engineering, and IEEE Transactions on Multimedia.
APPENDIX A PRELIMINARIES ON ALGORITHMIC STABILITY
In this section, we introduce several preliminaries that will be used in the subsequent proofs. We adopt the notation of Hardt et al. [36].
Definition 4. For a nonnegative step size and a function , we define the gradient update rule as
Definition 5 ( -expansive). An update rule is -expansive if
Definition 6 ( -bounded). An update rule is -bounded if
Lemma 1. Assume that f is -smooth. Then, the following properties hold.
(1). is -expansive.
(2). Assume in addition that is convex. Then, for any , the gradient update is 1-expansive.
(3). Assume in addition that is -strongly convex. Then, for , is -expansive.
APPENDIX B INTRA-TASK GENERALIZATION GAP
A. Proof of Theorem 1
Theorem. If A is -uniformly stable, then
Proof. We first introduce the following notation. Let and be two independent datasets, and let denote the sample obtained from by replacing the k-th example in the dataset from task i with . More explicitly,
(14)
With these notations, we have
where
Under the assumption that A is -uniformly stable, we have
Therefore,
□
B. Proof of Theorem 2
Theorem. Assume that the loss function satisfies Assumptions 1, 2, and 3. Suppose that SGD is run for N steps on each task with step sizes . Then,
Proof. Let and be two datasets consisting of samples from the first i tasks, and assume that they differ in only one example in task i. Consider the update sequences and induced by running SGD on and , respectively. The two runs use the same initialization and sampled indices.
Fix an arbitrary example . By the L-Lipschitz property of , we have
where .
During the -th step of training on task , with probability , SGD selects the same example in both and . In this case, the gradient update operators coincide, namely , and we use the 1-expansivity of , which follows from the convexity and smoothness of . With probability , the selected examples differ. In this case, both and are -bounded.
Combining these two cases yields
Unrolling this recursion over the N steps of task i, we obtain
Under the CL protocol, the initialization of task i is the final model from task i - 1, so and . Therefore,
Since the perturbation occurs only in task i, all previous tasks are identical in and . Hence, , which implies . Therefore,
Substituting this into Equation (16) gives
Finally, plugging this bound into Equation (15), we obtain
This proves the theorem.
C. Proof of Theorem 3
Lemma 2. Assume that and that the loss function is nonnegative and L-Lipschitz for every . Let and be two datasets consisting of samples from the first tasks, differing in only one example in task . Then, for every and every , under the random update rule, we have
The same inequality holds under the random permutation rule when .
Proof. Let and be two datasets consisting of samples from the first i tasks, and assume that they differ in only one example in task i. Consider the update sequences and induced by running SGD on and , respectively, with the same initialization and sampled indices.
Let E denote the event that . Then,
We now bound . Let denote the unique position at which and differ, and let be the first step at which SGD selects the example . If , then the two executions are identical up to step , and thus . Therefore,
Under the random permutation rule, is uniformly distributed over , so, for ,
Under the random selection rule, let be the event that is selected at step . Then
This proves the claim.
Theorem. Assume that the loss function satisfies Assumptions 1 and 2, with and . Suppose that SGD is run for steps on each task with learning rates . Then,
(a) under intra-task decaying learning rates :
(b) under continuously decaying learning rates and :
where
Proof. Let and be two datasets consisting of samples from the first i tasks, and assume that they differ in only one example in task i. Consider the update sequences and induced by running SGD on and , respectively. The two runs use the same initialization and sampled indices.
Based on Lemma 2, we have for every integer under independent uniform sampling with replacement,
We let . The case is immediate, so we take in the calculations below. Next, we consider two types of learning rates.
Integer cutoffs are handled by the following comparison for any nonnegative, nonincreasing function D on :
(17)
Choose m as the number of indices for which to obtain the equality; monotonicity then gives the integral bound. We use this comparison to evaluate the cutoff through a finite integral.
JOURNAL OF ITEX CLASS FILES, VOL. X, NO. X, XXX XXX
15
(a) Under intra-task decaying learning rates , the -th update uses . For ,
Unrolling this recursion from to yields the following bound, where the integral estimate is used for :
(18)
Here, the first inequality after the sum uses . Therefore, we obtain
Differentiating the right-hand side with respect to the real variable gives the stationary point
Applying Equation (17) to the unrolled sum, with , gives
When , splitting the integral at yields
When , the integrand equals 1 throughout , giving . Since is equivalent to , substituting gives part (a).
(b) Under continuously decaying learning rates , the -th update uses . For ,
Unrolling this recursion from to yields
(19)
where we again use to replace the exponent by before taking the integral. Since , this integral is finite also at .
Therefore, we have
(20)
Differentiating the right-hand side with respect to the real variable gives the stationary point
Applying Equation (17) to the unrolled sum, with , gives
When , the second argument of the minimum is at most 1 throughout , and evaluating the integral gives
When , splitting the integral at gives
When , the integrand equals 1 throughout , giving . The conditions and are equivalent to and , respectively. Substituting gives part (b). The formulas agree at both boundaries.
APPENDIX C CROSS-TASK GENERALIZATION GAP
A. Proof of Theorem 4
Theorem. If A is -uniformly stable, then
Proof. We first introduce the following notation. Let and be two independent samples, and let denote the sample obtained from by replacing the k-th example in the dataset from task i with . More explicitly,
(22)
With these notations, we have
where
Under the assumption that A is -uniformly stable, we have
Therefore,
□
B. Proof of Theorem 5
Theorem. Assume that the loss function satisfies Assumptions 1, 2, and 3. Suppose that SGD is run for N steps on each task with step sizes for . Then,
Proof. Let and be two datasets containing T tasks, differing in only one example in task i. Couple the two runs using the same initialization and sampled indices. Consider the update sequences and induced by running SGD on and , respectively.
First, fix an arbitrary example . By the L-Lipschitz continuity of , we have
where . Under the CL framework, the initialization for each task is exactly the final model from the previous task, that is, and for any . Hence, . To bound , we now consider two cases.
(i) When the task index satisfies , the corresponding dataset for task is identical in and . Therefore, holds for any and . This allows us to apply the 1-expansivity of . Under this case, we have
(24)
(ii) During the -th step of training on task , with probability , the example selected by SGD is identical in both and . In this case, the gradient update operators are identical (i.e., ), and we can use the 1-expansivity of due to the convexity and smoothness of . With probability , the selected examples differ. In this scenario, we rely on the property that both and are -bounded.
Combining these two cases, we obtain the following recurrence relation for :
Unraveling this recursion from step N down to step 0 within task i, we get:
Since the data perturbation occurs only in the dataset for task i, the datasets for all prior tasks remain identical. Consequently, for any previous task and any update , the operators . Therefore, we can apply the 1-expansivity property recursively:
Substituting into Equation (25) and combining it with Equation (24), we obtain
Finally, plugging this bound back into Equation (23), we arrive at the stability bound:
C. Proof of Theorem 6
Lemma 3. Assume that the loss function is nonnegative and L-Lipschitz for every , and that . Let and be two datasets consisting of samples from T tasks, differing in only one example in task i. Then, for every and every under the random update rule, we have
The same inequality holds under the random permutation rule for and .
Proof. Let denote the event that , where is the step index within task . Then, we have
The bound on is consistent with Lemma 2.
Theorem. Assume that the loss function satisfies Assumptions 1 and 2, with and . Suppose that SGD is run for steps on each task with learning rates for . Then,
(a) under intra-task decaying learning rates :
where
(b) under continuously decaying learning rates and :
where
For i = 1 under the continuously decaying schedule,
Proof. Let and be two datasets containing T tasks, differing in only one example in task i. Couple the two runs using the same initialization and sampled indices. Consider the update sequences and induced by running SGD on and , respectively.
By Lemma 3, for any integer , we have
Define . We first bound . By construction, for every task , the sampled examples at each step are identical in and . Hence, for all , and we may use the -expansivity of .
Therefore, for any ,
(a) under intra-task decaying learning rates ,
Unrolling this recursion from N down to 0 yields
Under the CL protocol, the initialization of each task is the final model from the previous task, namely and for any . Hence, . Therefore,
For , Equation (18) further gives
Substituting this bound into Equation (26), we have
Differentiating the right-hand side with respect to a positive real cutoff gives the stationary point
For integer SGD steps, apply Equation (17) to the unrolled sum in Equation (18), after using and the future-task factor. The corresponding function is
When , evaluating the finite integral on both sides of yields
This evaluation also covers , since the comparison in Equation (17) permits a zero integer cutoff. When , the integral equals , giving the bound . The condition is equivalent to , which proves part (a). The two expressions coincide at equality. The case follows directly.
(b) under continuously decaying learning rates ,
For any , unrolling this recursion from down to yields
Under the CL protocol, the initialization of each task is the final model from the previous task, namely and for any . Hence, . Therefore,
Based on Equation (19), we can further obtain
Substituting this bound into Equation (26), we have
(27)
Differentiating the right-hand side gives the stationary point of its continuous relaxation:
The integer cutoff is again justified by Equation (17), applied to the finite-sum recursion with
If , choose in Equation (27). This gives
If , evaluating the finite integral at this threshold gives
If , the integral equals , yielding . The conditions and are respectively equivalent to and . These cases establish part (b), and the adjacent formulas agree at both boundaries. For , the local training is the same as in part (a), while the future-task factor is . Substituting this factor into the analysis of part (a) gives the stated two-branch bound for the continuously decaying schedule.
□
APPENDIX D EMPIRICAL FORGETTING
Theorem. Assume that the loss function satisfies Assumptions 1 and 2. Suppose that SGD is run for N steps on each task with learning rates . Then, (a) under constant learning rates :
(b) under intra-task decaying learning rates :
(c) under continuously decaying learning rates :
Proof. We first consider the impact on task i of performing one training step on task , and then accumulate the empirical risk changes to obtain the final bound. Let contain all training datasets, the initialization, and the sampling indices before the current update. Since the current index is sampled independently and uniformly from , we have
The function is -smooth. Applying the smoothness inequality to the SGD update and taking the conditional expectation gives
where the last inequality uses the gradient bound implied by Assumption 1. Taking the full expectation and accumulating from t = 0 to N - 1, we have
Then, summing over the subsequent tasks gives
We next discuss the different learning rates. Under constant learning rates , we have
Under intra-task decaying learning rates , we have
Under continuously decaying learning rates , we have
This completes the proof.
□
APPENDIX E FORGETTING IN EXPECTATION
A. Proof of Theorem 8
Proof. By Equation (4) and Theorems 1 and 4,
We apply the convex stability bounds and the EF bound under each learning-rate schedule.
(a) under constant learning rates :
(b) under intra-task decaying learning rates :
For the continuous schedule, we use the finite harmonic-sum estimate
(29)
This also holds for T = 2, when the integral is zero.
(c) under continuously decaying learning rates :
Here, the generalization terms use for task 1 and the telescoping identity
The last inequality follows from Equation (29). When T = 2, the logarithmic sum is empty, so the same calculation applies. This completes the proof.
B. Proof of Theorem 9
Proof. By Equation (4) and the generalization bounds,
We evaluate these three contributions under each learning-rate schedule.
(a) Under intra-task decaying learning rates , Theorem 7 gives
Under the condition , for every we have
Thus, the interior expressions in Theorems 3 and 6 apply to all historical tasks. The IGG bound is the same for every task, so
For CGG, setting and summing the interior expressions gives
The two geometric sums are
Both denominators are positive since and . Dividing the CGG sum by , adding the IGG and EF contributions, and collecting the common coefficients gives Equation (9). When , each geometric sum contains one term, and the same identities apply.
(b) Under continuously decaying learning rates :
The unrolled CGG recursion in Appendix C-C gives, for every integer ,
The summand is nonnegative and nonincreasing in . Applying Equation (17) and substituting therefore gives, for each ,
The integrand is the same for all tasks. Summing the integrals over their adjacent intervals yields
The two arguments of the minimum are equal at
If , then . Splitting the integral at gives
If , then , so the integrand equals 1 throughout the interval and
For IGG, the same integer-cutoff comparison gives
If , the crossing point is . Splitting the integral at this point gives
If , the integrand equals 1 on , giving . For every , choosing the integer cutoff in Equation (20) gives
For , convexity of implies
Taking and summing over , we obtain
For T = 2, these sums are empty and both sides are zero. Thus, when ,
When , adding the first-task endpoint bound instead gives
Finally, the finite harmonic sum satisfies
Combining this inequality with Theorem 7 gives
The two IGG cases and the two cumulative CGG cases give the four combinations in Equation (10) after division by T - 1 and addition of the EF bound. In particular, when both cutoff points reach their endpoints, their combined contribution is
At , the first-task interior expression equals . At , the cumulative CGG interior expression equals . Thus the expressions agree on each boundary, including their intersection. The empty IGG tail at was handled above, so all stated cases are covered. This completes the proof.
APPENDIX F
EXPERIMENTS ON SPLIT MINIIMAGENET WITH RESNET-18
Experimental setting on Split MiniImageNet. The Split MiniImageNet dataset is constructed by dividing the 100 classes of MiniImageNet into 20 sequential tasks, each containing 5 classes. We use a ResNet-18 backbone, following a similar architecture to that used by Lopez-Paz and
Constant
Intra-task decay
Continuous decay


Initial learning rate c

Average accuracy (%)



Epochs per task


Fig. 5: IGG, CGG, EF, , and ACC under different learning-rate schedules on the Split MiniImageNet benchmark. The top row shows results for different initial learning rates c, while the bottom row shows results for different numbers of training epochs per task.
Ranzato [35]. We vary the number of epochs per task in , the initial learning rate in , and the number of samples per task in . To examine the effect of the number of epochs per task, we fix c = 0.1 and use the original training set setting. To examine the effect of the initial learning rate, we fix the number of epochs per task to 50 with the same training set setting. To examine the effect of the number of training samples per task, we fix c = 0.1 and use a common budget of N = 1600 updates per task across all sample sizes. Each experiment is repeated with random seeds 1, 2, and 3, and the figures report the mean and standard deviation across the three runs.
Measurement of cumulative gradient alignment. For each task, we construct a measurement buffer by uniformly sampling batches without replacement from its fixed training-set evaluation partition. We retain four batches on Split CIFAR-100 and two batches on Split MiniImageNet, with up to 64 samples per batch, giving maximum buffer sizes of 256 and 128 samples per task, respectively. At step t of task , let denote the gradient of the mean training loss on the mini-batch actually used for the current SGD update. For each previous task , we uniformly sample one batch from its buffer to obtain a gradient estimate in evaluation mode using the corresponding task head. Both and the current training gradient are evaluated at the same parameters before the update. We then compute
Each inner product is multiplied by the learning rate used for that update and accumulated over all subsequent updates, without normalization by gradient norms, the number of updates, or the number of tasks. The buffers are used exclusively for measurement. We plot alongside EF for each previous task i, reporting the mean and standard deviation across the three training seeds.
C
ID
CD

Previous task i
Fig. 6: EF and CGA under different learning-rate schedules on Split MiniImageNet. C, ID, and CD denote constant, intra-task decaying, and continuously decaying learning rates, respectively. Curves show the means over three seeds, and shaded regions indicate one standard deviation.
Constant Intra-task decay Continuous decay

Training samples per task
Fig. 7: IGG and CGG with different numbers of training samples per task on Split MiniImageNet.

Fig. 8: ACC and BWT for original CL, GEM, and A-GEM under different learning-rate schedules on Split MiniImageNet. Higher ACC indicates better predictive performance, while higher BWT indicates less forgetting.