Prompt-based Continual Learning for Extending Pretrained CLIP Models' Knowledge
CLIP model has demonstrated remarkable performance and strong zero-shot capabilities through its training on text-image datasets using contrastive learning. This has sparked interest in developing continuous learning methods based on CLIP to extend its knowledge to new datasets. However, traditional continuous learning approaches often involve modification to the original parameters of the pretrained CLIP model and consequently compromise its zero-shot capabilities. To tackle these challenges, we propose Image Text (IT-)Prompt, which leverages the inherent correlation between visual and textual information to train discrete prompts dedicated to individual tasks, serving as repositories for task-specific knowledge. By employing discrete textual prompts as guidance, we ensure the uniqueness of each task's prompt and prevent interference among tasks, thus alleviating catastrophic forgetting during continuous learning. While retaining the pretrained parameters of CLIP, our approach introduces only a small number of additional trainable parameters. This allows us to enhance training efficiency and preserving the original zero-shot capabilities of CLIP. Comparative experiments show that IT-Prompt achieves a performance improvement of at least 10% compared to state-of-the-art methods. The implementation code can be available at https://github.com/jiaolifengmi/IT-Prompt. © 2024 Copyright held by the owner/author(s). Publication rights licensed to ACM.
Authors
- Jiao Li (ORCID: https://orcid.org/0009-0001-8479-5693)
- Lihong Cao (ORCID: https://orcid.org/0000-0002-3866-2734)
- Tian Wang (ORCID: https://orcid.org/0000-0002-2376-9942)
Institutions
- Hong Kong University of Science and Technology (HK)
- Communication University of China (CN)
Publication Details
- Published
- 2024-12-03
- DOI
- https://doi.org/10.1145/3696409.3700216
- Primary Topic
- Domain Adaptation and Few-Shot Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China