[Paper Review] Domain Adaptation via Prompt Learning
This paper proposes Domain Adaptation via Prompt Learning (DAPL), a novel unsupervised domain adaptation method that leverages pre-trained vision-language models by optimizing only a few learnable prompt tokens. Instead of aligning source and target domain features, DAPL uses domain-specific and domain-agnostic prompt contexts to preserve semantic structure and improve classification accuracy, achieving state-of-the-art performance of 74.5% and 86.9% on Office-Home and VisDA-2017 respectively.
Unsupervised domain adaption (UDA) aims to adapt models learned from a well-annotated source domain to a target domain, where only unlabeled samples are given. Current UDA approaches learn domain-invariant features by aligning source and target feature spaces. Such alignments are imposed by constraints such as statistical discrepancy minimization or adversarial training. However, these constraints could lead to the distortion of semantic feature structures and loss of class discriminability. In this paper, we introduce a novel prompt learning paradigm for UDA, named Domain Adaptation via Prompt Learning (DAPL). In contrast to prior works, our approach makes use of pre-trained vision-language models and optimizes only very few parameters. The main idea is to embed domain information into prompts, a form of representations generated from natural language, which is then used to perform classification. This domain information is shared only by images from the same domain, thereby dynamically adapting the classifier according to each domain. By adopting this paradigm, we show that our model not only outperforms previous methods on several cross-domain benchmarks but also is very efficient to train and easy to implement.
Motivation & Objective
- To address the limitation of conventional unsupervised domain adaptation (UDA) methods that distort semantic feature structures by enforcing domain alignment.
- To preserve class discriminability by disentangling semantic and domain information in feature representations.
- To propose a prompt learning framework that avoids adversarial or statistical domain alignment, instead using continuous prompt tuning.
- To achieve high performance with minimal parameter updates on pre-trained vision-language models.
Proposed method
- DAPL designs a prompt with three components: a shared domain-agnostic context, a domain-specific context, and a class label token.
- The domain-specific context is learned per domain and enables dynamic adaptation of the classifier to each domain’s unique distribution.
- A contrastive learning objective aligns image and text representations when both domain and class match, while pushing mismatched pairs apart.
- The method uses CLIP as the backbone and fine-tunes only the prompt embeddings, making it parameter-efficient.
- The domain-agnostic and domain-specific prompts are jointly optimized via a contrastive loss that encourages alignment within matched domain-class pairs.
- Pseudo-labeling with a confidence threshold is used to generate target domain labels during training, improving robustness.
Experimental results
Research questions
- RQ1Can prompt learning be effectively applied to unsupervised domain adaptation to avoid feature space distortion from domain alignment?
- RQ2Does introducing domain-specific prompt contexts improve generalization without requiring domain-invariant feature learning?
- RQ3How does the disentanglement of semantic and domain information via prompts affect class discriminability and model accuracy?
- RQ4To what extent does the proposed method outperform strong baselines like CLIP on standard UDA benchmarks?
Key findings
- DAPL achieves state-of-the-art performance with 74.5% top-1 accuracy on the Office-Home dataset, outperforming the strong CLIP baseline by 2.5 percentage points.
- On the VisDA-2017 benchmark, DAPL achieves 86.9% accuracy, a 2.5 percentage point improvement over the CLIP baseline.
- The ablation study confirms that domain-specific context is essential, improving performance by 1.4% over using only domain-agnostic context.
- The method is robust to hyperparameter choices, with minimal performance drop across different pseudo-labeling thresholds (τ from 0.4 to 0.7).
- Performance is stable across different prompt length combinations, indicating that only a small number of tokens are needed to learn effective continuous representations.
- Visualization results show that learnable prompts yield more confident and accurate predictions than hand-crafted prompts, especially on ambiguous or complex images.
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.