Synthetic Data is an Elegant GIFT for Continual Vision-Language Models
Bin Wu, Wuxuan Shi, Jinqiao Wang, Mang Ye
TL;DR
This work addresses forgetting of pre-training knowledge during continual fine-tuning of Vision-Language Models by introducing GIFT, a framework that uses diffusion-generated synthetic image-text data to replay prior knowledge via contrastive distillation and image-text alignment. It combines this distillation with adaptive weight consolidation based on online Fisher information to maintain stability while learning new tasks. Empirical results on MTIL and CIL benchmarks show that GIFT consistently surpasses state-of-the-art methods using only a small synthetic data budget (e.g., 1K samples per task), highlighting the practicality of diffusion-based replay for VLM continual learning. Overall, GIFT demonstrates that synthetic data can effectively approximate pre-training distributions and support robust, data-efficient continual adaptation of VLMs.
Abstract
Pre-trained Vision-Language Models (VLMs) require Continual Learning (CL) to efficiently update their knowledge and adapt to various downstream tasks without retraining from scratch. However, for VLMs, in addition to the loss of knowledge previously learned from downstream tasks, pre-training knowledge is also corrupted during continual fine-tuning. This issue is exacerbated by the unavailability of original pre-training data, leaving VLM's generalization ability degrading. In this paper, we propose GIFT, a novel continual fine-tuning approach that utilizes synthetic data to overcome catastrophic forgetting in VLMs. Taking advantage of recent advances in text-to-image synthesis, we employ a pre-trained diffusion model to recreate both pre-training and learned downstream task data. In this way, the VLM can revisit previous knowledge through distillation on matching diffusion-generated images and corresponding text prompts. Leveraging the broad distribution and high alignment between synthetic image-text pairs in VLM's feature space, we propose a contrastive distillation loss along with an image-text alignment constraint. To further combat in-distribution overfitting and enhance distillation performance with limited amount of generated data, we incorporate adaptive weight consolidation, utilizing Fisher information from these synthetic image-text pairs and achieving a better stability-plasticity balance. Extensive experiments demonstrate that our method consistently outperforms previous state-of-the-art approaches across various settings.
