Abstract
In the setting of continual learning, a network is trained on a sequence of tasks and suffers from catastrophic forgetting. To balance plasticity and stability, we propose Adam-NSCL, an algorithm that sequentially optimizes network parameters in the null space of previous tasks. By projecting parameter updates into the approximate null space derived from the uncentered covariance matrix of input features, we achieve stability for old tasks while maintaining plasticity for new ones. Empirical results on CIFAR-100 and TinyImageNet demonstrate that Adam-NSCL matches or exceeds state-of-the-art performance.
Introduction: The Plasticity-Stability Dilemma
Continual Learning (CL) requires models to learn from a stream of tasks without forgetting previously acquired knowledge. Standard gradient-based optimization often fails here because updates for a new task can drastically alter weight configurations essential for prior tasks—a phenomenon known as catastrophic forgetting.
Existing approaches typically involve replaying old data, which raises privacy and memory concerns, or using regularization techniques that can be overly restrictive. Adam-NSCL addresses this by modifying the optimization process itself, ensuring that learning new tasks occurs in "safe" directions that do not interfere with the past.
Proposed Method: Adam-NSCL
The core innovation of this work is restricting parameter updates to the Null Space of Feature Covariance.
The Stability Condition
The authors establish that if a parameter update $\Delta w$ lies in the null space of the input features of previous tasks, the network's output for those tasks remains unchanged. This provides a mathematical guarantee for stability.
The Adam-NSCL Algorithm
To implement this efficiently, the algorithm maintains an uncentered covariance matrix of features at each layer, updated incrementally as tasks arrive. Since a perfect null space is rare, Singular Value Decomposition (SVD) is used to identify an approximate null space—the subspace corresponding to the smallest singular values.
During training on a new task $\mathcal{T}_t$, the Adam optimizer generates a candidate gradient $\mathbf{g}_{t,s}$. This gradient is projected into the approximate null space of all previous tasks before being applied as the final weight update $\Delta \mathbf{w}_{t,s}$. A hyperparameter $a$ controls the threshold for the approximate null space, allowing for a tunable balance between stability and plasticity.
Experimental Results
The method was evaluated on standard benchmarks including 10-split CIFAR-100, 20-split CIFAR-100, and 25-split TinyImageNet.
- Accuracy: Adam-NSCL achieved 73.77% average accuracy on 10-split CIFAR-100, outperforming EWC (70.77%) and OWM (68.89%). On the more challenging 25-split TinyImageNet, it reached 58.28%, significantly higher than OWM's 49.98%.
- Forgetting: The Backward Transfer (BWT) metric remained low (e.g., -1.6% on CIFAR-100), indicating minimal loss of performance on earlier tasks as new ones were learned.
- Efficiency: Unlike many state-of-the-art methods, Adam-NSCL does not require a memory buffer for replaying old images, making it suitable for privacy-sensitive applications.
Conclusion
Adam-NSCL offers a robust, mathematically grounded solution to catastrophic forgetting by leveraging the null space of feature covariance. While the use of SVD introduces some computational overhead per task, the elimination of data replay and the significant gains in long-term stability make it a compelling approach for real-world continual learning scenarios. Future work may focus on automating hyperparameter selection and scaling the technique to even larger, more complex architectures.
Summary updated