This paper, titled "Adversarial Unsupervised Domain Adaptation with Conditional and Label Shift: Infer, Align and Iterate," presents a robust framework for transferring knowledge between different data domains when both the class proportions (label shift) and the appearance of those classes (conditional shift) vary.
TL;DR
The authors propose "CLS," a method that iteratively infers target class distributions and aligns class-specific features to tackle Unsupervised Domain Adaptation (UDA). By moving beyond the simplistic assumption that class proportions are identical across domains, CLS achieves state-of-the-art results in both image classification and semantic segmentation.
What Problem Does This Paper Address?
Most Unsupervised Domain Adaptation (UDA) methods rely on a "covariate shift" assumption: they assume the marginal distribution of features $p(x)$ changes, but the relationship between features and labels $p(y|x)$ remains the same. Crucially, they often assume the proportion of each class $p(y)$ is identical in both the source (labeled) and target (unlabeled) domains.
In the real world, this is rarely true. For example, a "motorbike" might be much more common in Taipei than in Tokyo (label shift). Furthermore, a "pedestrian" looks different in broad daylight versus a rainy night (conditional shift). The authors prove that if you try to align global features $p(x)$ while ignoring these shifts, you actually force the model to "mix" different classes in the feature space, destroying its ability to discriminate between them.
Methods
The authors introduce an iterative "Infer, Align, and Iterate" optimization scheme. The core components are:
- Infer ($p(y)$ Estimation): Since target labels are unknown, the model estimates the target label distribution $p(y)$ by matching the means of features in the source and target domains. They use a "fade-in" strategy, starting with a uniform distribution and gradually trusting the model's estimates as training progresses.
- Align (Conditional Shift Alignment): To align $p(x|y)$, they use a Joint Discriminator and Classifier ($Dis\&Cls$). This makes the domain discriminator "class-aware." They also introduce a class-wise balancing parameter $\gamma$ to re-weight source samples so they match the estimated target class proportions.
- Iterate: These steps are performed turn-based in each training iteration to refine both the feature alignment and the label distribution estimate.
- Posterior Alignment: At test time, the model doesn't just use the raw classifier output. It adjusts the final prediction (the posterior $p(y|x)$) based on the precisely estimated target label distribution.
Datasets
The method was evaluated across several challenging benchmarks:
- Classification: VisDA17 (synthetic-to-real 12-class task).
- Segmentation: GTA5 (synthetic) to Cityscapes (real) urban scene segmentation.
- Partial UDA: Office-31 and ImageNet-Caltech (where the target domain only contains a subset of the source classes).
- Cross-City Segmentation: Cityscapes to NTHU (real-to-real).
Key Insights and Ideas
- The "Concept Shift" Trap: The paper theoretically demonstrates (Theorem 2) that strictly enforcing global feature invariance ($p(f(x)_s) = p(f(x)_t)$) in the presence of label shift guarantees an inconsistent posterior, effectively breaking the classifier.
- Class-Level vs. Sample-Level: Unlike many recent works that try to weight every single image, CLS focuses on class-level weights. This is significantly more scalable, especially for pixel-wise tasks like semantic segmentation.
- Robustness to Shift: A key "aha" moment is shown in Figure 1. While standard methods' performance plummets as the difference between source and target class proportions (KL-divergence) increases, CLS remains remarkably stable.
Key Results
- VisDA17: Achieved 81.6% mean accuracy with a ResNet101 backbone, outperforming standard adversarial methods like DANN (57.4%) and TDDA (74.03%).
- Segmentation: On the GTA5 to Cityscapes task, CLS reached a 53.0 mIoU when combined with self-training, setting a new state-of-the-art for adversarial UDA.
- Partial UDA: On Office-31, CLS achieved a mean accuracy of 98.24%, proving that it naturally handles cases where some source classes are entirely absent in the target domain.
Limitations and Future Work
The authors acknowledge that their target label estimation relies on the assumption that the variance in the feature space is not infinite and that the feature means are somewhat representative. While they use $L_2$ loss for mean matching, they suggest that more complex distribution metrics (like Wasserstein loss or MMD) could potentially improve results in specific scenarios. Future work could also explore extending this iterative framework to multi-source domain adaptation.
Summary updated