ImpressLearn: Continual Learning via Combined Task Impressions

Dhrupad Bhardwaj, Julia Kempe, Artem M Vysogorets, Angela Teng, Evaristus EzekwemICLR 2022

Abstract

This work proposes a new method to sequentially train deep neural networks on multiple tasks without suffering catastrophic forgetting, while endowing it with the capability to quickly adapt to unseen tasks. Starting from existing work on network masking (Wortsman et al., 2020), we show that simply learning a linear combination of a small number of task-specific supermasks (impressions) on a randomly initialized backbone network is sufficient to both retain accuracy on previously learned tasks, as well as achieve high accuracy on unseen tasks. In contrast to previous methods, we do not require to generate dedicated masks or contexts for each new task, instead leveraging transfer learning to keep per-task parameter overhead small. Our work illustrates the power of linearly combining individual impressions, each of which fares poorly in isolation, to achieve performance comparable to a dedicated mask. Moreover, even repeated impressions from the same task (homogeneous masks), when combined, can approach the performance of heterogeneous combinations if sufficiently many impressions are used. Our approach scales more efficiently than existing methods, often requiring orders of magnitude fewer parameters and can function without modification even when task identity is missing. In addition, in the setting where task labels are not given at inference, our algorithm gives an often favorable alternative to the one-shot procedure used by Wortsman et al., 2020. We evaluate our method on a number of well-known image classification datasets and network architectures.

Introduction

Deep neural networks are notoriously susceptible to "catastrophic forgetting," where training on a new task causes the model to lose its ability to perform previously learned ones. Recent solutions like Supermasks in Superposition (SupSup) address this by keeping network weights frozen and learning a unique binary mask for every task. While effective, this approach suffers from a scaling bottleneck: storing a unique mask for thousands of tasks creates significant memory overhead.

ImpressLearn addresses this bottleneck by asking: Can we reuse structural information from a few early tasks to solve an infinite stream of future tasks? Instead of creating a brand-new mask for every task, ImpressLearn learns to linearly combine a small set of "basis-masks" (task impressions), achieving state-of-the-art performance with orders of magnitude less memory.

Methodology

ImpressLearn leverages network masking and transfer learning to maintain efficiency. The process involves three main components:

  1. Fixed Backbone: The model starts with a randomly initialized neural network whose weights remain frozen throughout training.
  2. Basis-Masks (Impressions): For an initial set of "basis-tasks," the model learns dedicated binary masks using the edge-popup algorithm. These masks serve as the fundamental structural "impressions."
  3. Linear Combination: For subsequent tasks, the model does not learn a new mask from scratch. Instead, it optimizes a set of coefficients ($\alpha$) to create a real-valued linear combination of the existing basis-masks.
Conceptual overview of ImpressLearn: linearly combining basis-masks (impressions) to form a task-specific mask.

By storing only a few floating-point coefficients per layer rather than a full binary mask, the memory footprint per task is drastically reduced. The authors also demonstrated that homogeneous masks—multiple impressions generated from the same task using different random seeds—can provide sufficient structural diversity to solve new tasks.

Experimental Evaluation

The researchers evaluated ImpressLearn on several standard benchmarks:

  • RotatedMNIST & PermutedMNIST: Variants of MNIST involving image rotation or pixel shuffling.
  • Split-CIFAR-100: A 20-task split of the CIFAR-100 dataset.
  • Split-ImageNet: A large-scale challenge involving 100 tasks.

A key finding is that a linear combination of masks that perform poorly in isolation can "collaborate" to achieve high accuracy on unseen tasks, suggesting that basis-masks capture fundamental latent features of the network's structural capacity.

Results and Discussion

ImpressLearn achieves significant memory savings without sacrificing accuracy. On RotatedMNIST and PermutedMNIST, it achieved a 67x and 55x reduction in per-task memory compared to SupSup, respectively. As the number of tasks grows, the initial cost of the basis-masks is amortized, making the marginal cost of new tasks negligible.

Furthermore, ImpressLearn excels in scenarios where task identity is not provided at inference (the "Given/Not given" or GN regime). By minimizing output entropy, the model can infer the correct task identity.

Comparison of ImpressLearn against SupSup on Split-ImageNet in the regime where task identity is not given (GN).

As shown above, ImpressLearn (Basis GN) consistently outperforms SupSup variants on Split-ImageNet, maintaining higher accuracy across a long stream of tasks even without explicit task labels.

Conclusion

ImpressLearn provides a scalable and memory-efficient framework for continual learning. While it is particularly effective for long task streams, future work could explore more principled methods for basis selection and faster optimization of coefficients. The ability to reuse structural impressions marks a significant step toward models that can learn indefinitely without the burden of linear parameter growth.

Summary updated

BibTeX
@inproceedings{bhardwaj2022impresslearn,
  author = {Dhrupad Bhardwaj and Julia Kempe and Artem M Vysogorets and Angela Teng and Evaristus Ezekwem},
  title = {{ImpressLearn: Continual Learning via Combined Task Impressions}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=OcvjQ3yqgTG},
}
Figure