Introduction
In Continual Learning (CL), a model is trained on a sequence of tasks one after another. The persistent challenge in this field is catastrophic forgetting—the tendency of a model to completely lose the ability to perform an earlier task (e.g., Task A) after being trained on a new one (e.g., Task B).
While researchers have developed numerous empirical techniques to mitigate forgetting, such as storing old data or regularizing weights, the underlying theoretical understanding remains thin. Existing theoretical analyses often rely on stringent assumptions, like perfectly Gaussian data distributions, or focus exclusively on over-parameterized models where parameters outnumber data points. This paper provides a rigorous, unified theoretical framework to explain catastrophic forgetting across different model sizes and data distributions, analyzing the most common optimization tool: Stochastic Gradient Descent (SGD).
Theoretical Framework and Methodology
The authors analyze a linear regression model trained via multi-step SGD with a constant step size. Unlike previous works that assume zero training error (the "minimum-norm interpolator"), this study investigates the actual dynamics of the weights as they evolve task-by-task.
Key Technical Innovations: * General Moment Conditions: Instead of assuming Gaussian data, the authors utilize a "fourth-moment condition," which more accurately reflects the behavior of real-world data. * Bias-Variance Decomposition: The "forgetting error" is broken down into two components: intrinsic model noise and the error stemming from the starting weights of each new task. * Effective Dimensions: They introduce new "effective dimension" metrics that quantify how the eigenspectrum of the data (the spread and variance of features) interacts with the learning rate and task sequence.
Key Insights: Task Ordering and Optimization
The theoretical framework reveals several critical insights into how and why models forget:
- The "Hard Tasks Last" Penalty: The most striking finding is that task order matters immensely. If you train tasks with larger eigenvalues (meaning the data has high variance in many directions) later in the sequence, the model forgets earlier tasks more aggressively. Intuitively, these "high-variance" tasks force the model to make massive weight updates that overwrite the subtle patterns learned from earlier, "quieter" tasks.
- Step Size as a Shield: An appropriate choice of step size (learning rate) can mitigate forgetting. Smaller step sizes lead to more refined updates, allowing the model to slowly integrate new knowledge without destroying the old.
- The Vanishing Bound: In over-parameterized regimes, the authors demonstrate that it is mathematically possible to achieve a "vanishing forgetting bound" (near-zero forgetting) if the data's eigenspectrum decays rapidly enough.
Experimental Validation
To validate their mathematical proofs, the authors primarily used synthetic datasets, allowing for precise control over the eigenspectrum of the tasks. They created three distinct linear regression tasks where the eigenvalues of the feature space decayed at different rates, testing various task orders (e.g., [1,2,3] vs. [3,2,1]).
Key Results: * Sequence Impact: In simulations, sequences ending with the high-variance task (Task 3) consistently showed the highest average excess risk, strongly substantiating the "Hard Tasks Last" theory. * Dimensionality Trends: In under-parameterized settings, increasing the number of features had little impact on forgetting. However, in over-parameterized settings with a fixed data size, higher dimensionality generally increased forgetting in linear models.
To test if their linear theory holds for non-linear models, they also ran simulations on Deep Neural Networks (DNNs). Interestingly, while DNNs largely followed the linear regression patterns, over-parameterized DNNs did not always exhibit more forgetting with higher dimensionality. This suggests that the complex structure of neural networks might manage high-dimensional data better than simple linear models.
Limitations and Future Directions
While the DNN simulations are promising, the core mathematical proofs remain rooted in linear regression. Extending this level of rigorous analysis to deep, non-linear architectures is a major future challenge. Additionally, the analysis assumes a constant step size. In practice, decaying learning rates or adaptive optimizers like Adam are common and might alter forgetting dynamics. Finally, future work could integrate more complex measures of "task similarity" to explore how related tasks interfere with or assist one another during sequential training.
Summary updated