TRGP: Trust Region Gradient Projection for Continual Learning

Sen Lin, Li Yang, Deliang Fan, Junshan Zhang
2/7/2022
cs.LG

Official code: LYang-666/TRGP (22 stars, Python, MIT, last commit 2022-10-05).

Abstract

Catastrophic forgetting is one of the major challenges in continual learning. To address this issue, some existing methods put restrictive constraints on the optimization space of the new task for minimizing the interference to old tasks.

Show full abstract

However, this may lead to unsatisfactory performance for the new task, especially when the new task is strongly correlated with old tasks. To tackle this challenge, we propose Trust Region Gradient Projection (TRGP) for continual learning to facilitate the forward knowledge transfer based on an efficient characterization of task correlation. Particularly, we introduce a notion of `trust region' to select the most related old tasks for the new task in a layer-wise and single-shot manner, using the norm of gradient projection onto the subspace spanned by task inputs. Then, a scaled weight projection is proposed to cleverly reuse the frozen weights of the selected old tasks in the trust region through a layer-wise scaling matrix. By jointly optimizing the scaling matrices and the model, where the model is updated along the directions orthogonal to the subspaces of old tasks, TRGP can effectively prompt knowledge transfer without forgetting. Extensive experiments show that our approach achieves significant improvement over related state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

LYang-666/TRGPOfficial100%
MIT

[ICLR 2022] Official Code Repository for "TRGP: TRUST REGION GRADIENT PROJECTION FOR CONTINUAL LEARNING"

222Python, ShellMay 1, 20224 years agoMIT

Similar Papers

Cite this paper

@article{lin2022trgp,
  title  = {TRGP: Trust Region Gradient Projection for Continual Learning},
  author = {Sen Lin and Li Yang and Deliang Fan and Junshan Zhang},
  year   = {2022},
  eprint = {2202.02931},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.02931}
}

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

Discussion