Abstract
Universal domain adaptation (UniDA) aims to address domain and category shifts across data sources. Recently, due to more stringent data restrictions, researchers have introduced source-free UniDA (SF-UniDA). SF-UniDA methods eliminate the need for direct access to source samples when performing adaptation to the target domain. However, existing SF-UniDA methods still require an extensive quantity of labeled source samples to train a source model, resulting in significant labeling costs. To tackle this issue, we present a novel plug-and-play classifier-oriented calibration (COCA) method. COCA, which exploits textual prototypes, is designed for the source models based on few-shot learning with vision-language models (VLMs). It endows the VLM-powered few-shot learners, which are built for closed-set classification, with the unknown-aware ability to distinguish common and unknown classes in the SF-UniDA scenario. Crucially, COCA is a new paradigm to tackle SF-UniDA challenges based on VLMs, which focuses on classifier instead of image encoder optimization. Experiments show that COCA outperforms state-of-the-art UniDA and SF-UniDA models.
Introduction
In computer vision, Universal Domain Adaptation (UniDA) is a complex task requiring models to handle both domain shift (e.g., recognizing a "horse" in a sketch when trained on photos) and category shift (e.g., encountering an "airplane" during testing when the training set only contained animals).
The latest frontier is Source-Free UniDA (SF-UniDA), where adaptation must occur without access to the original training data. While previous methods made progress, they remained "data-hungry," requiring thousands of labeled images to build the initial source model. COCA addresses this labeling cost bottleneck by leveraging the pre-existing knowledge inside Vision-Language Models (VLMs) like CLIP to enable adaptation in few-shot or even zero-shot scenarios.
A Paradigm Shift in Adaptation
Traditional research in domain adaptation typically focuses on optimizing the "backbone" or image encoder. However, COCA introduces a fundamental shift: keeping the heavy encoders frozen and focusing solely on calibrating the classifier.
As shown in the figure above, while standard UniDA (a) and SF-UniDA (b) paradigms involve training or fine-tuning the image encoder, COCA (c) utilizes frozen image and text encoders from a VLM. By optimizing only the closed-set classifier, COCA avoids the computational expense and potential "catastrophic forgetting" associated with encoder fine-tuning.
Methodology
COCA consists of two primary modules designed to enhance the model's ability to distinguish between known and unknown classes:
- Autonomous Calibration via Textual Prototype (ACTP): Instead of relying on noisy image clusters that contain domain-specific information (like backgrounds), COCA uses VLM text embeddings as stable, domain-agnostic "textual prototypes." It employs K-means clustering on target images only to identify "negative" prototypes representing unknown or background objects.
- Mutual Information Enhancement by Context Information (MIECI): This self-supervised module masks parts of a target image and ensures the classifier produces consistent predictions for both full and partial images. This forces the model to learn from the broader context rather than memorizing local patches.
Experimental Evaluation
COCA was evaluated on three standard benchmarks: OfficeHome, VisDA-2017, and the highly challenging DomainNet (345 classes across 6 domains).
Key results include:
- Superior Performance: In the Open-Partial (OPDA) scenario on DomainNet, COCA achieved an H-score of 73.1%, significantly outperforming the previous state-of-the-art of 55.1%.
- Data Efficiency: COCA trained on just 16 images per class outperformed traditional models trained on full source datasets.
- Robustness: The model is less sensitive to hyperparameters, such as the number of clusters, compared to previous clustering-based methods.
Conclusion
COCA demonstrates that when using powerful pre-trained backbones like CLIP, the most effective path to universal domain adaptation lies in classifier calibration rather than encoder optimization. By using textual prototypes as anchors, COCA provides a robust, efficient, and low-cost solution for real-world adaptation challenges where source data is restricted and labels are scarce.
Summary updated