[Paper Review] Continual Learning in the Teacher-Student Setup: Impact of Task Similarity
This paper investigates catastrophic forgetting in continual learning using a teacher-student framework with two-layer neural networks, analytically deriving dynamics for generalization error under online SGD. It reveals that intermediate similarity between tasks—particularly in feature and readout weights—leads to maximal forgetting, with non-monotonic forgetting curves and complex interplay between feature and readout similarity.
Continual learning-the ability to learn many tasks in sequence-is critical for artificial learning systems. Yet standard training methods for deep networks often suffer from catastrophic forgetting, where learning new tasks erases knowledge of earlier tasks. While catastrophic forgetting labels the problem, the theoretical reasons for interference between tasks remain unclear. Here, we attempt to narrow this gap between theory and practice by studying continual learning in the teacher-student setup. We extend previous analytical work on two-layer networks in the teacher-student setup to multiple teachers. Using each teacher to represent a different task, we investigate how the relationship between teachers affects the amount of forgetting and transfer exhibited by the student when the task switches. In line with recent work, we find that when tasks depend on similar features, intermediate task similarity leads to greatest forgetting. However, feature similarity is only one way in which tasks may be related. The teacher-student approach allows us to disentangle task similarity at the level of readouts (hidden-to-output weights) and features (input-to-hidden weights). We find a complex interplay between both types of similarity, initial transfer/forgetting rates, maximum transfer/forgetting, and long-term transfer/forgetting. Together, these results help illuminate the diverse factors contributing to catastrophic forgetting.
Motivation & Objective
- To understand the theoretical mechanisms behind catastrophic forgetting in continual learning, especially the role of task similarity.
- To disentangle the effects of feature similarity (input-to-hidden weights) and readout similarity (hidden-to-output weights) on forgetting and transfer.
- To model continual learning as sequential training on two distinct teachers in a two-layer network, using analytical methods to predict generalization error dynamics.
- To quantify how initial, maximum, and long-term forgetting and transfer depend on the interplay between feature and readout similarity.
- To explain counterintuitive empirical findings—such as intermediate similarity causing worst forgetting—through a controlled analytical framework.
Proposed method
- Extends classical teacher-student models to a continual learning setup with two sequential teachers representing distinct tasks.
- Derives a closed-form set of dynamical equations for test error evolution using online SGD in the infinite-width limit, generalizing prior work on standard supervised learning.
- Models task similarity through overlap parameters: α for feature similarity (W† and W‡) and Ṽ for readout similarity (v† and v‡).
- Uses mean-field and ODE approximations to analyze the time evolution of generalization error, forgetting (Fₜ), and transfer (Tₜ).
- Performs numerical simulations with N=10⁴ input dimensions to validate theoretical predictions, comparing ODE and simulation results.
- Empirically tracks feature weight movement post-switch to assess the impact of readout similarity on relearning dynamics.
Experimental results
Research questions
- RQ1How does task similarity, particularly intermediate similarity, affect the magnitude of catastrophic forgetting in continual learning?
- RQ2What is the relative contribution of feature similarity (input-to-hidden weights) versus readout similarity (hidden-to-output weights) to forgetting and transfer?
- RQ3Does the interplay between feature and readout similarity lead to non-monotonic forgetting curves, and if so, why?
- RQ4How does the initial dynamics of forgetting and transfer depend on the overlap between teacher networks?
- RQ5To what extent does readout similarity bias the optimization trajectory during relearning, even when features are identical?
Key findings
- Intermediate task similarity leads to the highest level of catastrophic forgetting, confirming counterintuitive empirical observations.
- Forgetting exhibits a non-monotonic relationship with feature similarity α, peaking at intermediate α values and decreasing for both low and high similarity.
- Readout similarity (Ṽ) significantly influences forgetting dynamics: lower Ṽ leads to greater movement of feature weights post-switch, increasing relearning cost.
- Even with identical features, higher readout similarity results in better transfer due to reduced relearning effort, indicating a bias in SGD dynamics.
- The long-term forgetting curve flattens for high feature similarity, with minimal forgetting observed at extreme overlaps, suggesting stable consolidation.
- Theoretical ODE predictions closely match numerical simulations, validating the analytical framework across different time intervals post-task switch.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.