Introduction
Semi-Supervised Domain Adaptation (SSDA) involves training a model on a labeled source domain and a target domain that contains a large amount of unlabeled data but only a few labeled examples (typically 1-3 per class). Traditionally, researchers have adapted Unsupervised Domain Adaptation (UDA) techniques, such as adversarial domain alignment, to this setting. Adversarial alignment aims to make source and target feature distributions indistinguishable.
However, this paper argues that for SSDA, perfect alignment is unnecessary and potentially counterproductive. Instead, the authors propose PAC (Pretraining and Consistency), a method that focuses on creating well-separated target clusters. When clusters are tight and distinct, even a single labeled example per class is sufficient to correctly classify the entire cluster.
The PAC Framework
The PAC method consists of two primary stages that replace complex adversarial alignment with simpler, more effective components.
1. Self-Supervised Pretraining
Rather than relying solely on ImageNet-pretrained weights, PAC begins by pretraining the feature extractor on both source and target images using a rotation prediction task. The model is trained to identify whether an image has been rotated by 0°, 90°, 180°, or 270°. This auxiliary task encourages the network to learn semantically rich features that naturally form clusters by class, regardless of the domain shift.
2. Consistency Regularization
During the main training phase, PAC employs consistency regularization on the unlabeled target data. The model is trained to produce identical predictions for an unlabeled image and its strongly augmented version (using RandAugment and color jittering). This regularization is applied only when the model's confidence on the original image exceeds a high threshold ($\tau = 0.9$).
3. Supervised Learning
The final loss function includes standard cross-entropy losses for the labeled source data and the sparse labeled target examples, ensuring the learned clusters are correctly mapped to their respective classes.
Key Insights and Ideas
The core contribution of PAC is the demonstration that clustering is superior to alignment for SSDA.
- Alignment is Unnecessary: By maximizing inter-class divergence and creating tight clusters, the model can leverage a few target labels to achieve high accuracy without forcing the source and target distributions to overlap perfectly.
- Rotation Pretraining vs. Contrastive Learning: Simple rotation prediction was found to be more effective for SSDA than modern contrastive methods like MoCo. It provides a better initial feature space where domain-invariant semantic features are prioritized.
- Consistency vs. Entropy Minimization: While methods like MME use entropy minimization to push boundaries away from data, PAC's consistency regularization uses image-space perturbations. This allows the model to correct errors in the feature space that entropy-based methods might otherwise reinforce.
Experimental Evaluation
The authors evaluated PAC across four major benchmarks: DomainNet, VisDA-17, Office-Home, and Office.
In the challenging DomainNet (126-class subset), PAC outperformed state-of-the-art adversarial methods like MME and APE by 3-5%. On VisDA-17, PAC showed even more significant gains, achieving 80.4% accuracy in the 3-shot setting compared to MME's 70.7%.
Ablation studies confirmed that both components are essential. On a Real-to-Sketch task (ResNet-34), accuracy improved from 50.1% (baseline) to 56.1% with consistency alone, 68.9% with rotation pretraining alone, and finally to 70.2% with the full PAC method.
Conclusion
PAC demonstrates that Semi-Supervised Domain Adaptation can be significantly improved by moving away from adversarial alignment. By combining self-supervised pretraining with consistency regularization, PAC creates a feature space where target data naturally clusters, allowing a handful of labels to provide powerful supervision. This "surprisingly simple" approach sets a new standard for SSDA and suggests that future research should focus on enhancing target clusterability rather than distribution matching.
Summary updated