A General Representation-Based Approach to Multi-Source Domain Adaptation

Ignavier Ng, Yan Li, Zijian Li, Yujia Zheng, Guangyi Chen, Kun Zhang

A fundamental challenge in machine learning is ensuring models generalize when the real-world data they encounter (the target domain) differs from their training data (source domains). A recent paper tackles this problem in Unsupervised Domain Adaptation (UDA) by introducing GAMA, a framework that identifies the target joint distribution without relying on the restrictive assumptions common in previous methods.

The Problem: Identifiability vs. Invariance

In UDA, models are trained on labeled data from multiple source domains (e.g., photos of cars) and must perform well on unlabeled data from a target domain (e.g., sketches of cars).

The core difficulty is identifiability. Without target labels, there are infinitely many ways to map features to labels that fit the observed data. To bypass this, existing methods often assume specific, simplified types of distribution shifts—such as "covariate shift" (only features change) or "target shift" (only label proportions change). However, real-world shifts are rarely this clean.

Furthermore, many deep learning approaches attempt to learn "invariant" representations—features that look identical across all domains. The authors argue this approach is overly restrictive and often discards valuable predictive information.

The GAMA Framework and Theoretical Breakthrough

To address these limitations, the authors propose the General Approach for Multi-source domain Adaptation (GAMA). Grounded in causal graphical models, GAMA focuses on the Markov Blanket (MB)—the specific set of variables containing all the information needed to predict a target variable $Y$.

The paper's theoretical breakthrough is demonstrating that simply learning the Markov Blanket as a monolithic block is "underspecified" for domain adaptation. To truly identify how a distribution shifts across domains, the MB must be partitioned into three distinct causal components:

  1. Parents ($Z_{pa}$): Variables that causally influence the label.
  2. Children ($Z_{ch}$): Variables influenced by the label.
  3. Spouses ($Z_{sps}$): Other parents of those children.
Causal graphical model illustrating the latent variables and their relationship to the label Y and observations X.

The authors provide mathematical proof that if these subspaces can be disentangled, the joint distribution in the target domain becomes identifiable, even under complex distribution shifts. Instead of forcing the model to find features that don't change, GAMA focuses on finding features where the change itself is identifiable and modelable.

The GAMA Architecture

Translating this theory into practice, the GAMA architecture utilizes a hierarchical Variational Autoencoder (VAE) setup.

The GAMA architecture featuring primary and auxiliary VAE modules for disentangling the Markov Blanket.
  • Primary VAE: Maps high-dimensional inputs (like image pixels) into a latent space $Z$.
  • Partitioning: This latent space is explicitly partitioned into the MB components ($Z_{pa}$, $Z_{ch}$, $Z_{sps}$).
  • Auxiliary VAEs: These modules explicitly model the causal relationships, such as how parents produce the label, and how the label and spouses produce children.
  • Minimal Change Principle: The model assumes that while distributions shift across domains, these shifts lie on a low-dimensional manifold. This allows the model to estimate the target parameters using only unlabeled data.

Key Results

GAMA establishes new state-of-the-art (SOTA) performance on standard UDA benchmarks:

  • Office-Home: (65 categories across Art, Clipart, Product, Real-world) Achieved an average accuracy of 77.3%, surpassing the previous best method by 1.1%.
  • PACS: (7 categories across Photo, Art, Cartoon, Sketch) Achieved an average accuracy of 93.7%, with a standout 98.8% accuracy in the "Photo" domain.

Ablation studies confirmed that removing the VAE components or the specific shift-modeling mechanisms led to significant accuracy drops, validating the necessity of the partitioned approach.

Limitations and Future Work

While highly effective, GAMA's reliance on multiple VAEs and a hierarchical structure makes it computationally more complex to train than simpler adversarial networks. Additionally, the underlying theory requires "sufficient changes" across source domains; if source domains are too similar, the model may struggle to identify the latent structure. Future work will focus on scaling GAMA to larger datasets and extending it to other modalities like video, speech, and natural language.

Summary updated

BibTeX
@inproceedings{ng2025general,
  author = {Ignavier Ng and Yan Li and Zijian Li and Yujia Zheng and Guangyi Chen and Kun Zhang},
  title = {{A General Representation-Based Approach to Multi-Source Domain Adaptation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=BuN4FX0iBr},
}
Figure