Mind the Interference: Retaining Pre-trained Knowledge in Parameter Efficient Continual Learning of Vision-Language Models

Longxiang Tang, Zhuotao Tian, Kai Li, Chunming He, Hantao Zhou, Hengshuang Zhao, Xiu Li, Jiaya Jia

Abstract

Vision-Language Models (VLMs) like CLIP exhibit remarkable zero-shot capabilities, yet fine-tuning them on a sequence of tasks often leads to "forward forgetting," where the model loses its general-purpose knowledge while adapting to new domains. This paper introduces DIKI (Distribution-aware Interference-free Knowledge Integration), a parameter-efficient framework designed for Domain-Class Incremental Learning (DCIL). DIKI employs a zero-initialized residual attention mechanism to integrate new knowledge without distorting pre-trained features and a distribution-aware calibration scheme to dynamically balance new and old knowledge. Experimental results on the MTIL benchmark demonstrate that DIKI achieves state-of-the-art performance with significantly fewer parameters and lower computational overhead than existing methods.

Introduction: The Challenge of Forward Forgetting

In Domain-Class Incremental Learning (DCIL), a model encounters a sequence of tasks where both the classes and the visual domains evolve. While VLMs are powerful zero-shot learners, standard fine-tuning or prompt-tuning often degrades this ability. This phenomenon, termed forward forgetting, occurs when the model's adaptation to a current task interferes with its pre-trained wisdom, making it less effective on future, unseen tasks.

Overview of Domain-Class Incremental Learning and the forgetting challenges.

Existing solutions like ZSCL (Zero-Shot Continual Learning) attempt to mitigate this via knowledge distillation, but these methods are computationally expensive and require large reference datasets. DIKI addresses these limitations by focusing on interference-free integration.

Methodology: DIKI

DIKI's architecture is centered on two key innovations:

1. Interference-free Knowledge Integration (IKI)

Traditional prompt tuning prepends new tokens to the input sequence. However, the authors identify a critical mathematical issue: the softmax operation in self-attention causes new prompts to compete with and distort original pre-trained features. DIKI bypasses this by introducing a parallel residual branch. This branch computes attention for new knowledge independently and adds it to the frozen backbone's output. By initializing this branch to zero, the model begins as an exact replica of the pre-trained VLM, ensuring no initial noise is introduced.

2. Distribution-aware Integration Calibration

To effectively manage the trade-off between specialized new knowledge and general pre-trained knowledge, DIKI utilizes a calibration scheme. It models the feature distribution of each learned task using a multivariate Gaussian. During inference, the model assesses the similarity of a test image to known task distributions. If the image aligns with a seen task, the residual branch is weighted more heavily; if the image is from an unseen domain, the model relies on the robust zero-shot capabilities of the frozen backbone.

Experimental Setup and Datasets

The framework was evaluated on the MTIL (Multi-Task Incremental Learning) benchmark, comprising 11 diverse datasets ranging from general objects (CIFAR100, Caltech101) to specialized domains like satellite imagery (EuroSAT), textures (DTD), and flowers. The authors also tested on MTIL-FS, a few-shot variant with only 16 samples per class, to evaluate performance in data-constrained scenarios.

Key Results and Efficiency

DIKI sets a new state-of-the-art across Transfer, Average, and Last accuracy metrics on the MTIL benchmark. Notably, it achieves these results with extreme efficiency:

  • Parameter Efficiency: DIKI uses only 0.86% of the trainable parameters compared to full fine-tuning.
  • Computational Speed: Training DIKI on a single NVIDIA 3090 takes approximately 2.3 hours, whereas the previous SOTA (ZSCL) required 4 GPUs and over 11 hours.
  • Zero Data Overhead: Unlike distillation-based methods, DIKI requires no external reference datasets.
Comparison of Forward Accuracy vs. Parameter Number across different continual learning methods.

Conclusion

DIKI demonstrates that retaining pre-trained knowledge in VLMs does not require heavy computation or massive datasets. By identifying and eliminating "softmax interference" through a residual architecture and dynamic calibration, DIKI provides a scalable and efficient path for continual learning in vision-language models. Future work may explore more complex density estimation techniques beyond Gaussians and extend these interference-free principles to the text encoder.

Summary updated

BibTeX
@inproceedings{tang2024mind,
  author = {Longxiang Tang and Zhuotao Tian and Kai Li and Chunming He and Hantao Zhou and Hengshuang Zhao and Xiu Li and Jiaya Jia},
  title = {{Mind the Interference: Retaining Pre-trained Knowledge in Parameter Efficient Continual Learning of Vision-Language Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72764-1\_20},
}
Figure