Abstract
Unsupervised Domain Adaptation (UDA) often employs domain-adversarial training to align latent representations of source and target data. While effective under ideal conditions, forcing exact distribution alignment can lead to significant performance degradation when label distributions shift between domains. This paper proposes an asymmetrically-relaxed distribution alignment strategy. By requiring only that the source distribution "covers" the target distribution—rather than matching it perfectly—the proposed method maintains robustness against label shift while preserving adaptation performance.
Introduction
In machine learning, the assumption that training (source) and test (target) data share the same distribution is frequently violated. Unsupervised Domain Adaptation (UDA) addresses this by learning representations where source and target data are indistinguishable. The standard approach, exemplified by Domain-Adversarial Neural Networks (DANN), seeks to minimize the divergence between latent distributions $p_S(z)$ and $p_T(z)$. However, researchers at Carnegie Mellon University argue that this "perfect" alignment is often a trap, particularly when class proportions change between domains.
The Problem: Label Distribution Shift
The fundamental flaw in exact alignment lies in Label Distribution Shift. Consider a classifier trained on a balanced dataset (50% cats, 50% dogs) but deployed in an environment where 90% of instances are cats. If the model successfully forces the latent distributions to match perfectly, it is mathematically coerced into predicting a 50/50 split on the target data to maintain alignment. This forced symmetry guarantees a high error rate, as the model ignores the true class proportions of the target domain.
Methodology: Asymmetrically-Relaxed Alignment
To resolve this, the authors propose a shift from equality to coverage. Instead of $p_S(z) = p_T(z)$, they aim to bound the density ratio: $$\frac{p_T(z)}{p_S(z)} \leq 1 + \beta$$ where $\beta$ is a relaxation parameter. This asymmetric requirement ensures that the types of features present in the target domain are represented in the source domain, without forcing the proportions to match.
The implementation utilizes $\beta$-admissible distances, which modify standard divergence measures (like Jensen-Shannon or Wasserstein distance) to penalize mismatches only when the density ratio exceeds the threshold. Practical implementations include:
- Relaxed f-Divergences: Partially linearized versions of standard divergences.
- Relaxed Wasserstein Distance: Optimal transport focused on regions exceeding the density ratio.
- Reweighting by Sorting: A mini-batch technique that aligns only the most "domain-representative" fraction of samples.
Experimental Evaluation
The approach was evaluated on synthetic and real-world benchmarks designed to test resilience to label shift:
- Synthetic Mixture-of-Gaussians: Under a severe 10/90 label shift, standard DANN performance dropped to 59.1% accuracy. The relaxed version (sDANN-$\beta$) achieved near-perfect 99.9% accuracy.
- Digit Recognition (MNIST $\to$ USPS): When the target domain contained only a subset of digits (e.g., 0-4), standard DANN (50%) performed worse than no adaptation at all (74.3%). The relaxed method (sDANN-4) restored performance to 81%.
Crucially, in scenarios with no label shift, the relaxed method performed identically to standard DANN, indicating no penalty for the added robustness.
Conclusion
Exact distribution alignment is a sufficient but unnecessary condition for domain adaptation. Asymmetry is key: the source must cover the target, but the target need not cover the source. While the choice of the relaxation parameter $\beta$ and enforcing Lipschitz continuity in deep networks remain challenges, asymmetrically-relaxed alignment provides a theoretically grounded and practically effective solution for robust domain adaptation under label shift.
Summary updated