Continual learning with hypernetworks

Johannes von Oswald, Christian Henning, Benjamin F. Grewe, João Sacramento
6/3/2019
cs.LGcs.AIstat.ML

Official code: chrhenning/hypercl (173 stars, Apache-2.0, last commit 2022-04-11).

Abstract

Artificial neural networks suffer from catastrophic forgetting when they are sequentially trained on multiple tasks. To overcome this problem, we present a novel approach based on task-conditioned hypernetworks, i.e., networks that generate the weights of a target model based on task identity. Continual learning (CL) is less difficult for this class of models thanks to a simple key feature: instead of recalling the input-output relations of all previously seen data, task-conditioned hypernetworks only require rehearsing task-specific weight realizations, which can be maintained in memory using a simple regularizer. Besides achieving state-of-the-art performance on standard CL benchmarks, additional experiments on long task sequences reveal that task-conditioned hypernetworks display a very large capacity to retain previous memories. Notably, such long memory lifetimes are achieved in a compressive regime, when the number of trainable hypernetwork weights is comparable or smaller than target network size. We provide insight into the structure of low-dimensional task embedding spaces (the input space of the hypernetwork) and show that task-conditioned hypernetworks demonstrate transfer learning. Finally, forward information transfer is further supported by empirical results on a challenging CL benchmark based on the CIFAR-10/100 image datasets.

View on arXivView PDF

Code Implementations(1)

chrhenning/hyperclOfficial100%
Apache-2.0

Continual Learning with Hypernetworks. A continual learning approach that has the flexibility to learn a dedicated set of parameters, fine-tuned for every task, that doesn't require an increase in the number of trainable weights and is robust against catastrophic forgetting.

17319PythonJun 2, 20194 years agoApache-2.0

Similar Papers

Cite this paper

@article{oswald2019continual,
  title  = {Continual learning with hypernetworks},
  author = {Johannes von Oswald and Christian Henning and Benjamin F. Grewe and João Sacramento},
  year   = {2019},
  eprint = {1906.00695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.00695}
}

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/1906.00695.svg)](https://codeofpaper.com/paper/1906.00695)

Discussion