Introduction
Deep learning models often struggle with domain shift, where performance degrades when moving from a labeled source domain to an unlabeled target domain. While standard Unsupervised Domain Adaptation (UDA) typically requires large labeled source datasets, many real-world scenarios—such as medical imaging—suffer from label scarcity. This has led to the emergence of Few-shot Unsupervised Domain Adaptation (FUDA), where only a handful of labeled source images (e.g., 1-3 per category) are available.
Previous FUDA methods often relied on instance-wise self-supervised learning. However, treating every image as a unique class ignores the underlying semantic structure of the data and makes models highly sensitive to outliers. To address these challenges, we present Prototypical Cross-domain Self-supervised learning (PCS).
The PCS Framework
The core innovation of PCS is moving beyond instance-level matching to align domains using prototypes—representative embeddings for groups of semantically similar instances. The framework consists of four primary components:
1. In-domain Prototypical Contrastive Learning
Instead of simple instance discrimination, PCS performs k-means clustering in the embedding space for both domains. The model is trained to pull instances closer to their assigned cluster centroids (prototypes), effectively learning category-wise structures without explicit labels.
2. Cross-domain Instance-Prototype Matching
To bridge the domain gap, PCS matches instances from one domain to the prototypes of the other. By minimizing the entropy of this matching, the model aligns source and target semantic structures in a shared space. This approach is significantly more robust than instance-to-instance matching, as prototypes act as stable anchors that are less affected by individual outliers.
3. Adaptive Prototypical Classifier Update (APCU)
PCS employs an adaptive strategy for updating the final classifier. Initially, classifier weights are updated using stable source prototypes. As training progresses and target domain confidence increases, the model shifts toward using target prototypes to refine the classifier.
4. Mutual Information Maximization (MIM)
To ensure robust predictions, PCS incorporates MIM, which encourages individual sample predictions to be confident (low entropy) while maintaining diversity across the entire dataset (high entropy).
Experimental Evaluation
The authors evaluated PCS on four major benchmarks: Office, Office-Home, VisDA-2017, and DomainNet.
Key Results
PCS demonstrated state-of-the-art performance across all datasets:
- Massive Accuracy Gains: PCS improved mean accuracy by 10.5% on Office and 13.2% on DomainNet compared to previous methods.
- Sample Efficiency: On the Office dataset (DSLR to Amazon), PCS achieved 76.1% accuracy with just one labeled image per class. This is remarkably close to the 77.4% accuracy achieved using the full labeled source dataset, representing a 94% reduction in required labels.
Conclusion
PCS shifts the focus of domain adaptation from instance-level alignment to semantic-level prototypical alignment. By leveraging the power of self-supervision through clustering, PCS effectively compensates for the lack of labels in FUDA. While the clustering process introduces some computational overhead, the significant gains in accuracy and label efficiency make it a powerful framework for real-world domain adaptation tasks.
Summary updated