Domain Adaptation with Conditional Transferable Components

Mingming Gong, Kun Zhang, Tongliang Liu, Dacheng Tao, Clark Glymour, Bernhard Schölkopf

Introduction

This paper introduces a novel framework for domain adaptation designed to handle complex scenarios where both class priors ($P(Y)$) and conditional feature distributions ($P(X|Y)$) change between training and testing environments. By identifying "Conditional Transferable Components" (CTC) that remain invariant after a simple location-scale transformation, the authors provide a robust method for transferring knowledge in causal systems—specifically, systems where the label $Y$ is the direct cause of the features $X$.

The Challenge: Generalized Target Shift

Traditional domain adaptation methods predominantly focus on covariate shift. This assumes that while the distribution of features $P(X)$ may change across domains, the relationship $P(Y|X)$ remains constant. However, in many real-world applications such as object recognition or sensor-based localization, the causal direction is actually $Y \to X$ (e.g., the physical object category determines the pixels rendered in an image).

In these "causal" scenarios, if the class balance $P(Y)$ changes, the conditional distribution $P(Y|X)$ inherently changes as well, rendering standard covariate shift methods ineffective. Furthermore, existing "invariant component" methods attempt to find transformed features $T(X)$ where the marginal distribution $P(T(X))$ is identical across domains. This strict invariance is often too restrictive for noisy, real-world data. This paper tackles the generalized target shift problem: adapting to new domains when both the class proportions and the way features manifest for those classes experience drift.

Methodology

To address generalized target shift, the authors propose two foundational concepts:

  1. Conditional Invariant Components (CIC): Components defined as $X^{ci} = W^\top X$, where the conditional distribution $P(X^{ci}|Y)$ is perfectly identical across domains.
  2. Conditional Transferable Components (CTC): A more flexible generalization where $P(X^{ct}|Y)$ is not perfectly invariant but can be matched after a Location-Scale (LS) transformation (shifting and scaling). This accounts for systematic data drifts, such as lighting changes in cameras or signal decay in WiFi sensors.

The framework relies on three key technical innovations to extract these components:

  • Reweighted MMD: Because target labels are unavailable during adaptation, the authors utilize a density ratio $\beta(y)$ to reweight source samples. They then minimize the Maximum Mean Discrepancy (MMD) between the reweighted source marginals and the target marginals to find the optimal projection matrix $W$.
  • Target Information Preservation (TIP): To prevent the algorithm from selecting "trivial" invariant components that lack predictive power (e.g., projecting to a constant value), a regularization term based on kernel dimensionality reduction is included. This ensures $X^{ct}$ retains maximum information about $Y$.
  • Manifold Optimization: The projection matrix $W$ is optimized on a Grassmann manifold. This guarantees orthonormality and prevents the extraction of redundant features.

Key Insights

  • Causal Direction Matters: Domain adaptation strategies must be tailored to the causal structure of the data. In causal cases ($Y \to X$), $P(X|Y)$ represents the stable "mechanism" of the world, distinguishing it from anticausal ($X \to Y$) problems.
  • Invariance vs. Transferability: Pure invariance is often a pipe dream in real-world datasets. By allowing for an LS shift, the model successfully corrects for systematic sensor biases or environmental changes while preserving the underlying data structure.
  • Matching Marginals Matches Conditionals: A central theoretical contribution (Theorem 1) demonstrates that, under specific non-triviality conditions, matching the marginal distributions of the components (after reweighting for class balance) effectively matches their conditional distributions.

Experimental Evaluation

The proposed methods were rigorously evaluated across synthetic and real-world datasets:

  • Robustness to Class Shift: On a 10-dimensional synthetic mixture of Gaussians, the CIC method maintained low error rates even when the class ratio $\beta_1$ varied significantly. In contrast, traditional invariant methods saw their error rates double.
  • Superiority in Sensor Adaptation: Tested on an Indoor WiFi Localization dataset—where signals decay over time and vary across hardware—the CTC-TIP method significantly outperformed competitors. When transferring knowledge between different hallways, CTC achieved ~82% accuracy compared to ~75% for standard invariant projection methods.
  • State-of-the-Art in Vision: On the standard Office-Caltech computer vision benchmark, CTC-TIP consistently matched or outperformed state-of-the-art methods like GFK and TCA across almost all domain pairs (e.g., achieving 48.8% on Amazon $\to$ Caltech, compared to 42.2% for GFK).

Limitations and Future Work

While highly effective, the framework has a few limitations. First, it relies on linear projections to find the matrix $W$. Although kernels are used for distribution matching, the feature extraction itself is linear; extending this to deep neural networks for non-linear feature extraction is a logical next step. Second, the causal assumption means the framework specifically targets $Y \to X$ systems and may not be optimal for purely discriminative tasks where features clearly cause the label. Finally, the computational complexity of iterative optimization involving quadratic programming and manifold gradients may be expensive for extremely high-dimensional datasets without further optimization.

Summary updated

BibTeX
@inproceedings{gong2016domain,
  author = {Mingming Gong and Kun Zhang and Tongliang Liu and Dacheng Tao and Clark Glymour and Bernhard Schölkopf},
  title = {{Domain Adaptation with Conditional Transferable Components}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
}
Figure