[Paper Review] Supermasks in Superposition
Supermasks in Superposition (SupSup) enables continual learning of thousands of tasks without catastrophic forgetting by using a fixed, randomly initialized neural network and learning task-specific subnetworks (supermasks). It infers task identity via gradient-based optimization of a linear superposition of supermasks, achieving accurate inference with a single gradient step even across 2500 tasks, while supporting zero-shot task discovery and constant-sized memory via Hopfield network reservoirs.
We present the Supermasks in Superposition (SupSup) model, capable of sequentially learning thousands of tasks without catastrophic forgetting. Our approach uses a randomly initialized, fixed base network and for each task finds a subnetwork (supermask) that achieves good performance. If task identity is given at test time, the correct subnetwork can be retrieved with minimal memory usage. If not provided, SupSup can infer the task using gradient-based optimization to find a linear superposition of learned supermasks which minimizes the output entropy. In practice we find that a single gradient step is often sufficient to identify the correct mask, even among 2500 tasks. We also showcase two promising extensions. First, SupSup models can be trained entirely without task identity information, as they may detect when they are uncertain about new data and allocate an additional supermask for the new training distribution. Finally the entire, growing set of supermasks can be stored in a constant-sized reservoir by implicitly storing them as attractors in a fixed-sized Hopfield network.
Motivation & Objective
- To address catastrophic forgetting in continual learning by leveraging untrained, randomly weighted subnetworks.
- To enable accurate task inference without task identity at test time using gradient-based optimization of supermask combinations.
- To scale continual learning to thousands of tasks with minimal memory overhead.
- To support zero-shot discovery of new tasks without prior identity supervision.
- To store growing sets of supermasks efficiently using a fixed-size Hopfield network reservoir.
Proposed method
- Uses a fixed, randomly initialized base neural network and learns a unique binary supermask for each task to form a subnetwork.
- Infers task identity at test time by optimizing a convex combination of learned supermasks to minimize output entropy.
- Employs a single gradient step to identify the correct task among up to 2500 permutations of MNIST.
- Introduces a mechanism to detect uncertainty and allocate new supermasks for unseen task distributions without task identity during training.
- Implements a Hopfield network reservoir to implicitly store supermasks in constant memory, treating them as attractors.
- Uses a three-letter taxonomy (e.g., GG, GN, NNs) to systematically evaluate continual learning scenarios with varying task identity availability.
Experimental results
Research questions
- RQ1Can a fixed, randomly initialized network support learning thousands of tasks without catastrophic forgetting?
- RQ2Can task identity be accurately inferred at test time without explicit supervision, using only gradient-based optimization of supermask combinations?
- RQ3Can SupSup detect and adapt to new, unseen task distributions without prior task identity information?
- RQ4Can the entire set of learned supermasks be stored in constant memory using a Hopfield network reservoir?
- RQ5How does supermask sparsity and network overparameterization affect inference accuracy and robustness?
Key findings
- SupSup achieves state-of-the-art performance on SplitImageNet with lower storage and training time than recent baselines in the GG scenario.
- In the GN scenario, SupSup maintains high accuracy across 2500 permutations of MNIST with no forgetting, using only a single gradient step for task inference.
- SupSup successfully discovers new tasks in the NNs scenario by detecting uncertainty and allocating new supermasks autonomously.
- The method achieves accurate task inference even with superfluous neurons, which improve robustness to distributional shifts.
- The Hopfield network reservoir enables implicit storage of all supermasks in a fixed-size memory, preserving full model capacity.
- Empirical results show that output entropy minimization via gradient optimization reliably identifies the correct supermask, even in high-dimensional task spaces.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.