TL;DR
This paper introduces a novel Continual Learning (CL) method called Local Model Space Projection (LMSP) that significantly speeds up orthogonal projection-based CL by approximating complex computations with local, low-rank matrices. LMSP achieves competitive performance with existing methods while drastically reducing computational cost, making it more practical for real-world applications.
What Problem Does This Paper Address?
The core challenge in Continual Learning (CL) is "catastrophic forgetting," where a model trained on new tasks loses its ability to perform well on previously learned tasks. While orthogonal projection methods have shown promise in mitigating this by updating models in directions orthogonal to previously learned task spaces, they suffer from high computational complexity, often $\mathcal{O}(n^3)$, due to operations like Singular Value Decomposition (SVD) on large matrices. This makes them impractical for modern, large-scale deep learning models. Existing solutions either require computationally expensive projections or large amounts of past data, creating a need for more efficient CL strategies.
Methods
The proposed Local Model Space Projection (LMSP) approach tackles the computational bottleneck by approximating the global representation matrix of a layer with a set of local, low-rank matrices. This is achieved through a "divide and orthogonalize" principle:
- Local Model Representation: Instead of operating on the entire layer's representation matrix, LMSP breaks it down by defining local low-rank approximations around "anchor points." This significantly reduces the dimensionality of the matrices involved in projections.
- Low-Rank Approximation: The core idea is to approximate the per-layer parameter matrix using local low-rank matrices, reducing the computational complexity from $\mathcal{O}(n^3)$ to $\mathcal{O}(n^2)$.
- Orthogonal Projection with Local Subspaces: The method then performs orthogonal projections onto these local subspaces, rather than the global one. This retains the benefits of orthogonal projection while being computationally much cheaper.
- Task Similarity: LMSP introduces local definitions of task similarity (sufficient projection, positive correlation, and relative orthogonality) to guide the learning process and determine how to best utilize old task knowledge.
- Regimes for Learning: Based on these local task similarities, the paper defines three regimes (forget mitigation, forward knowledge transfer, and backward knowledge transfer) that dictate how the model is updated for a new task, ensuring efficient learning and knowledge retention.
Datasets
The authors evaluated their LMSP method on four public datasets commonly used in CL research:
- Permuted MNIST (PMNIST): A variant of MNIST where input pixels are randomly permuted, divided into 10 tasks.
- CIFAR-100 Split: CIFAR-100 dataset divided into 10 tasks, each with a 10-way classification problem.
- 5-Datasets: A sequence of five datasets: CIFAR-10, MNIST, SVHN, not-MNIST, and Fashion MNIST, each treated as a separate task.
- MiniImageNet: Divided into 20 tasks, each with 5 classes.
Key Insights and Ideas
- Localizing the Problem: The most significant insight is that complex, global orthogonal projections can be effectively approximated by considering local, low-rank structures within the model's representation space. This is a key enabler for efficiency.
- Trade-off Between Rank and Performance: The paper demonstrates that a lower rank (fewer components in the low-rank approximation) can still achieve competitive performance, suggesting that not all information in the original full-rank matrix is critical for CL.
- Anchor Points Matter, But Not Excessively: While the number of anchor points influences performance (more points generally lead to better results), the empirical difference between random anchor point selection strategies is marginal, simplifying implementation.
- Efficiency Without Sacrificing Knowledge Transfer: LMSP successfully balances computational efficiency with both forward and backward knowledge transfer, a critical aspect for effective CL.
Key Results
- Computational Efficiency: LMSP reduces the computational complexity from $\mathcal{O}(n^3)$ to $\mathcal{O}(n^2)$, leading to significant speedups. For instance, LMSP with $r=5$ anchor points reduced the training time of CUBER by 86% on average.
- Competitive Performance: LMSP achieves performance comparable to state-of-the-art baselines in terms of average accuracy (ACC) and backward transfer (BWT) across multiple datasets.
- Improved BWT: LMSP generally shows better backward transfer (BWT) performance than CUBER, attributed to its ability to identify highly correlated local tasks.
- Ablation Studies: Experiments show that increasing the rank generally improves performance, but the gains diminish beyond a certain point. Similarly, more anchor points improve performance but increase computational cost, highlighting a trade-off. The Gaussian kernel was found to be the most effective.
Limitations and Future Work
- Limitations: The paper acknowledges that while LMSP significantly reduces complexity, it still introduces a minor projection error compared to full-rank methods. The theoretical analysis relies on certain assumptions about the loss function (e.g., convexity, smoothness).
- Future Work: The authors suggest extending their efficient CL method to more complex deep learning architectures like transformers and large language models (LLMs). They also aim to explore its application in more general CL settings.
Summary updated