Domain-Invariant Prompt Learning for Vision-Language Models
Organizations: Department of Computer Science and Engineering, Chalmers University of Technology, Gothenburg, Sweden
Abstract
Large pre-trained vision-language models like CLIP have transformed computer vision by aligning images and text in a shared feature space, enabling robust zero-shot transfer via prompting. Soft-prompting, such as Context Optimization (CoOp), effectively adapts these models for downstream recognition tasks by learning a set of context vectors. However, CoOp lacks explicit mechanisms for handling domain shifts across unseen distributions. To address this, we propose Domain-invariant Context Optimization (DiCoOp), an extension of CoOp optimized for domain generalization. By employing an adversarial training approach, DiCoOp forces the model to learn domain-invariant prompts while preserving discriminative power for classification. Experimental results show that DiCoOp consistently surpasses CoOp in domain generalization tasks across diverse visual domains.
Figures & tables
| Methods | Backbone | Clipart | Painting | Sketch | Real | Avg. |
|---|---|---|---|---|---|---|
| CoOp | ViT-B/16 | 83.5 | 80.3 | 76.6 | 88.7 | 82.27 |
| DiCoOp (SCP) | ViT-B/16 | 83.8 | 81.9 | 78.6 | 89.7 | 83.5 |
| DiCoOp (DFP) | ViT-B/16 | 83.9 | 83.2 | 79.8 | 91.1 | 84.5 |
| DiCoOp (CFP) | ViT-B/16 | 84.1 | 82.7 | 80.0 | 91.2 | 84.5 |
VLM Adaptation
Vision-language model adaptation tailors pretrained image-text and multimodal models to new tasks and domains while retaining transferable capabilities.
See all 545 papers