CASUAL: Conditional Support Alignment for Domain Adaptation with Label Shift

Anh T. Nguyen, Lam Tran, Anh Tong, Tuan-Duy H. Nguyen, Toan TranAAAI 2025

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 label distribution shift. In this paper, we propose a novel Conditional Adversarial SUpport ALignment (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 discriminative 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. Our empirical results demonstrate that CASUAL outperforms other state-of-the-art methods on different UDA benchmark tasks under different label shift conditions.

Introduction

In the field of machine learning, Unsupervised Domain Adaptation (UDA) is a critical technique for deploying models in environments different from their training data. Traditionally, UDA methods have focused on the "covariate shift" assumption, where the distribution of input features changes, but the relationship between those features and their labels remains constant. However, real-world applications frequently encounter "label shift," where the frequency of classes themselves changes between the source and target domains.

For example, a diagnostic model trained in a region where one disease is common may fail when deployed in a region where a different disease is more prevalent. In such cases, standard UDA methods that attempt to force the target feature distribution to match the source distribution—known as marginal alignment—often lead to significant errors. The proposed framework, CASUAL (Conditional Adversarial SUpport ALignment), addresses this by shifting the focus from global distribution matching to class-specific support alignment.

The Challenge of Label Shift

Traditional UDA methods often try to align the marginal distributions of features. Under label shift, this approach is fundamentally flawed. If the target domain has a vastly different class balance than the source, forcing the overall "blobs" of data to overlap can cause the model to map target samples of one class onto source features of a completely different class just to achieve statistical similarity. This "smushing" effect destroys the discriminative power of the learned representations.

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

As illustrated in the figure above, standard distribution alignment (a) and marginal support alignment (b) fail to account for the internal class structure. CASUAL introduces Conditional Support Alignment (c), which ensures that the boundaries (supports) of each class are aligned individually, allowing for differences in class proportions without sacrificing classification accuracy.

Methodology: The CASUAL Framework

CASUAL moves away from probability density matching toward a more surgical approach based on four key pillars:

  1. Conditional Symmetric Support Divergence (CSSD): Instead of aligning the entire feature space, CASUAL minimizes the divergence between the regions where data exists (the supports) for each class individually. This ensures the "footprint" of a class in the source matches its footprint in the target.
  2. Joint Support Alignment: Because target labels are unavailable during training, the authors utilize pseudo-labels. They prove that aligning the joint distribution of features and these pseudo-labels ($P_{Z, \hat{Y}}$) serves as a robust proxy for aligning the true conditional supports.
  3. Adversarial Training: The framework employs a discriminator trained on the outer product of features and labels ($Z \otimes Y$). This allows the discriminator to identify domain differences at a class-specific level, while the feature extractor learns to align the supports to "fool" the discriminator.
  4. Stability Regularization: To prevent the model from becoming overly sensitive to noise or incorrect pseudo-labels, the authors incorporate Virtual Adversarial Training (VAT) to ensure smoothness (Lipschitz continuity) and Entropy Minimization to encourage confident predictions on target data.

Experimental Evaluation

The authors evaluated CASUAL against state-of-the-art methods using several standard UDA benchmarks, simulating varying degrees of label shift using a Dirichlet distribution (parameterized by $\alpha$):

  • USPS → MNIST: In digit recognition tasks under extreme shift ($\alpha = 0.5$), CASUAL achieved 88.3% accuracy, significantly outperforming specialized methods like OSTAR (84.7%) and standard methods like CDAN (70.7%).
  • STL → CIFAR: CASUAL maintained a consistent lead across all shift levels, with an average accuracy of 75.1%.
  • VisDA-2017: On this large-scale synthetic-to-real challenge, CASUAL proved its scalability and robustness.

Conclusion and Future Work

CASUAL demonstrates that aligning conditional supports is a superior strategy for UDA when label distributions are skewed. By providing a new theoretical target risk bound, the paper mathematically justifies why this approach succeeds where marginal alignment fails.

While the method currently relies on the quality of initial pseudo-labels, future work aims to extend this conditional alignment to even more complex scenarios, such as Domain Generalization (where the target is unknown during training) and Universal Domain Adaptation (where the source and target domains may not share the same set of classes).

Summary updated

BibTeX
@inproceedings{nguyen2025casual,
  author = {Anh T. Nguyen and Lam Tran and Anh Tong and Tuan-Duy H. Nguyen and Toan Tran},
  title = {{CASUAL: Conditional Support Alignment for Domain Adaptation with Label Shift}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=ulPgb07CYK},
}
Figure