Introduction
Deep learning models are notoriously susceptible to catastrophic forgetting. When trained on a sequence of tasks, they tend to overwrite the weights used for previous tasks to satisfy the current one. Existing "memory-based" solutions, like Gradient Episodic Memory (GEM), attempt to solve this by storing a small subset of data from old tasks and ensuring that new updates do not increase the loss on those stored samples.
However, these methods face two major structural flaws. First, they treat the gradient of an old task as a single, monolithic vector, failing to distinguish between shared knowledge and task-specific features. Second, they concatenate gradients from all layers into one giant "global vector," allowing layers with larger gradient magnitudes to dominate the optimization process and lead to sub-optimal updates for the rest of the network.
Proposed Methodology
The authors introduce a novel approach that addresses these flaws through two primary innovations: Gradient Decomposition and Layerwise Optimization.
Gradient Decomposition
Instead of treating an old task's gradient as a single constraint, the authors split it into two distinct components:
- Shared Gradient ($\bar{g}$): The average gradient across all previous tasks, representing common features useful for generalization.
- Task-Specific Gradient ($\hat{g}_i$): The residual part unique to a specific task.
The optimization objective is to find an update ($w$) that is close to the new task's gradient while staying consistent with the shared gradient (positive inner product) and orthogonal to the task-specific gradients.
Layerwise Optimization
Rather than solving one massive optimization problem for the entire network, the authors perform the decomposition and optimization separately for each layer. This ensures that the specific structural needs and gradient scales of early layers (e.g., convolutional features) are not drowned out by later layers (e.g., fully-connected classifiers).
To prevent the model from becoming "over-constrained" as the number of tasks grows, the authors use PCA Relaxation to identify and protect only the most critical task-specific directions. This acts as a safety valve, allowing the model to continue learning new information without being paralyzed by constraints from previous tasks.
Experimental Results
The method was evaluated on four standard continual learning benchmarks: MNIST Permutation, Split CIFAR-10, Split CIFAR-100, and Split tinyImageNet. The proposed approach consistently outperformed strong baselines like GEM and A-GEM:
- Split CIFAR-100: Achieved 69.3% accuracy in a single-epoch setting, a significant improvement over GEM’s 65.8%.
- Split tinyImageNet: Reached 38.3% accuracy, outperforming GEM (34.2%) and A-GEM (33.5%).
- Backward Transfer (BWT): The method showed much higher BWT scores, indicating it was significantly better at preserving old knowledge compared to previous state-of-the-art methods.
- Efficiency: Unlike the original GEM, which requires solving complex Quadratic Programming (QP) problems, this method offers a closed-form solution, making it more computationally efficient.
Conclusion
By disentangling shared and task-specific knowledge and applying constraints at a layerwise granularity, this method effectively balances the need to learn new tasks with the preservation of old ones. While the approach currently assumes known task identities and relies on a memory buffer, it represents a significant step forward in making deep learning models more robust for lifelong learning scenarios.
Summary updated