Sparse Orthogonal Parameters Tuning for Continual Learning

Kun-Peng Ning, Hai-Jian Ke, Yu-Yang Liu, Jia-Yu Yao, Yonghong Tian, Li YuanarXiv 2024 · DOI

Abstract

Continual learning (CL) aims to enable models to learn sequential tasks without catastrophic forgetting. This paper introduces Sparse Orthogonal Parameters TUning (SoTU), a method that leverages high-sparsity random masking of parameter updates (deltas) to achieve task orthogonality. By masking 90% of fine-tuned deltas, SoTU minimizes parameter collisions, allowing multiple task-specific updates to be merged into a single pre-trained backbone. Experiments across diverse benchmarks demonstrate that SoTU consistently outperforms state-of-the-art methods in both accuracy and representation robustness.

Introduction

The goal of Continual Learning is to enable models to learn a sequence of tasks without losing performance on earlier ones. While large Pre-Trained Models (PTMs) like Vision Transformers (ViT) offer a strong foundation, adapting them for CL often involves complex architectures like prompt pools or adapters. SoTU simplifies this by asking: can we update model weights directly without causing interference? The authors hypothesize that by making updates extremely sparse, they naturally become orthogonal in high-dimensional space, preventing "collisions" during weight merging.

The SoTU Framework

The SoTU approach consists of three primary stages:

  1. Fine-Tuning: A Vision Transformer (ViT) is fine-tuned on a specific task to obtain task-specific weights ($\theta_{ft}$).
  2. Delta Masking: The difference between the fine-tuned and original pre-trained weights ($\Delta\theta = \theta_{ft} - \theta_{pre}$) is calculated. A random binary mask (Bernoulli distribution) is applied, typically at a 90% masking rate, retaining only 10% of the learned updates.
  3. Delta Merging: These sparse deltas are added back to the pre-trained backbone. The extreme sparsity ensures that the probability of parameter collisions between different tasks is negligible.
Figure 1: The SoTU pipeline illustrating the Delta Masking and Merging process, alongside the impact of masking rates on accuracy and parameter collision.

To facilitate classification without specialized heads, SoTU employs a Nonlinear Random Projection mechanism, transforming features into a linearly separable space for prototype-based classification.

The Sparsity-Orthogonality Synergy

A key insight of this work is that high sparsity naturally leads to orthogonality. In high-dimensional parameter spaces, sparse vectors for different tasks are highly likely to be perpendicular. This prevents the "catastrophic forgetting" typically seen when dense updates overwrite each other.

Figure 2: Similarity matrices across tasks at different masking rates. As the masking rate increases to 90%, the off-diagonal similarity drops significantly, indicating near-perfect orthogonality.

Empirically, the researchers found that while a 10% masking rate results in nearly 100% parameter collision, increasing the rate to 90% reduces collisions to just 5.5% while maintaining or even improving task accuracy. This aligns with the "Lottery Ticket Hypothesis," suggesting that sparse sub-networks can achieve full-model performance. Furthermore, the authors theoretically proved that these massive random masks preserve the model's attention maps, maintaining the underlying logic of the fine-tuned features.

Experimental Results

SoTU was benchmarked against twelve state-of-the-art methods (e.g., RanPAC, CODA-Prompt) across six datasets, including CIFAR100, ImageNet-R/A, and CUB200.

  • Accuracy Gains: SoTU achieved a +3.7% accuracy improvement over RanPAC on the Cars196 dataset.
  • Domain Robustness: On challenging datasets like ImageNet-A and ImageNet-R, SoTU showed gains of +2.3% and +1.6%, respectively.
  • Representation Quality: When evaluated purely on feature space using Nearest Class Mean (NCM), SoTU outperformed RanPAC by over 14% on ImageNet-R, indicating a significantly more robust internal representation.

Conclusion

SoTU demonstrates that "less is more" in the context of continual learning. By enforcing extreme sparsity through random masking, task updates become orthogonal, allowing for simple and effective model merging. While the method currently requires storing sparse deltas for each task, its simplicity and performance set a new standard for adapting pre-trained models to sequential learning environments.

Summary updated

BibTeX
@misc{ning2024sparse,
  author = {Kun-Peng Ning and Hai-Jian Ke and Yu-Yang Liu and Jia-Yu Yao and Yonghong Tian and Li Yuan},
  title = {{Sparse Orthogonal Parameters Tuning for Continual Learning}},
  year = {2024},
  eprint = {2411.02813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.02813},
}
Figure