Understanding and Robustifying Sub-domain Alignment for Domain Adaptation

Yiling Liu, Juncheng Dong, Ziyang Jiang, Ahmed Aloui, Keyu Li, Michael Hunter Klein, Vahid Tarokh, David E. Carlson

In machine learning, "domain shift" occurs when a model trained on a source dataset fails to generalize to a different target dataset. While traditional Unsupervised Domain Adaptation (UDA) focuses on global distribution alignment, recent empirical successes have favored sub-domain or class-specific alignment. This paper provides a formal theoretical justification for this approach and introduces DARSA, a robust algorithm designed to handle significant label shifts between domains.

Theoretical Foundation: Why Sub-domain Alignment Works

The core contribution of this work is the first rigorous proof that aligning sub-domains yields a tighter error bound than aligning entire domains. Using the Wasserstein-1 distance, the authors demonstrate that the weighted sum of sub-domain distances is mathematically guaranteed to be smaller than the distance between global marginal distributions, provided feature distributions are approximately Gaussian.

Comparison of global distribution alignment (a) versus sub-domain alignment (b, c). The sub-domain distances (0.0018) are significantly smaller than the global distance (0.63), confirming a tighter optimization bound.

This "Aha!" moment explains why class-wise matching consistently outperforms global matching in practice: it provides a more precise optimization objective for the neural network.

The DARSA Algorithm

Despite the power of sub-domain alignment, it is often vulnerable to label shift—situations where class proportions differ between the source and target (e.g., a dataset with 50% cats in the source but 90% in the target). Standard methods often collapse under these conditions.

To address this, the authors proposed Domain Adaptation via Rebalanced Sub-domain Alignment (DARSA). The algorithm incorporates several key mechanisms:

  • Target Weight Estimation: The model infers the importance ($w_T^k$) of each sub-domain within the unlabeled target data.
  • Weighted Loss Functions: It reweights both the classification and discrepancy losses to prioritize classes prevalent in the target domain.
  • Sinkhorn Optimization: It utilizes the Sinkhorn algorithm for efficient Wasserstein distance approximation during training.
Illustration of the DARSA mechanism mapping MNIST to MNIST-M. The algorithm estimates weights ($w_T^k$) to rebalance sub-domain alignment under label shift.

Experimental Results

DARSA was evaluated across diverse benchmarks, including Digits (MNIST, SVHN), biological data (Tail Suspension Test), and the large-scale VisDA-2017 computer vision dataset.

  • Extreme Imbalance: In SVHN → MNIST tasks with strong label imbalance, DARSA achieved 83.5% accuracy, significantly outperforming standard methods like DANN and CDAN, which often fell below 60%.
  • Biological Utility: On the TST dataset (Clock-Δ19 vs. Wildtype mice), DARSA reached 86.6% accuracy, a 7% improvement over the next best baseline.
  • Scalability: On VisDA-2017, DARSA maintained a high average accuracy of 72.2% even under strong synthetic-to-real imbalance.

Conclusion and Future Work

By proving that "aligning the parts is better than aligning the whole," this research solidifies the theoretical standing of sub-domain alignment. DARSA further robustifies these methods against real-world label imbalances. Future research may extend this framework to more complex scenarios, such as datasets with thousands of classes or applications in causal effect estimation.

Summary updated

BibTeX
@article{liu2025understanding,
  author = {Yiling Liu and Juncheng Dong and Ziyang Jiang and Ahmed Aloui and Keyu Li and Michael Hunter Klein and Vahid Tarokh and David E. Carlson},
  title = {{Understanding and Robustifying Sub-domain Alignment for Domain Adaptation}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure