Conditional Support Alignment for Domain Adaptation with Label Shift

Anh T. Nguyen, Lam Tran, Anh Tong, Tuan-Duy H. Nguyen, Toan Tran · OpenReview

Abstract

Unsupervised domain adaptation (UDA) refers to a domain adaptation framework in which a learning model is trained based on the labeled samples on the source domain and unlabelled ones in the target domain. The dominant existing methods in the field that rely on the classical covariate shift assumption to learn domain-invariant feature representation have yielded suboptimal performance under the label distribution shift between source and target domains. In this paper, we propose a novel conditional adversarial support alignment (CASA/CASUAL) whose aim is to minimize the conditional symmetric support divergence between the source's and target domain's feature representation distributions, aiming at a more helpful representation for the classification task. We also introduce a novel theoretical target risk bound, which justifies the merits of aligning the supports of conditional feature distributions compared to the existing marginal support alignment approach in the UDA settings. We then provide a complete training process for learning in which the objective optimization functions are precisely based on the proposed target risk bound. Our empirical results demonstrate that CASA outperforms other state-of-the-art methods on different UDA benchmark tasks under label shift conditions.

Introduction

Unsupervised Domain Adaptation (UDA) is a critical area of machine learning where models are trained on labeled data from a source domain (e.g., synthetic images) to perform effectively on an unlabeled target domain (e.g., real-world photographs). While many UDA techniques assume covariate shift—where input features change but the relationship between features and labels remains constant—they often struggle with label shift. Label shift occurs when the proportions of classes differ significantly between training and testing environments, a common occurrence in real-world scenarios like medical diagnostics or imbalanced datasets.

The Challenge of Label Shift

Standard UDA methods typically attempt to force the target feature distribution to match the source distribution exactly. However, if the source domain has a balanced class distribution (e.g., 50% "Cats" and 50% "Dogs") while the target domain is skewed (e.g., 10% "Cats" and 90% "Dogs"), standard alignment can be destructive. A model might mistakenly map "Dogs" from the target into the "Cat" feature space simply to satisfy the requirement that the global distributions look identical. This "indiscriminate" alignment leads to poor classification performance as class boundaries become blurred.

Proposed Method: CASUAL

The authors introduce CASUAL (Conditional Adversarial SUpport ALignment), a framework that shifts the focus from aligning probability densities to aligning supports—the specific regions in feature space where data exists.

Conceptual comparison of (a) Distribution alignment, (b) Marginal support alignment, and (c) the proposed Conditional support alignment.

Key Innovations

  1. Conditional Symmetric Support Divergence (CSSD): Unlike marginal alignment, which looks at the whole dataset, CSSD measures the distance between class-conditioned distributions. This ensures that "Class A" in the source aligns specifically with "Class A" in the target.
  2. Joint Support Alignment Proxy: To overcome the lack of target labels, the framework uses a discriminator trained on the outer product of features and pseudo-labels ($Z \otimes \hat{Y}$). This serves as an effective proxy for aligning joint distributions.
  3. Theoretical Risk Bound: The paper provides mathematical proof that minimizing CSSD offers a tighter upper bound on target error than previous marginal support alignment methods.
  4. Entropy Conditioning and VAT: The training objective incorporates conditional entropy to push decision boundaries away from data clusters and Virtual Adversarial Training (VAT) to ensure local smoothness (Lipschitz continuity).

Experimental Evaluation

CASUAL was evaluated against state-of-the-art (SOTA) baselines on several benchmarks, including USPS $\to$ MNIST, STL $\to$ CIFAR, and VisDA-2017. To test robustness, the authors simulated varying degrees of label shift using a Dirichlet distribution (controlled by parameter $\alpha$).

Key Results

  • Superior Performance under Extreme Shift: In the USPS $\to$ MNIST task with severe shift ($\alpha=0.5$), CASUAL achieved 88.3% accuracy, significantly outperforming specialized label-shift methods like sDANN (85.2%) and standard methods like DANN (72.3%).
  • Consistency: Across 15 different transfer tasks, CASUAL achieved the highest average accuracy in 10 of them.
  • Feature Separation: Qualitative visualizations indicate that CASUAL creates distinct, well-separated clusters for different classes in the target domain, whereas competing methods like CDAN or ASA often result in overlapping class representations when labels are skewed.

Conclusion

CASUAL addresses a significant gap in UDA by focusing on conditional support alignment rather than global distribution matching. By relaxing the alignment criteria to focus on the "where" rather than the "how much," the model remains robust even when class proportions change drastically. Future work may extend this approach to Domain Generalization and Universal Domain Adaptation, where the source and target domains may not share identical label sets.

Summary updated

BibTeX
@misc{nguyen2023conditional,
  author = {Anh T. Nguyen and Lam Tran and Anh Tong and Tuan-Duy H. Nguyen and Toan Tran},
  title = {{Conditional Support Alignment for Domain Adaptation with Label Shift}},
  year = {2023},
  eprint = {2305.18458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18458},
}
Figure