Learning Disentangled Semantic Representation for Domain Adaptation

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

Abstract

Domain adaptation is an important but challenging task. Most existing domain adaptation methods struggle to extract domain-invariant representations on feature spaces where domain and semantic information are entangled. Unlike previous efforts, we aim to extract domain-invariant semantic information through a latent Disentangled Semantic Representation (DSR). We assume the data generation process is controlled by two independent sets of variables: semantic latent variables and domain latent variables. We employ a variational auto-encoder (VAE) to reconstruct these variables and a dual adversarial network to disentangle them. Experimental studies demonstrate that our model yields state-of-the-art performance on several domain adaptation benchmark datasets.

The Challenge of Domain Shift and Entanglement

In unsupervised domain adaptation (UDA), the goal is to leverage labeled data from a source domain to improve performance on an unlabeled target domain. The primary obstacle is domain shift—the statistical discrepancy between these domains.

Traditional methods attempt to align features in a shared space. However, these approaches often suffer from "false alignment." Because semantic information (the object's identity) and domain information (style, lighting, background) are entangled, a model might incorrectly align a "pig" in the source domain with a "pink hairdryer" in the target domain due to shared low-level features like color or shape. This is often referred to as the "Peppa Pig problem," where environmental contamination distorts the semantic axis.

Distorted feature space where semantic and domain information are entangled, leading to potential false alignment (e.g., the "Peppa Pig" problem).

The DSR Framework

The proposed Disentangled Semantic Representation (DSR) model addresses this by explicitly separating the latent space into two independent components: $z_y$ (semantic/label information) and $z_d$ (domain-specific information).

1. Reconstruction via VAE

The model utilizes a backbone feature extractor (e.g., ResNet) followed by a Variational Auto-Encoder. The encoder maps input features into the two distinct latent vectors, $z_y$ and $z_d$, while the decoder ensures these variables can reconstruct the original feature representation, preserving the underlying data manifold.

2. Dual Adversarial Disentanglement

To ensure true independence between $z_y$ and $z_d$, DSR employs a dual adversarial strategy:

  • The Semantic Path: A label classifier $C_y$ predicts the class from $z_y$. Simultaneously, a domain classifier $C_d$ is connected via a Gradient Reversal Layer (GRL) to strip $z_y$ of any domain-specific information.
  • The Domain Path: A domain classifier $C_d$ identifies the domain from $z_d$. To ensure $z_d$ contains no semantic information, a label classifier $C_y$ is trained to maximize entropy, effectively making $z_d$ uninformative for class prediction.
The DSR architecture featuring reconstruction via VAE and disentanglement via dual adversarial paths to separate semantic ($z_y$) and domain ($z_d$) variables.

Experimental Results

The DSR model was evaluated on two prominent benchmarks: Office-31 and Office-Home.

  • Office-31: DSR achieved an average accuracy of 88.6%, outperforming strong baselines such as CDAN (87.7%). Notably, it excelled in difficult tasks like DSLR $\to$ Amazon (73.5%), where the domain gap is significant.
  • Office-Home: On this more complex dataset (65 categories across 4 domains), DSR reached 64.9%, a substantial improvement over the previous state-of-the-art (CDAN at 62.8%).

Qualitative analysis using t-SNE visualizations confirmed that DSR produces tighter, more distinct class clusters across domains compared to standard adversarial methods like DANN, proving the effectiveness of the disentanglement process.

Conclusion

DSR demonstrates that forcing independence between semantic and domain latent variables is a powerful strategy for domain adaptation. While the model shows some sensitivity to data scarcity in very small domains (like DSLR), its ability to discard environmental "noise" while retaining the "essence" of the object sets a new standard for UDA. Future work may explore applying these disentanglement principles to more complex, ambiguous real-world 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