Joint Semantic Domain Alignment and Target Classifier Learning for Unsupervised Domain Adaptation

Dongdong Chen, Yisen Wang, Jinfeng Yi, Zaiyi Chen, Zhi-Hua ZhouarXiv 2019

Abstract

Deep learning models often suffer from performance degradation when deployed on data from a different distribution than their training set, a phenomenon known as domain shift. Unsupervised Domain Adaptation (UDA) addresses this by transferring knowledge from a labeled source domain to an unlabeled target domain. This paper introduces SDA-TCL, a novel method that jointly optimizes semantic domain alignment and target classifier learning. By utilizing shared class centers in the feature space and a custom discriminative center loss, SDA-TCL bridges the gap between feature embeddings and label outputs, achieving state-of-the-art results on standard cross-domain image classification benchmarks.

The Challenge of Domain Shift

Historically, UDA methods have followed two distinct paths. Semantic Domain Alignment focuses on aligning the distributions of the source and target domains class-by-class in the feature space (embeddings). Conversely, Target Classifier Learning utilizes pseudo-labels to train a classifier directly on the structural features of the target domain, typically in the label space (softmax outputs).

The primary issue is that these two objectives are rarely combined effectively. Alignment usually occurs in the feature space, while classifier learning happens in the label space. Naively combining them often leads to conflicts where one objective neglects the other, resulting in suboptimal adaptation.

Comparison of (a) Semantic Domain Alignment, (b) Target Classifier Learning, and (c) the proposed SDA-TCL method.

Methodology: The SDA-TCL Framework

To resolve the space-mismatch problem, SDA-TCL moves both objectives entirely into the feature space using shared class centers. This approach forces intra-class compactness and inter-class separation simultaneously across both domains.

Shared Class Centers and Discriminative Loss

The core innovation lies in the design of the loss functions. Instead of relying solely on standard softmax loss, which only draws decision boundaries, the authors implement a Discriminative Center Loss. This loss explicitly pulls samples toward their assigned class center in the feature space while pushing them away from other class centers by a defined margin.

Geometric illustration of the joint optimization using shared class centers and discriminative center loss in the feature space.
  • Semantic Domain Alignment: By forcing source and target images of the same class toward the exact same geometric point (the shared center), the domains are inherently aligned.
  • Target Classifier Learning: Target samples are assigned pseudo-labels based on their proximity to these centers. The network is then trained to pull target samples toward their pseudo-label centers, weighted by the model's confidence.
  • Initialization: To generate reliable initial pseudo-labels, the model utilizes standard adversarial domain alignment (Reverse Gradient) during the early stages of training.

Theoretical Foundation

In UDA theory, the "expected error of the ideal joint hypothesis" ($C$) is a critical term often ignored by prior work. The authors provide mathematical proof that their joint optimization method explicitly minimizes $C$. By ensuring that the optimal classifier for the source domain is also optimal for the target domain, SDA-TCL provides a more robust theoretical guarantee for successful adaptation.

Experimental Results

The authors evaluated SDA-TCL on three major benchmarks: Office-31, Digits (MNIST/USPS), and VisDA.

  • Office-31: SDA-TCL achieved an average accuracy of 90.2% across all transfer tasks, significantly outperforming strong baselines like CDAN+E (87.7%). It showed particularly strong gains on difficult tasks such as Webcam $\rightarrow$ Amazon.
  • VisDA: On the challenging Synthetic $\rightarrow$ Real task, the method reached 81.9% accuracy. Notably, it achieved this with a single prediction per image, rivaling ensemble methods that require multiple augmentations.
  • Ablation Study: The results confirmed that the holistic feature-space approach significantly outperforms a naive linear combination of standard alignment and classification losses (85.6% vs 80.4% on Office-31).

Conclusion

SDA-TCL demonstrates that bridging the gap between semantic alignment and classifier learning within a unified feature space is highly effective for UDA. By using shared centers and a discriminative loss, the method ensures that features are not only aligned across domains but also highly discriminative for classification. Future work may explore the application of these compact feature spaces to "learnware" and model reusability in entirely new tasks.

Summary updated

BibTeX
@misc{chen2019joint,
  author = {Dongdong Chen and Yisen Wang and Jinfeng Yi and Zaiyi Chen and Zhi-Hua Zhou},
  title = {{Joint Semantic Domain Alignment and Target Classifier Learning for Unsupervised Domain Adaptation}},
  year = {2019},
  eprint = {1906.04053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.04053},
}
Figure