Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Overcoming catastrophic forgetting with hard attention to the task

About

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.

Joan Serr\`a, D\'idac Sur\'is, Marius Miron, Alexandros Karatzoglou• 2018

Related benchmarks

TaskDatasetResultRank
Image ClassificationMNIST (test)
Accuracy99.4
882
Image ClassificationCIFAR-100--
622
Image ClassificationFashion MNIST (test)
Accuracy91.9
568
Image ClassificationCIFAR-10
Accuracy96.4
471
Image ClassificationMNIST
Accuracy99.7
395
Image ClassificationSVHN (test)
Accuracy93.8
362
Image ClassificationSVHN
Accuracy96.4
359
ClassificationCars
Accuracy73.22
314
Image ClassificationCUB
Accuracy79.67
249
Image ClassificationCIFAR100 (test)
Test Accuracy49.1
147
Showing 10 of 63 rows

Other info

Code

Follow for update