NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Continual Learning with Scaled Gradient Projection

Gobinda Saha, Kaushik Roy

Abstract

Continual learning (CL) aims to enable neural networks to learn a sequence of tasks without forgetting previous knowledge. While Gradient Projection (GP) methods effectively mitigate catastrophic forgetting by restricting updates to the null space of past tasks, they often suffer from reduced plasticity, hindering the learning of new tasks. This paper presents Scaled Gradient Projection (SGP), a method that relaxes these rigid constraints. By utilizing Singular Value Decomposition (SVD) to identify and scale gradient updates according to the importance of past task directions, SGP achieves a superior balance between stability and plasticity. Experimental results across image classification and reinforcement learning benchmarks demonstrate that SGP outperforms state-of-the-art baselines with minimal computational overhead.

1. Introduction

Artificial Intelligence systems frequently encounter the challenge of "Catastrophic Forgetting"—the tendency of neural networks to overwrite weights essential for previous tasks when learning new information. To address this, Gradient Projection (GP) methods were developed to ensure that weight updates occur only in directions orthogonal to the gradient space of previous tasks. While this approach preserves stability, it imposes a strict "binary" constraint that limits the model's ability to adapt to new, complex tasks (plasticity).

Scaled Gradient Projection (SGP) addresses this limitation by moving away from binary orthogonal updates. Instead, it introduces a nuanced, importance-based scaling system that allows for controlled updates within the gradient space of prior tasks, thereby enhancing the model's capacity for learning without sacrificing memory.

2. Methodology

The SGP framework consists of three primary components: identifying the core gradient space, assigning importance weights, and performing scaled projections.

2.1 Identifying the Core Gradient Space (CGS)

Upon completing a task, SGP performs Singular Value Decomposition (SVD) on the input activations of each layer. This process identifies the "bases" or directions that were most significant for the task's performance.

2.2 Importance Weighting and Scaled Projection

Unlike traditional GP methods that treat all identified bases as equally critical, SGP utilizes the singular values from the SVD to assign a relative importance ($\lambda$) to each basis. Directions associated with higher singular values are considered more vital to the task.

During the learning of a subsequent task, the gradient is decomposed into two components: one orthogonal to the previous tasks and one aligned with them. SGP maintains the orthogonal component while scaling the aligned component based on the stored importance values. If a direction is highly important, the update is minimal; if it is less critical, the model is allowed to "nudge" the weights more freely to accommodate new learning.

2.3 Adam-GP Optimizer

Standard adaptive optimizers like Adam can inadvertently violate gradient projection constraints. To ensure compatibility, the authors introduced "Adam-GP," which applies the projection after the optimizer calculates its internal moments. This modification allows SGP to be effectively utilized in modern reinforcement learning settings.

3. Experimental Evaluation

The researchers evaluated SGP against several state-of-the-art baselines, including GPM, TRGP, and EWC, across diverse benchmarks.

3.1 Image Classification

On the Split CIFAR-100 benchmark (10 tasks), SGP achieved an average accuracy of 76.05%, significantly outperforming the 72.48% achieved by the standard Gradient Projection Memory (GPM). Similar performance gains were observed on CIFAR-100 Superclass and Split miniImageNet. Crucially, SGP maintained a "Backward Transfer" (forgetting) rate of -0.01, indicating near-zero loss of previous knowledge.

3.2 Reinforcement Learning

In a sequential Atari suite involving six games (e.g., Kung Fu Master, Boxing, Space Invaders), SGP demonstrated superior adaptability. It accumulated 12% more rewards than GPM and 36% more than BLIP, proving its efficacy in dynamic, long-sequence environments.

4. Discussion

SGP's success stems from its recognition of the non-uniformity of importance within a task's gradient space. By relaxing constraints in less sensitive directions, the model achieves better "Forward Transfer," where knowledge from earlier tasks assists in learning new ones.

From a computational perspective, SGP is highly efficient. It is a "one-shot" method, with SVD calculations performed only once at the end of each task. This results in only a 17% increase in training time compared to basic projection methods, whereas iterative competitors like FS-DGPM can take up to 10 times longer to train.

5. Conclusion and Future Work

Scaled Gradient Projection offers a robust solution to the stability-plasticity dilemma in continual learning. By intelligently scaling updates rather than strictly forbidding them, SGP improves accuracy and generalization across both supervised and reinforcement learning tasks. While the method requires hyperparameter tuning for the scale coefficient ($\alpha$) and storage for basis matrices, its efficiency makes it a viable candidate for lifelong learning systems. Future work may explore automated tuning and architecture expansion to further enhance capacity.

Summary updated

BibTeX
@inproceedings{saha2023continual,
  author = {Gobinda Saha and Kaushik Roy},
  title = {{Continual Learning with Scaled Gradient Projection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26157},
}
Figure