Abstract
Continual Learning (CL) methods mainly focus on avoiding catastrophic forgetting and learning representations that are transferable to new tasks. Recently, Wortsman et al. (2020) proposed a CL method, SupSup, which uses a randomly initialized, fixed base network (model) and finds a supermask for each new task that selectively keeps or removes each weight to produce a subnetwork. They prevent forgetting as the network weights are not being updated. Although there is no forgetting, the performance of the supermask is sub-optimal because fixed weights restrict its representational power. Furthermore, there is no accumulation or transfer of knowledge inside the model when new tasks are learned. Hence, we propose ExSSNeT (Exclusive Supermask SubNEtwork Training), which performs exclusive and non-overlapping subnetwork weight training. This avoids conflicting updates to the shared weights by subsequent tasks to improve performance while still preventing forgetting. Furthermore, we propose a novel KNN-based Knowledge Transfer (KKT) module that dynamically initializes a new task's mask based on previous tasks for improving knowledge transfer. We demonstrate that ExSSNeT outperforms SupSup and other strong previous methods on both text classification and vision tasks while preventing forgetting. Moreover, ExSSNeT is particularly advantageous for sparse masks that activate 2-10% of the model parameters, resulting in an average improvement of 8.3% over SupSup. Additionally, ExSSNeT scales to a large number of tasks (100), and our KKT module helps to learn new tasks faster while improving overall performance.
Introduction
In Continual Learning (CL), an AI model learns a sequence of tasks. The primary challenge is Catastrophic Forgetting (CF): as the model learns Task B, it overwrites the parameters used for Task A, causing performance on the earlier task to plummet. Recent "Supermask" approaches, such as SupSup, attempted to solve this by keeping model weights fixed and random, learning only a binary mask (a "supermask") for each task. While this prevents forgetting, it suffers from limited representational power due to fixed weights and a lack of knowledge transfer between tasks.
Methods
ExSSNeT introduces two key innovations to overcome these limitations:
Exclusive Subnetwork Training
Unlike previous methods that keep weights frozen, ExSSNeT trains the weights. To avoid forgetting, it employs an "exclusive" rule: for a new task, the model identifies a subnetwork mask. It then only allows updates to weights that have not been trained by any previous task. If a weight is already "owned" by a previous task, the current task can use it for inference but cannot modify it. This prevents parameter interference while allowing the model to learn more complex patterns than fixed random weights.
KNN-based Knowledge Transfer (KKT)
To enable knowledge transfer, ExSSNeT uses a small sample of the current task's data to find the most relevant previous task using a K-Nearest Neighbors approach on feature embeddings. The model then initializes the new task's mask with the mask of that similar previous task, providing a "warm start" that speeds up convergence and improves performance.
Experimental Results
The authors evaluated ExSSNeT across diverse domains, including NLP (WebNLP, GLUE) and Computer Vision (SplitMNIST, SplitCIFAR100, SplitTinyImageNet).
Performance and Sparsity
ExSSNeT is particularly effective when masks are sparse, activating only 2-10% of parameters. This sparsity leaves more "free" weights for future tasks, allowing the model to scale to 100+ tasks without running out of capacity. In vision tasks with sparse masks, ExSSNeT outperformed the previous state-of-the-art (SupSup) by an average of 8.3%.
Zero Forgetting and Scalability
Due to the exclusive training rule, ExSSNeT achieves a forgetting metric of effectively 0.0. It bridges the performance gap between continual learning and upper-bound methods like multitask learning. Furthermore, the model successfully learned 100 sequential tasks on TinyImageNet while maintaining high accuracy, demonstrating its long-term scalability.
Conclusion
ExSSNeT demonstrates that partitioning weight space for exclusive training provides a "sweet spot" between training flexibility and forgetting prevention. While performance can dip as mask density increases and "free" weights become scarce, the method's efficiency at low densities and its ability to transfer knowledge via KKT make it a robust framework for large-scale continual learning.
Summary updated