Model Selection with Nonlinear Embedding for Unsupervised Domain Adaptation

Hemanth Venkateswara, Shayok Chakraborty, Troy L. McDaniel, Sethuraman Panchanathan

TL;DR

This paper introduces the Nonlinear Embedding Transform (NET) for unsupervised domain adaptation, which aligns source and target domains while explicitly clustering similar data points to improve classification accuracy. Crucially, it also proposes a novel cross-validation strategy using Kernel Mean Matching to tune hyperparameters without needing labeled target data—solving a major practical hurdle in real-world domain adaptation.

What Problem Does This Paper Address?

Machine learning models often fail when applied to real-world data that differs from their training data, a problem known as "domain shift." Unsupervised Domain Adaptation (UDA) attempts to fix this by adapting a model trained on a labeled "source" domain to an unlabeled "target" domain.

Existing nonlinear UDA methods typically project data into a shared subspace where the statistical distributions of the two domains match. However, the authors identify two major gaps:

  1. Alignment doesn't guarantee separability: Just because the source and target domains overlap doesn't mean the resulting data is easy for a classifier to separate. The classes might be completely scrambled.
  2. The Hyperparameter Catch-22: Spectral UDA algorithms require tuning several hyperparameters. In real-world UDA, you don't have target labels to validate against. Many existing papers simply use the target labels to tune their models anyway, which defeats the purpose of unsupervised adaptation.

Methods

The authors tackle these problems with two main contributions:

1. Nonlinear Embedding Transform (NET): NET is a spectral algorithm that solves a generalized eigenvalue problem combining three objectives:

  • Nonlinear Projection: Uses Kernel PCA to map data into a high-dimensional shared subspace.
  • Domain Alignment: Uses Maximum Mean Discrepancy (MMD) to minimize the distance between the marginal and conditional distributions of the source and target data.
  • Similarity-Based Embedding: This is the novel addition. It uses Laplacian Eigenmaps to pull data points with the same class labels closer together. This ensures that the aligned data isn't just overlapping, but is actively clustered into classification-friendly groupings.

2. Unsupervised Model Selection: To tune NET's four hyperparameters ($\alpha, \beta, \gamma, k$) without target labels, the authors use Kernel Mean Matching (KMM). KMM assigns weights to source data points based on how closely they resemble the target distribution. The authors take the top 10% highest-weighted source points and hold them out as a proxy validation set. Models are trained on the remaining source data and evaluated on this proxy set to find the optimal hyperparameters.

Datasets

The authors evaluated their approach across 50 experiments using 7 popular image classification datasets:

  • Digits: MNIST and USPS.
  • Facial Expressions: CKPlus and MMI (using deep CNN features).
  • Objects: COIL20 and the highly popular Office-Caltech benchmark. For Office-Caltech, they evaluated using both traditional 800-dimensional SURF features and 4096-dimensional Deep features (extracted via a pre-trained VGG-F network).
  • Faces: PIE (Pose, Illumination, and Expression).

Key Insights and Ideas

  • Distribution alignment is necessary, but not sufficient: The toy dataset visualization in the paper perfectly illustrates that aligning domains via MMD can still leave data points scattered. Forcing a similarity-based embedding during alignment is critical for drawing clear decision boundaries.
  • Source data can simulate target data: By cleverly reweighting the source data using KMM, you can create a validation set that mimics the target distribution. This provides a highly practical way to tune UDA models in the wild where target labels are strictly unavailable.
  • Deep features still need adaptation: Even when using powerful pre-trained CNN features (like VGG-F on the Office-Caltech dataset), applying NET provides a significant accuracy boost. This reinforces that deep features alone do not entirely solve the domain shift problem.

Key Results

  • Superior Accuracy: Across the 50 experiments, NET consistently outperformed existing linear (SA, CA, GFK) and spectral (TCA, TJM, JDA) domain adaptation baselines.
  • Office-Caltech (Deep Features): NET achieved an average accuracy of 90.70%, compared to 89.12% for the next best method (JDA) and 84.55% for Subspace Alignment (SA).
  • Validation Procedure Success: When using the proposed unsupervised validation procedure (denoted as NET$_v$), the model achieved an average accuracy of 88.71% on Office-Caltech (Deep). While slightly lower than the theoretical maximum of 90.70% (which requires "cheating" by looking at target labels), it proves the KMM-based validation successfully finds near-optimal hyperparameters in a strictly unsupervised setting.

Limitations and Future Work

The authors explicitly acknowledge that while their KMM-based model selection procedure works very well empirically, there is "no theoretical guarantee that the parameters selected are the best." Because it relies on a heuristic proxy of the target domain, they suggest that further theoretical validation and empirical analysis are necessary to fully understand the bounds and reliability of this model selection technique.

Summary updated

BibTeX
@inproceedings{venkateswara2017model,
  author = {Hemanth Venkateswara and Shayok Chakraborty and Troy L. McDaniel and Sethuraman Panchanathan},
  title = {{Model Selection with Nonlinear Embedding for Unsupervised Domain Adaptation}},
  booktitle = {Workshops @ AAAI},
  year = {2017},
  url = {https://openreview.net/forum?id=SyWNEeZd-H},
}

Loading related content...

Figure