Gradient Projection For Parameter-Efficient Continual Learning

Jingyang Qiao, Zhizhong Zhang, Xin Tan, Yanyun Qu, Wensheng Zhang, Yuan XiearXiv 2024 · DOI

Introduction

Large-scale pre-trained models, such as Vision Transformers (ViT) and CLIP, have become the backbone of modern computer vision. Adapting these models to new tasks typically involves Parameter-Efficient Tuning (PET) methods like LoRA, Adapters, or Prompt-tuning. While these methods are memory-efficient, they frequently suffer from catastrophic forgetting, where learning new information degrades performance on previously mastered tasks. This paper introduces Parameter Efficient Gradient Projection (PEGP), a unified framework that prevents forgetting by ensuring weight updates remain orthogonal to the feature spaces of prior tasks.

Methodology: The PEGP Framework

PEGP bridges the gap between traditional Gradient Projection (GP) theory and modern PET paradigms through three key pillars:

1. Unified Anti-Forgetting Equation

The authors provide a mathematical proof that despite their architectural differences, Prompt-tuning, Prefix-tuning, Adapters, and LoRA all share a common objective for stability. Specifically, if a gradient update ($\Delta E$) satisfies the condition $x_t \Delta E = 0$ (where $x_t$ is the input from a previous task), the model's output for that task remains unchanged.

2. Orthogonal Gradient Projection

To satisfy this equation, PEGP samples the feature space of a task after training and uses Singular Value Decomposition (SVD) to identify the subspace spanned by these features. During subsequent training, gradients are projected into a direction orthogonal to this subspace, preventing interference with old knowledge.

The PEGP framework unifies diverse PET methods under a single anti-forgetting mathematical objective and uses SVD-based gradient projection to preserve prior knowledge.

3. Efficient Subspace Merging

To maintain efficiency, the method uses a cosine similarity-based selection process to merge similar feature vectors, ensuring the projection matrix remains compact even as the number of tasks grows.

Experimental Evaluation

The researchers evaluated PEGP across standard incremental learning benchmarks (CIFAR-100, ImageNet-R) and domain adaptation tasks (DomainNet). They also introduced the Bird Image Text Matching (BITM) benchmark to test cross-modality continual learning.

Radar charts illustrating the performance of PEGP (Ours) compared to Baseline and LAE across various datasets. PEGP consistently achieves higher accuracy (ACC) and lower forgetting (FOR).

Key Results and Insights

  • Superior Accuracy: PEGP achieved state-of-the-art results, outperforming the previous leading method (LAE) by +0.33% on 10-Split-CIFAR100 and up to +1.40% on ImageNet100 when using a CLIP backbone.
  • Stability vs. Plasticity: By adjusting a hyperparameter $\epsilon$ to control the orthogonal subspace size, PEGP finds an optimal balance between preserving old knowledge and learning new tasks.
  • Zero-Shot Preservation: Unlike standard fine-tuning, PEGP allows models like CLIP to retain their original zero-shot generalization capabilities even after sequential training rounds.
  • Mitigating Hallucinations: In multi-modal tasks, PEGP significantly reduces "hallucinations" by locking the feature representations of old categories, preventing the model from confusing new attributes with old ones.

Conclusion

PEGP offers a robust, theoretically grounded solution for the catastrophic forgetting problem in large-scale foundation models. By unifying PET methods under a single gradient projection framework, it enables efficient and effective continual learning. Future research will focus on extending this framework to Large Language Models (LLMs) and generative AI applications.

Summary updated

BibTeX
@misc{qiao2024gradient,
  author = {Jingyang Qiao and Zhizhong Zhang and Xin Tan and Yanyun Qu and Wensheng Zhang and Yuan Xie},
  title = {{Gradient Projection For Parameter-Efficient Continual Learning}},
  year = {2024},
  eprint = {2405.13383},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13383},
}
Figure