Training Networks in Null Space of Feature Covariance for Continual Learning

Shipeng Wang, Xiaorong Li, Jian Sun, Zongben Xu
3/12/2021
cs.LG

Official code: ShipengWang/Adam-NSCL (72 stars, Python, MIT, last commit 2021-07-24).

Abstract

In the setting of continual learning, a network is trained on a sequence of tasks, and suffers from catastrophic forgetting. To balance plasticity and stability of network in continual learning, in this paper, we propose a novel network training algorithm called Adam-NSCL, which sequentially optimizes network parameters in the null space of previous tasks.

Show full abstract

We first propose two mathematical conditions respectively for achieving network stability and plasticity in continual learning. Based on them, the network training for sequential tasks can be simply achieved by projecting the candidate parameter update into the approximate null space of all previous tasks in the network training process, where the candidate parameter update can be generated by Adam. The approximate null space can be derived by applying singular value decomposition to the uncentered covariance matrix of all input features of previous tasks for each linear layer. For efficiency, the uncentered covariance matrix can be incrementally computed after learning each task. We also empirically verify the rationality of the approximate null space at each linear layer. We apply our approach to training networks for continual learning on benchmark datasets of CIFAR-100 and TinyImageNet, and the results suggest that the proposed approach outperforms or matches the state-ot-the-art continual learning approaches.

View on arXivView PDF

Code Implementations(1)

MIT

PyTorch implementation of our Adam-NSCL algorithm from our CVPR2021 (oral) paper "Training Networks in Null Space for Continual Learning"

723Python, ShellMar 4, 20215 years agoMIT
continual-learningincremental-learninglifelong-learning

Similar Papers

Cite this paper

@article{wang2021training,
  title  = {Training Networks in Null Space of Feature Covariance for Continual Learning},
  author = {Shipeng Wang and Xiaorong Li and Jian Sun and Zongben Xu},
  year   = {2021},
  eprint = {2103.07113},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.07113}
}

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

Discussion