Principled Hybrids of Generative and Discriminative Domain Adaptation

Han Zhao, Zhenyao Zhu, Junjie Hu, Adam Coates, Geoffrey J. GordonarXiv 2017

Introduction

Machine learning models often struggle when the data they encounter in the real world (the target domain) differs from the data they were trained on (the source domain). This phenomenon, known as "domain shift," typically forces practitioners to choose between two modeling extremes: discriminative models, which excel at prediction ($p(y|x)$) but ignore unlabeled data structure, and generative models, which capture the data distribution ($p(x)$) but often lack predictive power.

This paper introduces a unified probabilistic framework that blends these two approaches. By treating generative and discriminative modeling as specific choices of parameter priors, the authors derive DAuto, a neural network model that provides a theoretical justification for the empirical success of autoencoders in domain adaptation.

A Unified Probabilistic Framework

The core of the proposed method is a hybrid framework where model parameters for the marginal distribution ($p(x)$) and the conditional distribution ($p(y|x)$) share a common subspace. This allows the model to interpolate between purely generative and purely discriminative objectives.

The KDE Connection and Autoencoders

One of the paper's most significant theoretical contributions is bridging deep learning heuristics with classical statistics. By using non-parametric Kernel Density Estimation (KDE) to model the data distribution, the authors mathematically prove that the standard reconstruction loss used in autoencoders is an upper bound on the negative marginal log-likelihood of the data. This provides a formal probabilistic "reason" to use autoencoders for domain adaptation: they are essentially performing approximate maximum likelihood estimation for the data distribution.

Conceptual overview of domain adaptation via shared subspaces and density estimation.

The DAuto Model

The authors instantiate this framework as DAuto, a neural network architecture designed to find a transformation that makes source and target data indistinguishable in a latent "feature space." The DAuto objective function minimizes three components simultaneously:

  1. Prediction Loss: Ensuring high accuracy on labeled source data.
  2. Reconstruction Loss: Maintaining robust representations across both domains (the generative component).
  3. Domain Adversarial Loss: Forcing the learned features to be domain-invariant.
Architecture of the DAuto model showing the interaction between the encoder (f), decoder (g), and predictor (h).

Experimental Results

The authors evaluated DAuto across a diverse set of benchmarks, demonstrating its versatility across different modalities:

  • Image Classification (MNIST/USPS/SVHN): DAuto improved performance over "No-Adapt" baselines in the vast majority of task pairs.
  • Sentiment Analysis (Amazon Reviews): DAuto achieved the highest accuracy on 12 out of 16 adaptation tasks, consistently outperforming popular competitors like Domain-Adversarial Neural Networks (DANN) and Ladder Networks.
  • Speech Recognition: In accent adaptation tasks (e.g., US English to Mandarin-accented English), DAuto significantly reduced Connectionist Temporal Classification (CTC) loss. Unlike previous methods, DAuto’s neural architecture scales efficiently to high-dimensional sequential data.

Key Insights and Conclusion

The success of DAuto highlights the importance of the "shared subspace." Domain adaptation is most effective when the encoder serves three masters: the predictor, the decoder, and the domain classifier. Furthermore, the experiments showed that DAuto is particularly effective in low-resource settings, where its generative component extracts more useful signals from unlabeled data than purely discriminative methods.

While the model relies on the existence of a shared underlying structure between domains, it provides a principled, theoretically grounded path forward for building robust models that generalize to new environments.

Summary updated

BibTeX
@misc{zhao2017principled,
  author = {Han Zhao and Zhenyao Zhu and Junjie Hu and Adam Coates and Geoffrey J. Gordon},
  title = {{Principled Hybrids of Generative and Discriminative Domain Adaptation}},
  year = {2017},
  eprint = {1705.09011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.09011},
}
Figure