[Paper Review] A Theoretical Analysis of Catastrophic Forgetting through the NTK Overlap Matrix
This paper introduces the NTK overlap matrix as a theoretical measure of task similarity that quantifies catastrophic forgetting in continual learning. It analyzes orthogonal projection methods like OGD and proposes PCA-OGD, which compresses task data into principal components to reduce forgetting, showing improved accuracy on Split MNIST and CIFAR-100 with reduced forgetting errors.
Continual learning (CL) is a setting in which an agent has to learn from an incoming stream of data during its entire lifetime. Although major advances have been made in the field, one recurring problem which remains unsolved is that of Catastrophic Forgetting (CF). While the issue has been extensively studied empirically, little attention has been paid from a theoretical angle. In this paper, we show that the impact of CF increases as two tasks increasingly align. We introduce a measure of task similarity called the NTK overlap matrix which is at the core of CF. We analyze common projected gradient algorithms and demonstrate how they mitigate forgetting. Then, we propose a variant of Orthogonal Gradient Descent (OGD) which leverages structure of the data through Principal Component Analysis (PCA). Experiments support our theoretical findings and show how our method can help reduce CF on classical CL datasets.
Motivation & Objective
- To provide a theoretical framework for catastrophic forgetting in continual learning using the Neural Tangent Kernel (NTK) regime.
- To define a new measure of task similarity—NTK overlap matrix—that quantifies how alignment between tasks increases forgetting.
- To analyze the forgetting mechanisms of orthogonal projection methods like OGD and GEM in the NTK framework.
- To propose PCA-OGD, an enhanced OGD variant that leverages PCA to compress task representations and reduce forgetting.
- To validate the theoretical findings empirically on standard continual learning benchmarks like Split MNIST and CIFAR-100.
Proposed method
- The NTK overlap matrix is derived as a measure of similarity between source and target task gradients in the NTK regime, capturing how alignment increases forgetting.
- The forgetting error for projection-based methods is analytically expressed using the NTK overlap matrix, showing its central role in determining forgetting magnitude.
- Orthogonal Gradient Descent (OGD) is analyzed as a baseline method that projects gradients onto a residual subspace to preserve past task performance.
- PCA-OGD is proposed as an extension of OGD that applies Principal Component Analysis to the memory buffer, retaining only the most informative principal components before gradient projection.
- The method leverages data structure by focusing on dominant directions of variation, reducing the impact of noisy or redundant memory samples.
- Theoretical analysis shows that PCA-OGD maintains similar asymptotic computational complexity to OGD, with only a minor overhead from PCA on small component counts.
Experimental results
Research questions
- RQ1How does task similarity, as measured by the NTK overlap matrix, influence the magnitude of catastrophic forgetting in continual learning?
- RQ2What is the theoretical mechanism by which orthogonal projection methods like OGD reduce forgetting?
- RQ3In what scenarios does PCA-OGD outperform standard OGD in mitigating forgetting?
- RQ4How does the structure of task data—especially its principal component directions—affect the performance of PCA-OGD?
- RQ5Does increasing memory size amplify the advantage of PCA-OGD over OGD in reducing forgetting?
Key findings
- PCA-OGD achieves a final accuracy of 99.67 ± 0.08 on Split MNIST, outperforming OGD (99.64 ± 0.09) and reducing forgetting error.
- On CIFAR-100, PCA-OGD achieves 94.14 ± 0.42 final accuracy, showing lower forgetting compared to OGD (94.41 ± 0.40) in the same setting.
- The NTK overlap matrix is shown to be a critical determinant of forgetting, with higher alignment between tasks increasing forgetting severity.
- In the worst-case scenario with uniformly distributed data, PCA-OGD shows higher forgetting than OGD, confirming its dependence on data structure.
- Increasing memory size improves PCA-OGD’s performance, as evidenced by eigenvalue analysis of the NTK overlap matrix showing better alignment with principal directions.
- The computational complexity of PCA-OGD remains asymptotically equivalent to OGD, as the PCA step on small component counts adds negligible overhead.
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.