Domain-Invariant Adversarial Learning for Unsupervised Domain Adaption

Yexun Zhang, Ya Zhang, Yanfeng Wang, Qi TianarXiv 2018

Introduction

Unsupervised Domain Adaptation (UDA) addresses the "domain shift" problem, where a model trained on a labeled source domain fails to generalize to an unlabeled target domain due to differing data distributions. While traditional methods focus on aligning global marginal distributions, they often sacrifice feature discriminability or fail to align class-specific conditional distributions. The Domain-Invariant Adversarial Learning (DIAL) network addresses these challenges by combining adversarial training with center loss and conditional alignment.

The DIAL Framework

The DIAL architecture utilizes a single shared encoder to map both source and target inputs into a universal feature space. This design forces the model to learn domain-agnostic representations and simplifies inference, as domain metadata is not required at test time.

The DIAL architecture featuring a shared encoder, classifier, and discriminator with a multi-pronged loss strategy.

The training objective is defined by three primary loss components:

  1. Adversarial Learning ($L_{GAN}$): A domain discriminator and the shared encoder engage in a minimax game, pushing the encoder to produce features that are indistinguishable between domains.
  2. Center Loss ($L_{cs}$): To maintain discriminative power, center loss minimizes the distance between features and their corresponding class centers, ensuring tight, well-separated clusters.
  3. Conditional Distribution Alignment ($L_{ct}$): For the unlabeled target domain, the model generates high-confidence pseudo-labels (based on a threshold $T$). It then applies center loss to these target samples, effectively aligning class-specific clusters across both domains.

Experimental Results

DIAL was evaluated on standard benchmarks including digital datasets (MNIST, USPS, SVHN), Office-31, and ImageCLEF-DA. It achieved state-of-the-art performance, notably reaching 95.85% accuracy on the challenging SVHN → MNIST task, significantly outperforming previous methods like ADDA (76.0%) and DIFA (89.2%). On Office-31, DIAL achieved an average accuracy of 86.8%, rivaling more complex architectures like iCAN and JAN despite its more streamlined design.

Visualizing Feature Alignment

The effectiveness of DIAL's loss components is best observed through t-SNE visualizations of the feature space. These visualizations demonstrate how the model moves from broad domain alignment to precise class-level clustering.

t-SNE visualizations showing how adding center loss ($L_{cs}$) and conditional alignment ($L_{ct}$) leads to tighter clusters and better domain overlap.

As shown in the visualizations, adversarial learning alone ($L_{GAN}$) aligns the domains but can result in "mushy" clusters where class boundaries are blurred. The addition of center loss ($L_{cs}$) pulls features toward class centers, while conditional alignment ($L_{ct}$) ensures that these clusters overlap correctly between the source and target domains, preventing misclassification.

Conclusion

DIAL demonstrates that achieving domain invariance does not have to come at the cost of feature discrimination. By integrating center loss and pseudo-labeling into an adversarial framework, the model learns a robust, shared feature space. While the method relies on a confidence threshold $T$ for pseudo-labeling, its performance across diverse benchmarks establishes it as a powerful and elegant solution for unsupervised domain adaptation.

Summary updated

BibTeX
@misc{zhang2018domain,
  author = {Yexun Zhang and Ya Zhang and Yanfeng Wang and Qi Tian},
  title = {{Domain-Invariant Adversarial Learning for Unsupervised Domain Adaption}},
  year = {2018},
  eprint = {1811.12751},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.12751},
}
Figure