Skip to main content
QUICK REVIEW

[Paper Review] Gradient Projection Memory for Continual Learning

Gobinda Saha, Garg, Isha|arXiv (Cornell University)|Mar 17, 2021
Domain Adaptation and Few-Shot LearningComputer Science33 references27 citations
TL;DR

A fixed-capacity neural network approach that preserves past task knowledge by learning new tasks in the orthogonal gradient directions to a learned Core Gradient Space, stored as Gradient Projection Memory (GPM).

ABSTRACT

The ability to learn continually without forgetting the past tasks is a desired attribute for artificial learning systems. Existing approaches to enable such learning in artificial neural networks usually rely on network growth, importance based weight update or replay of old data from the memory. In contrast, we propose a novel approach where a neural network learns new tasks by taking gradient steps in the orthogonal direction to the gradient subspaces deemed important for the past tasks. We find the bases of these subspaces by analyzing network representations (activations) after learning each task with Singular Value Decomposition (SVD) in a single shot manner and store them in the memory as Gradient Projection Memory (GPM). With qualitative and quantitative analyses, we show that such orthogonal gradient descent induces minimum to no interference with the past tasks, thereby mitigates forgetting. We evaluate our algorithm on diverse image classification datasets with short and long sequences of tasks and report better or on-par performance compared to the state-of-the-art approaches.

Motivation & Objective

  • Address catastrophic forgetting in continual learning without storing past data or growing the network.
  • Identify core gradient subspaces from past tasks using representations and SVD.
  • Store compact gradient bases in GPM and constrain future gradient updates to be orthogonal to past subspaces.
  • Demonstrate memory efficiency and scalability across diverse datasets and architectures.

Proposed method

  • After the first task, build Core Gradient Space (CGS) per layer from activations via SVD on random samples of the task and store the CGS bases in GPM.
  • For subsequent tasks, project new task gradients onto the CGS and subtract those components so updates proceed in the Residual Gradient Space (RGS) orthogonal to past cores.
  • Update GPM with new orthogonal CGS bases while removing common directions from new task representations to keep CGS compact.
  • Learn tasks with gradient steps orthogonal to CGS, thus minimizing interference with previously learned tasks.
  • Use a fixed network capacity; CGS per layer grows during sequential learning but is bounded by the architecture.
  • Evaluate across datasets (PMNIST, CIFAR-100, miniImageNet, 5-Datasets) using single-head and multi-head settings.

Experimental results

Research questions

  • RQ1Can gradient updates for new tasks be constrained to be orthogonal to past task gradients to prevent forgetting in fixed-capacity networks?
  • RQ2How can one efficiently identify and store the essential gradient subspaces (CGS) from past tasks without storing raw data or past gradients?
  • RQ3Does GPM enable scalable continual learning across varying architectures and long task sequences while preserving data privacy?

Key findings

  • GPM achieves best average accuracy on PMNIST (93.91% ±0.16) in single-head setting and shows minimal forgetting (BWT −0.03).
  • On split CIFAR-100, GPM outperforms memory-based baselines and attains zero forgetting (BWT = 0.0) with 45% less memory.
  • On split miniImageNet (ResNet18), GPM attains 60.41% accuracy with 0.0 BWT, and outperforms several baselines while avoiding forgetting.
  • Across 5-Datasets, GPM achieves 91.22% ±0.20% accuracy with BWT ≈ −0.01, matching strong baselines while using substantial memory savings.
  • Compared to methods requiring data replay or gradient storage, GPM uses precomputed gradient bases to enable faster per-epoch training and lower memory usage (e.g., ~69% of GPM_Max in PMNIST).
  • GPM demonstrates scalability to deeper networks and longer task sequences with competitive or superior performance and reduced memory footprint.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.