[Paper Review] Domain-Unified Prompt Representations for Source-Free Domain Generalization
This paper proposes a source-free domain generalization method using domain-unified prompt representations derived from a vision-language model (CLIP), eliminating the need for source domain data during training. By generating diverse textual prompts from a large domain bank and applying a learnable adapter (CAE) to unify them into domain-invariant representations, the method achieves state-of-the-art performance on standard benchmarks and significantly outperforms existing methods on open-world domains without any source data.
Domain generalization (DG), aiming to make models work on unseen domains, is a surefire way toward general artificial intelligence. Limited by the scale and diversity of current DG datasets, it is difficult for existing methods to scale to diverse domains in open-world scenarios (e.g., science fiction and pixelate style). Therefore, the source-free domain generalization (SFDG) task is necessary and challenging. To address this issue, we propose an approach based on large-scale vision-language pretraining models (e.g., CLIP), which exploits the extensive domain information embedded in it. The proposed scheme generates diverse prompts from a domain bank that contains many more diverse domains than existing DG datasets. Furthermore, our method yields domain-unified representations from these prompts, thus being able to cope with samples from open-world domains. Extensive experiments on mainstream DG datasets, namely PACS, VLCS, OfficeHome, and DomainNet, show that the proposed method achieves competitive performance compared to state-of-the-art (SOTA) DG methods that require source domain data for training. Besides, we collect a small datasets consists of two domains to evaluate the open-world domain generalization ability of the proposed method. The source code and the dataset will be made publicly available at https://github.com/muse1998/Source-Free-Domain-Generalization
Motivation & Objective
- To address the challenge of domain generalization in open-world scenarios where source domain data are unavailable.
- To reduce reliance on large-scale source domain image data, which is often impractical to collect in real-world applications.
- To develop a method that generalizes effectively to unseen domains, including rare or stylized domains like pixelated or artistic styles.
- To leverage the rich, pre-existing domain knowledge in vision-language models for zero-shot domain generalization.
Proposed method
- Constructs a domain bank containing diverse textual prompts from multiple existing datasets (PACS, VLCS, OfficeHome, DomainNet) to represent a wide range of domains.
- Uses CLIP to encode these prompts into textual embeddings, forming the basis for domain representation learning.
- Introduces a learnable Cross-Attention Encoder (CAE) to filter out domain-specific information while preserving class-specific features, generating domain-unified prompt representations.
- Applies mean pooling on the CAE output to produce a single, domain-invariant representation per class for classification.
- Trains the model solely on target domain data using the domain-unified prompt representations as class prototypes.
- Employs a contrastive learning objective during CAE training to encourage class-specific clustering and domain-invariance.
Experimental results
Research questions
- RQ1Can domain-unified prompt representations be effectively learned from textual prompts without using source domain images?
- RQ2How does the proposed method perform on standard domain generalization benchmarks compared to SOTA methods that require source data?
- RQ3To what extent can the method generalize to truly open-world domains not seen during training, such as pixelated or geometric styles?
- RQ4Does the use of a large, diverse domain bank improve robustness to out-of-distribution domains?
- RQ5How effective is the CAE module in filtering domain-specific features while preserving class-level semantics?
Key findings
- On the PACS dataset, the proposed method achieves 97.1% accuracy using only target domain data, outperforming multi-source SOTA methods like DPL (94.9% for photo, 90.8% for sketch).
- On OfficeHome, the method attains 95.1% accuracy on the open-world pixelated and geometric style domains, significantly exceeding ERM (51.5%) and GroupDRO (52.2%) baselines.
- The CAE module successfully clusters prompt representations from different domains around a shared center, demonstrating effective domain-invariance learning, as shown by t-SNE visualizations.
- The method achieves state-of-the-art performance on all four standard DG datasets (PACS, VLCS, OfficeHome, DomainNet), with a 73.2% average accuracy on the combined domain bank setting.
- The ablation study confirms that expanding the domain bank improves performance on open-world domains, validating the benefit of a richer, more diverse prompt bank.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.