Domain-Invariant Prompt Learning for Vision-Language Models

Arsham Gholamzadeh Khoee, Yinan Yu, Robert Feldt
3/30/2026
cs.CVcs.AI

No official code found. Best implementation: ThomasWangY/2024-TIP-MetaPrompt (14 stars, MIT, last commit 2024-02-07).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Learning Domain Invariant Prompt for Vision-Language Models

140Shell, PythonFeb 7, 20242 years agoMIT

Similar Papers

Cite this paper

@article{khoee2026domaininvariant,
  title  = {Domain-Invariant Prompt Learning for Vision-Language Models},
  author = {Arsham Gholamzadeh Khoee and Yinan Yu and Robert Feldt},
  year   = {2026},
  eprint = {2603.28555},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.28555v1}
}

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/2603.28555.svg)](https://codeofpaper.com/paper/2603.28555)

Discussion