Learning Disentangled Semantic Representation for Domain Adaptation

Ruichu Cai, Zijian Li, Pengfei Wei, Jie Qiao, Kun Zhang, Zhifeng Hao

Introduction

In the field of machine learning, Domain Adaptation (DA) addresses the critical challenge of transferring knowledge from a labeled "source" domain to an unlabeled "target" domain. While deep learning models excel when training and testing data share the same distribution, they often falter under domain shift—variations in lighting, background, or style that distinguish datasets.

The researchers propose Disentangled Semantic Representation (DSR), a novel framework that moves beyond simple feature alignment. By separating an image's latent features into two independent variables—semantics (meaning) and domain (environment)—DSR effectively filters out "domain noise" to achieve superior classification accuracy on target datasets.

The Problem: Entanglement and False Alignment

Traditional domain adaptation methods typically attempt to align the feature distributions of the source and target domains. However, the authors identify a significant pitfall: False Alignment. Because semantic information (what an object is) and domain information (how it looks) are often "entangled" in standard feature spaces, a model might mistakenly align unrelated objects that share superficial visual traits.

The "Peppa Pig" problem: Entangled semantic and domain features can lead to false alignment across domains.

As illustrated in the "Peppa Pig" example, a model might align a pink pig from the source domain with a pink hairdryer in the target domain simply because they share a color. To prevent this, it is necessary to isolate the core "meaning" of the image from its domain-specific style.

Methodology: The DSR Framework

The DSR model is built on a causal assumption: an image $x$ is generated by two independent factors: $z_y$ (semantic variables) and $z_d$ (domain variables). The architecture employs three primary mechanisms to achieve this separation:

  1. VAE Reconstruction: The model uses a Variational Auto-Encoder (VAE) to map input features into the latent variables $z_y$ and $z_d$, then uses a decoder to reconstruct the original features. This ensures the latent space captures all essential information and prevents the loss of useful features during the adaptation process.
  2. Dual Adversarial Disentanglement: To ensure $z_y$ and $z_d$ are truly independent, the model uses a dual-module strategy:
  3. Semantic Module: Forces $z_y$ to predict labels accurately while using a Gradient Reversal Layer (GRL) to ensure it remains invariant to the domain.
  4. Domain Module: Forces $z_d$ to identify the domain while using Maximum Entropy Loss to ensure it carries no information about the object's label.
  5. Domain Adaptation: The model performs adaptation specifically on the disentangled semantic variables ($z_y$), ensuring the final classifier focuses solely on the object's meaning.
The DSR architecture combines VAE reconstruction with dual adversarial disentanglement.

Experimental Evaluation

The DSR framework was evaluated on two major benchmarks: Office-31 (4,652 images, 31 categories) and Office-Home (15,500 images, 65 categories).

  • Office-31: DSR achieved a state-of-the-art average accuracy of 88.6%, outperforming strong baselines like CDAN and JAN. It showed significant improvements in difficult tasks, such as the DSLR to Amazon transition.
  • Office-Home: The model achieved an average accuracy of 64.9%.

Visual verification using t-SNE plots confirmed that DSR produces tighter, more distinct semantic clusters compared to previous methods, demonstrating that the features are better aligned by category rather than domain.

Conclusion and Future Work

DSR demonstrates that disentangling semantic and domain information is a powerful strategy for overcoming domain shift. By mathematically ensuring the independence of these latent variables, the model avoids the trap of false alignment.

While highly effective, the authors noted that the VAE reconstruction requires sufficient data density to learn the latent manifold, showing slightly lower performance on extremely small datasets. Future research may explore applying this disentanglement approach to multi-source domain adaptation and zero-shot learning scenarios.

Summary updated

BibTeX
@inproceedings{cai2019learning,
  author = {Ruichu Cai and Zijian Li and Pengfei Wei and Jie Qiao and Kun Zhang and Zhifeng Hao},
  title = {{Learning Disentangled Semantic Representation for Domain Adaptation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/285},
}
Figure