Overcoming Catastrophic Forgetting via Direction-Constrained Optimization

Yunfei Teng, Anna Choromanska, Murray Campbell, Songtao Lu, Parikshit Ram +1 more
11/25/2020
cs.LGstat.ML

Official code: yunfei-teng/DCO (0 stars, Python, last commit 2022-04-27).

Abstract

This paper studies a new design of the optimization algorithm for training deep learning models with a fixed architecture of the classification network in a continual learning framework. The training data is non-stationary and the non-stationarity is imposed by a sequence of distinct tasks.

Show full abstract

We first analyze a deep model trained on only one learning task in isolation and identify a region in network parameter space, where the model performance is close to the recovered optimum. We provide empirical evidence that this region resembles a cone that expands along the convergence direction. We study the principal directions of the trajectory of the optimizer after convergence and show that traveling along a few top principal directions can quickly bring the parameters outside the cone but this is not the case for the remaining directions. We argue that catastrophic forgetting in a continual learning setting can be alleviated when the parameters are constrained to stay within the intersection of the plausible cones of individual tasks that were so far encountered during training. Based on this observation we present our direction-constrained optimization (DCO) method, where for each task we introduce a linear autoencoder to approximate its corresponding top forbidden principal directions. They are then incorporated into the loss function in the form of a regularization term for the purpose of learning the coming tasks without forgetting. Furthermore, in order to control the memory growth as the number of tasks increases, we propose a memory-efficient version of our algorithm called compressed DCO (DCO-COMP) that allocates a memory of fixed size for storing all autoencoders. We empirically demonstrate that our algorithm performs favorably compared to other state-of-art regularization-based continual learning methods.

View on arXivView PDF

Code Implementations(1)

yunfei-teng/DCOOfficial100%
00Python, ShellJan 11, 20224 years ago

Similar Papers

Cite this paper

@article{teng2020overcoming,
  title  = {Overcoming Catastrophic Forgetting via Direction-Constrained Optimization},
  author = {Yunfei Teng and Anna Choromanska and Murray Campbell and Songtao Lu and Parikshit Ram and Lior Horesh},
  year   = {2020},
  eprint = {2011.12581},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.12581}
}

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

Discussion