English

Domain-Invariant Prompt Learning for Vision-Language Models

Computer Vision and Pattern Recognition 2026-03-31 v1 Artificial Intelligence

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.

Keywords

Cite

@article{arxiv.2603.28555,
  title  = {Domain-Invariant Prompt Learning for Vision-Language Models},
  author = {Arsham Gholamzadeh Khoee and Yinan Yu and Robert Feldt},
  journal= {arXiv preprint arXiv:2603.28555},
  year   = {2026}
}
R2 v1 2026-07-01T11:44:17.848Z