Unknown Prompt, the only Lacuna: Unveiling CLIP's Potential for Open Domain Generalization

Mainak Singha, Ankit Jha, Shirsha Bose, Ashwin Nair, Moloud Abdar +1 more
2/9/2026

No official code found. Best implementation: mainaksingha01/ODG-CLIP (21 stars, MIT, last commit 2025-10-09).

Abstract

We delve into Open Domain Generalization (ODG), marked by domain and category shifts between training's labeled source and testing's unlabeled target domains. Existing solutions to ODG face limitations due to constrained generalizations of traditional CNN backbones and errors in detecting target open samples in the absence of prior knowledge. Addressing these pitfalls, we introduce ODG-CLIP, harnessing the semantic prowess of the vision-language model, CLIP. Our framework brings forth three primary innovations: Firstly, distinct from prevailing paradigms, we conceptualize ODG as a multi-class classification challenge encompassing both known and novel categories. Central to our approach is modeling a unique prompt tailored for detecting unknown class samples, and to train this, we employ a readily accessible stable diffusion model, elegantly generating proxy images for the open class. Secondly, aiming for domain-tailored classification (prompt) weights while ensuring a balance of precision and simplicity, we devise a novel visual stylecentric prompt learning mechanism. Finally, we infuse images with class-discriminative knowledge derived from the prompt space to augment the fidelity of CLIP's visual embeddings. We introduce a novel objective to safeguard the continuity of this infused semantic intel across domains, especially for the shared classes. Through rigorous testing on diverse datasets, covering closed and open-set DG contexts, ODG-CLIP demonstrates clear supremacy, consistently outpacing peers with performance boosts between 8%-16%. Code will be available at https://github.com/mainaksingha01/ODG-CLIP.

View on arXivView PDF

Code Implementations(1)

MIT
215PythonMar 26, 20241 years agoMIT

Similar Papers

Cite this paper

@article{singha2026unknown,
  title  = {Unknown Prompt, the only Lacuna: Unveiling CLIP's Potential for Open Domain Generalization},
  author = {Mainak Singha and Ankit Jha and Shirsha Bose and Ashwin Nair and Moloud Abdar and Biplab Banerjee},
  year   = {2026},
  eprint = {2404.00710},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2404.00710},
  journal = {CVPR 2024 2024}
}

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

Discussion