Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Preventing Zero-Shot Transfer Degradation in Continual Learning of Vision-Language Models

About

Continual learning (CL) can help pre-trained vision-language models efficiently adapt to new or under-trained data distributions without re-training. Nevertheless, during the continual training of the Contrastive Language-Image Pre-training (CLIP) model, we observe that the model's zero-shot transfer ability significantly degrades due to catastrophic forgetting. Existing CL methods can mitigate forgetting by replaying previous data. However, since the CLIP dataset is private, replay methods cannot access the pre-training dataset. In addition, replaying data of previously learned downstream tasks can enhance their performance but comes at the cost of sacrificing zero-shot performance. To address this challenge, we propose a novel method ZSCL to prevent zero-shot transfer degradation in the continual learning of vision-language models in both feature and parameter space. In the feature space, a reference dataset is introduced for distillation between the current and initial models. The reference dataset should have semantic diversity but no need to be labeled, seen in pre-training, or matched image-text pairs. In parameter space, we prevent a large parameter shift by averaging weights during the training. We propose a more challenging Multi-domain Task Incremental Learning (MTIL) benchmark to evaluate different methods, where tasks are from various domains instead of class-separated in a single dataset. Our method outperforms other methods in the traditional class-incremental learning setting and the MTIL by 9.7% average score. Our code locates at https://github.com/Thunderbeee/ZSCL.

Zangwei Zheng, Mingyuan Ma, Kai Wang, Ziheng Qin, Xiangyu Yue, Yang You• 2023

Related benchmarks

TaskDatasetResultRank
Few-shot Image ClassificationDTD
Accuracy55.7
42
Incremental LearningCIFAR100 10 steps
Final Step Performance73.65
39
Incremental LearningCIFAR100 50 steps
Last Accuracy67.36
36
Few-shot Image ClassificationSUN397
Accuracy70.4
36
Class-incremental learningCIFAR100 20 steps (test)
Last Accuracy69.58
33
Image ClassificationStanford Cars few-shot
Score (%)66.7
32
Image ClassificationFlowers few-shot
Score (%)82.1
32
Multi-Task Incremental LearningMTIL Aircraft, Caltech101, CIFAR100, DTD, EuroSAT, Flowers, Food, MNIST, OxfordPet, Cars, SUN397
Caltech101 Accuracy92.2
32
Image ClassificationEuroSAT few-shot
Accuracy60.2
32
Image ClassificationCaltech101 few-shot
Accuracy88.6
32
Showing 10 of 50 rows

Other info

Follow for update