Skip to main content
QUICK REVIEW

[Paper Review] Don't Stop Learning: Towards Continual Learning for the CLIP Model

Yuxuan Ding, Lingqiao Liu|arXiv (Cornell University)|Jul 19, 2022
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

This paper proposes VR-LwF, a novel continual learning method for the CLIP model that mitigates catastrophic forgetting during fine-tuning by distilling predictions on randomly generated pseudo-classes. The approach preserves CLIP's zero-shot and image-text matching performance while improving fine-tuning accuracy, outperforming direct adaptations of existing continual learning methods like LwF and RKR in both zero-shot and retrieval benchmarks.

ABSTRACT

The Contrastive Language-Image Pre-training (CLIP) Model is a recently proposed large-scale pre-train model which attracts increasing attention in the computer vision community. Benefiting from its gigantic image-text training set, the CLIP model has learned outstanding capabilities in zero-shot learning and image-text matching. To boost the recognition performance of CLIP on some target visual concepts, it is often desirable to further update the CLIP model by fine-tuning some classes-of-interest on extra training data. This operation, however, raises an important concern: will the update hurt the zero-shot learning or image-text matching capability of the CLIP, i.e., the catastrophic forgetting issue? If yes, could existing continual learning algorithms be adapted to alleviate the risk of catastrophic forgetting? To answer these questions, this work conducts a systemic study on the continual learning issue of the CLIP model. We construct evaluation protocols to measure the impact of fine-tuning updates and explore different ways to upgrade existing continual learning methods to mitigate the forgetting issue of the CLIP model. Our study reveals the particular challenges of CLIP continual learning problem and lays a foundation for further researches. Moreover, we propose a new algorithm, dubbed Learning without Forgetting via Replayed Vocabulary (VR-LwF), which shows exact effectiveness for alleviating the forgetting issue of the CLIP model.

Motivation & Objective

  • To investigate whether fine-tuning CLIP for specific visual categories causes catastrophic forgetting of its zero-shot and image-text matching capabilities.
  • To evaluate the adaptability of existing continual learning algorithms—LwF, GeoDL, IMM, RKR—to the CLIP model's continual learning setting.
  • To design and validate a new continual learning method tailored for CLIP that maintains pre-trained capabilities while enabling effective fine-tuning.
  • To establish a systematic evaluation protocol for continual learning in CLIP, enabling reproducible benchmarking of forgetting and performance gains.

Proposed method

  • VR-LwF employs knowledge distillation by generating random pseudo-sentences (replayed vocabulary) to represent synthetic classes during fine-tuning.
  • The model is trained to maintain consistent prediction logits on these pseudo-classes before and after updating on new data, enforcing stability in the representation space.
  • Distillation is applied on the replayed vocabulary rather than the updated classes, which improves generalization and reduces forgetting.
  • The method is evaluated across multiple continual learning scenarios: OST (one-stream), MST (multi-stream), and COCO/Flickr retrieval tasks.
  • Ablation studies compare random sampling with natural caption replaying and vary sampling length and replay size to assess robustness and efficiency.
  • Evaluation uses standard metrics: UT-Acc (task accuracy), ZS-Acc (zero-shot accuracy), Bwt (backward transfer), TR@1/IR@1 (retrieval performance).

Experimental results

Research questions

  • RQ1Does fine-tuning CLIP on new visual categories lead to catastrophic forgetting of its zero-shot and image-text matching capabilities?
  • RQ2Can existing continual learning methods like LwF, GeoDL, IMM, and RKR be effectively adapted to the CLIP model to reduce forgetting?
  • RQ3How does the choice of distillation target—updated classes versus replayed pseudo-classes—affect performance and forgetting in CLIP?
  • RQ4What is the impact of different replay strategies (random sampling vs. caption replaying) and hyperparameters (sampling length, replay size) on CLIP's continual learning performance?

Key findings

  • CLIP suffers from significant catastrophic forgetting after fine-tuning, with zero-shot accuracy dropping from 62.62% to 39.80% on the original model in multi-session settings.
  • Direct adaptations of existing continual learning methods (e.g., LwF extension) reduce forgetting but sacrifice fine-tuning performance, with UT-Acc at 72.82% and ZS-Acc at 58.75% on OST.
  • VR-LwF achieves 74.41% UT-Acc and 62.03% ZS-Acc on OST, outperforming the LwF extension in both fine-tuning and zero-shot performance.
  • In multi-session settings (MST), VR-LwF-WM achieves 61.13% A-Acc and 68.32% TR@1, demonstrating strong stability and transferability across datasets.
  • Caption replaying performs slightly better than random sampling in OST but worse in MST, suggesting grammar is not a dominant factor in performance.
  • Increasing replay size (Ks) from 50 to 400 improves A-Acc slightly but increases training cost, with diminishing returns beyond Ks=200.

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.