Supermasks in Superposition

Mitchell Wortsman, Vivek Ramanujan, Rosanne Liu, Aniruddha Kembhavi, Mohammad Rastegari +2 more
6/26/2020
372 citations
cs.LGcs.AIstat.ML

Official code: RAIVNLab/supsup (126 stars, Python, last commit 2023-10-03).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

RAIVNLab/supsupOfficial100%

Code for "Supermasks in Superposition"

12623Python, Jupyter NotebookJun 25, 20203 years ago

Similar Papers

Cite this paper

@article{wortsman2020supermasks,
  title  = {Supermasks in Superposition},
  author = {Mitchell Wortsman and Vivek Ramanujan and Rosanne Liu and Aniruddha Kembhavi and Mohammad Rastegari and Jason Yosinski and Ali Farhadi},
  year   = {2020},
  eprint = {2006.14769},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.14769}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.14769.svg)](https://codeofpaper.com/paper/2006.14769)

Discussion