Overcoming catastrophic forgetting with hard attention to the task

Joan Serrà, Dídac Surís, Marius Miron, Alexandros Karatzoglou
1/4/2018
cs.LGcs.AIcs.NE

Official code: joansj/hat (223 stars, MIT, last commit 2019-01-23).

Abstract

Catastrophic forgetting occurs when a neural network loses the information learned in a previous task after training on subsequent tasks. This problem remains a hurdle for artificial intelligence systems with sequential learning capabilities. In this paper, we propose a task-based hard attention mechanism that preserves previous tasks' information without affecting the current task's learning. A hard attention mask is learned concurrently to every task, through stochastic gradient descent, and previous masks are exploited to condition such learning. We show that the proposed mechanism is effective for reducing catastrophic forgetting, cutting current rates by 45 to 80%. We also show that it is robust to different hyperparameter choices, and that it offers a number of monitoring capabilities. The approach features the possibility to control both the stability and compactness of the learned knowledge, which we believe makes it also attractive for online learning or network compression applications.

View on arXivView PDF

Code Implementations(1)

joansj/hatOfficial100%
MIT

Overcoming catastrophic forgetting with hard attention to the task

22355Shell, PythonApr 9, 20187 years agoMIT

Cite this paper

@article{serr2018overcoming,
  title  = {Overcoming catastrophic forgetting with hard attention to the task},
  author = {Joan Serrà and Dídac Surís and Marius Miron and Alexandros Karatzoglou},
  year   = {2018},
  eprint = {1801.01423},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.01423}
}

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

Discussion