Duplex Generative Adversarial Network for Unsupervised Domain Adaptation

Lanqing Hu, Meina Kan, Shiguang Shan, Xilin Chen

Abstract

Unsupervised Domain Adaptation (UDA) is a critical challenge in deep learning, where models trained on a labeled source domain must generalize to an unlabeled target domain with a different distribution. We present the Duplex Generative Adversarial Network (DupGAN), a framework that simultaneously learns domain-invariant features and performs image-to-image translation. By utilizing a unique "duplex" discriminator setup, DupGAN ensures that category-specific information is preserved while bridging the domain gap. Experimental results on challenging benchmarks, such as MNIST-to-SVHN, demonstrate that DupGAN achieves state-of-the-art performance, including a significant 10% accuracy boost over previous methods.

Introduction

Deep learning models often suffer from "brittleness" when encountering domain shift—a discrepancy between the training (source) and testing (target) data distributions. For instance, a digit classifier trained on the clean MNIST dataset typically fails when applied to Street View House Numbers (SVHN). Unsupervised Domain Adaptation (UDA) addresses this by transferring knowledge from the source to the target without requiring target labels. The primary objective is to learn a representation that is domain-invariant yet remains category-informative. Previous approaches often struggled with "mode collapse" or structural distortions during alignment, failing to maintain the underlying data geometry.

Methodology

The DupGAN framework addresses these challenges through a tripartite architecture consisting of an Encoder, a Generator, and a pair of specialized discriminators.

The DupGAN architecture, featuring an Encoder (E), Generator (G), and Duplex Discriminators (D).

Core Components

  1. The Encoder ($E$): Maps input images from both domains into a shared latent space ($z$).
  2. The Generator ($G$): Decodes the latent representation $z$ back into the image space. Conditioned on a domain code, it performs four distinct tasks: reconstructing source/target images and performing cross-domain translation (e.g., transforming an MNIST digit into an SVHN-style image).
  3. Duplex Discriminators ($D^s$ and $D^t$): Unlike standard GANs, DupGAN employs two discriminators—one for each domain. Each performs a $(c+1)$-way classification, identifying the specific category of real images or flagging generated images as "fake."

Training and Regularization

The generator is trained to produce transformed images that are indistinguishable from real images in the target domain while retaining their original category. A separate Category Classifier ($C$) operates on the latent space to provide pseudo-labels for unlabeled target data. Furthermore, the model uses image reconstruction as a regularizer, ensuring that the latent code $z$ retains vital identity information during the adaptation process.

Experimental Results

DupGAN was evaluated on standard benchmarks including digit classification (MNIST, USPS, SVHN) and object recognition (Office-31).

Visualization of feature alignment before and after adaptation. The process successfully clusters source and target samples by category.

Performance Highlights

  • MNIST $\to$ SVHN: In this difficult "uphill" task, DupGAN reached 62.65% accuracy, a substantial improvement over the previous state-of-the-art of ~52.8%.
  • SVHN $\to$ MNIST: The model achieved 92.46%, outperforming other GAN-based methods like ADDA and CoGAN.
  • Office-31: On the Amazon $\to$ Webcam task, it achieved 73.2%, surpassing standard feature-alignment methods like DANN.

Visualizations of the latent space (Figure 1) confirm that DupGAN successfully aligns the source and target distributions into well-separated category clusters, preserving the semantic structure of the data.

Discussion and Conclusion

The success of DupGAN stems from its ability to treat domain adaptation as a generative task. By ensuring the latent space can generate realistic images in either domain, the model guarantees that the learned features are truly domain-invariant. While the duplex setup introduces some computational overhead and sensitivity to pseudo-label quality, its ability to prevent structural distortion marks a significant step forward in UDA. Future research will focus on scaling this approach to larger datasets with more complex, fine-grained categories.

Summary updated

BibTeX
@inproceedings{hu2018duplex,
  author = {Lanqing Hu and Meina Kan and Shiguang Shan and Xilin Chen},
  title = {{Duplex Generative Adversarial Network for Unsupervised Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00162},
}
Figure