External Knowledge Injection for CLIP-Based Class-Incremental Learning

Da-Wei Zhou, Kai-Wen Li, Jingyi Ning, Han-Jia Ye, Lijun Zhang +1 more
3/11/2025
cs.CVcs.LG

Official code: LAMDA-CL/ICCV25-ENGINE (59 stars, last commit 2025-11-19). 1 more implementation below.

Abstract

Class-Incremental Learning (CIL) enables learning systems to continuously adapt to evolving data streams. With the advancement of pre-training, leveraging pre-trained vision-language models (e.g., CLIP) offers a promising starting point for CIL. However, CLIP makes decisions by matching visual embeddings to class names, overlooking the rich contextual information conveyed through language. For instance, the concept of ``cat'' can be decomposed into features like tail, fur, and face for recognition. Besides, since the model is continually updated, these detailed features are overwritten in CIL, requiring external knowledge for compensation. In this paper, we introduce ExterNal knowledGe INjEction (ENGINE) for CLIP-based CIL. To enhance knowledge transfer from outside the dataset, we propose a dual-branch injection tuning framework that encodes informative knowledge from both visual and textual modalities. The visual branch is enhanced with data augmentation to enrich the visual features, while the textual branch leverages GPT-4 to rewrite discriminative descriptors. In addition to this on-the-fly knowledge injection, we also implement post-tuning knowledge by re-ranking the prediction results during inference. With the injected knowledge, the model can better capture informative features for downstream tasks as data evolves. Extensive experiments demonstrate the state-of-the-art performance of ENGINE. Code is available at: https://github.com/LAMDA-CL/ICCV25-ENGINE

View on arXivView PDF

Code Implementations(2)

External Knowledge Injection for CLIP-Based Class-Incremental Learning (ICCV 2025)

597PythonNov 27, 202411 months ago
continual-learningincremental-learning
LAMDA-CL/PyCILCommunity100%
PyTorch

PyCIL: A Python Toolbox for Class-Incremental Learning

1,096158PythonDec 23, 20218 months agoNOASSERTION
continual-learningdeep-learningincremental-learninglifelong-learningmachine-learning+5 more

Similar Papers

Cite this paper

@article{zhou2025external,
  title  = {External Knowledge Injection for CLIP-Based Class-Incremental Learning},
  author = {Da-Wei Zhou and Kai-Wen Li and Jingyi Ning and Han-Jia Ye and Lijun Zhang and De-Chuan Zhan},
  year   = {2025},
  eprint = {2503.08510},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08510v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08510.svg)](https://codeofpaper.com/paper/2503.08510)

Discussion