Class-Incremental Learning with CLIP: Adaptive Representation Adjustment and Parameter Fusion

Linlan Huang, Xusheng Cao, Haori Lu, Xialei Liu

Introduction

In the rapidly evolving landscape of artificial intelligence, models must continuously learn new concepts without losing previously acquired knowledge. This challenge, known as Class-Incremental Learning (CIL), is often hindered by catastrophic forgetting, where updates for new tasks overwrite the parameters essential for recognizing old ones.

While large-scale pre-trained vision-language models like CLIP offer robust zero-shot capabilities, standard fine-tuning still leads to significant performance degradation on earlier tasks. A key insight of this work is that forgetting is not uniform across all classes; rather, it is driven by semantic similarity. For instance, a model is more likely to confuse a newly learned "box turtle" with a previously known "mud turtle" than with a "black grouse."

Conceptual overview of RAPF: using language priors to adjust image embeddings and fusing parameters in a shared knowledge space.

The RAPF Framework

To address these challenges, the authors introduce RAPF (Adaptive Representation Adjustment and Parameter Fusion). This framework leverages CLIP's dual-modality nature to proactively manage class boundaries and efficiently merge task-specific knowledge.

1. Adaptive Representation Adjustment

RAPF uses CLIP’s text encoder to establish a semantic prior. By calculating the distance between text embeddings of new and old class names, the system identifies "neighboring" categories—those most at risk of being confused. During training, a targeted hinge loss is applied to these specific pairs, forcing the model to maintain distinct visual representations for semantically similar classes. This approach preserves plasticity by only regularizing the most vulnerable boundaries.

2. Decomposed Parameter Fusion

Instead of full-model fine-tuning, RAPF employs a lightweight linear adapter. To integrate new knowledge without overwriting the old, the framework utilizes a novel fusion strategy based on Singular Value Decomposition (SVD). The adapter weights from successive tasks are decomposed into a shared orthonormal basis. A "soft mask" is then generated based on the magnitude of parameter updates, allowing for a surgical merge of task-specific components before reconstructing the final fused weights.

The complete RAPF architecture, illustrating the interaction between the frozen CLIP encoders, the trainable adapter, and the two core modules: Neighboring Categories Separation and Decomposed Parameter Fusion.

Experimental Evaluation

The researchers evaluated RAPF across five major benchmarks, including CIFAR100, ImageNet100, ImageNet-R (robustness), CUB200 (fine-grained), and the full-scale ImageNet1K.

Key Results

  • State-of-the-Art Performance: RAPF consistently outperformed leading methods such as SLCA and ADAM-Adapter. On ImageNet100, it achieved a final accuracy improvement of at least 1.58% over the next best competitor.
  • Exemplar-Free Efficiency: Unlike many CIL approaches that require storing a subset of old images (exemplars), RAPF achieves superior results without any old data, making it ideal for privacy-sensitive applications.
  • Scalability: By freezing the backbone and using a small adapter, RAPF maintains a low parameter count and high training efficiency.

Conclusion

RAPF demonstrates that language can serve as a powerful prior for managing visual representation shifts in incremental learning. By combining targeted semantic regularization with SVD-based parameter fusion, the framework effectively mitigates catastrophic forgetting. Future work will focus on automating the selection of similarity thresholds and further optimizing the parameter fusion process to handle even more complex data distributions.

Summary updated

BibTeX
@inproceedings{huang2024class,
  author = {Linlan Huang and Xusheng Cao and Haori Lu and Xialei Liu},
  title = {{Class-Incremental Learning with CLIP: Adaptive Representation Adjustment and Parameter Fusion}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72949-2\_13},
}
Figure