Introduction
The primary challenge in Continual Learning (CL) is the stability-plasticity dilemma: a model must remain plastic enough to integrate new information while staying stable enough to prevent the overwriting of previously acquired knowledge, a phenomenon known as catastrophic forgetting. While recent methods like Gradient Projection Memory (GPM) have made strides by protecting task-level subspaces, they often fail to capture the nuances of individual classes within those tasks.
The Problem: Class Deviation
Existing orthogonal projection methods typically identify a "gradient subspace" at the task level. However, this approach can be overly broad. If a single task contains highly diverse classes (e.g., "Man" vs. "Sea"), a task-level subspace calculation might miss subtle, class-specific features.
As shown in Figure 1, this leads to class deviation. When the model learns subsequent tasks, these "missed" class-specific features are accidentally overwritten. Consequently, while task-level performance might appear stable, the model suffers from forgetting at the granular class level.
Proposed Method: Class Gradient Projection (CGP)
To address these limitations, we propose Class Gradient Projection (CGP). This framework shifts the granularity of protection from the task level to the individual class level through three integrated components.
1. Class-Level Subspace Construction
Instead of performing Singular Value Decomposition (SVD) on the aggregate representations of a task, CGP calculates a unique gradient subspace for every individual class. This ensures that the distinct features required to identify each specific concept are explicitly protected during future updates.
2. Base Refining (BR) Algorithm
Protecting every class individually could lead to a linear explosion in memory requirements for storing bases. To mitigate this, the Base Refining algorithm utilizes inter-class similarity estimation. When two classes are semantically related (e.g., "Boy" and "Girl"), the algorithm merges their representations to refine a shared set of bases. This allows the model to "recycle" knowledge and maintain a manageable memory footprint without sacrificing discriminative power.
3. Supervised Contrastive Learning (Con)
As the model learns more tasks, the available "null space" for gradient updates shrinks. To help the optimizer find effective features within these increasingly narrow constraints, we incorporate a supervised contrastive loss. By pulling positive samples together and pushing negative samples apart, the model is encouraged to learn more robust and discriminative representations in the remaining parameter space.
Experimental Results
We evaluated CGP against several standard benchmarks, including Split CIFAR-100 and a 5-Dataset sequence (CIFAR-10, MNIST, SVHN, notMNIST, and Fashion MNIST).
- Performance: On the 10-Split CIFAR-100 benchmark, CGP achieved an average accuracy of 74.26%, a significant 2.0% improvement over the GPM baseline (72.25%).
- Efficiency: In the CIFAR-100 Superclass experiment, CGP outperformed expansion-based methods like APD by 0.72% while requiring 30% fewer parameters, proving that architectural growth is not always necessary for stability.
- Ablation Studies: Removing either the Base Refining or the Contrastive components resulted in notable performance declines, confirming that the synergy between class-level protection and feature-space optimization is essential for state-of-the-art results.
Conclusion and Future Work
Class Gradient Projection demonstrates that granularity is key to solving catastrophic forgetting. By protecting features at the class level and refining those protections through semantic similarity, CGP achieves a superior balance of stability and plasticity. Future research will focus on reducing the memory overhead of storing subspace bases for thousands of classes and automating the selection of SVD and similarity thresholds.
Summary updated