Learning Transferrable Representations for Unsupervised Domain Adaptation

Ozan Sener, Hyun Oh Song, Ashutosh Saxena, Silvio SavareseNeurIPS 2016

Introduction

Deep learning models are notoriously "brittle" when faced with a domain shift—a situation where the data they were trained on (the source domain) differs significantly from the data they encounter in the real world (the target domain). For example, a model trained on clean, synthetic digits (MNIST) often fails when asked to recognize house numbers in messy street photos (SVHN).

While Unsupervised Domain Adaptation (UDA) aims to fix this by using labeled source data and unlabeled target data, existing methods often struggle. Some attempt to force the model to learn "domain-invariant" features, but this can accidentally discard the very details needed to distinguish classes in the target domain. Others are highly sensitive to hyperparameters or suffer from a "gap" between how the model is trained and how it actually makes predictions during inference.

To address this, the authors introduce a unified deep learning framework that jointly learns feature representations, cross-domain transformations, and target label inference. By treating the problem as a transductive inference task and incorporating a "reject option" for uncertain labels, this approach achieves state-of-the-art results on challenging benchmarks.

Methodology

The proposed framework alternates between two main stages in an end-to-end loop:

1. Transduction (Labeling the Target)

Instead of simply guessing labels, the model treats the target dataset as a graph. It uses a k-Nearest Neighbor (k-NN) approach to propagate labels from the source to the target. To handle the "noise" of early training, the authors introduce a Reject Option: if the model isn't confident about a target point, it labels it as "Rejected" so it doesn't corrupt the learning process.

2. Adaptation (Learning the Metric)

Once target labels are estimated, the model optimizes a similarity metric using two key heuristics:

  • Cyclic Consistency: If we use source data to label target data, and then use those target labels to re-predict source labels, we should get the original labels back.
  • Structured Consistency: Similar points in the target domain should share the same label (enforced via a k-NN graph).
Cyclic Consistency Diagram

The architecture uses modified versions of standard convolutional networks (like AlexNet or LeNet). Early layers are shared across domains, but the final layers are domain-specific. This allows the model to learn an asymmetric metric, acknowledging that the transformation from Source $\to$ Target isn't necessarily the same as Target $\to$ Source.

Key Insights

  • Equivariance over Invariance: Most UDA research tries to find features that are identical across domains (invariance). This paper argues for equivariance—learning a specific similarity metric that explains how the domains differ while still identifying the underlying class.
  • The Power of "No": The Reject Option is a crucial mechanism. By allowing the model to say "I don't know yet" for difficult target samples, it prevents the adaptation process from being derailed by incorrect pseudo-labels early in training.
  • Joint Optimization: By solving for labels and feature representations simultaneously, the model ensures that the learned features are directly optimized for the specific way inference will be performed.

Datasets and Results

The researchers evaluated their method on two primary types of tasks:

  • Digit Classification: MNIST (handwritten), SVHN (street view house numbers), and MNIST-M (MNIST digits blended with random color photos).
  • Object Recognition: The Office dataset, containing images of 31 categories from three domains: Amazon (product shots), DSLR (high-res photos), and Webcam (low-res photos).
Nearest Neighbors on Office Dataset

The proposed method significantly outperformed existing baselines (like DAN and Backprop/DANN) across the board:

  • MNIST $\to$ SVHN: On this notoriously difficult shift, the proposed method achieved 40.3% accuracy, a massive jump from the previous state-of-the-art of 28.9%.
  • Office Dataset: On the Amazon $\to$ Webcam task, the method reached 81.1% accuracy, compared to 73.0% for the best previous deep learning approach.
  • Ablation Studies: The authors demonstrated that both the "joint labeling" and the "reject option" were critical. Without the reject option, performance on the difficult MNIST $\to$ SVHN task dropped from 40.3% to 32.3%.

Limitations and Future Work

While the paper demonstrates impressive results, a few limitations are worth noting:

  • Computational Complexity: Building and maintaining k-NN graphs for large-scale target datasets can be computationally expensive, though the authors utilize efficient swapping algorithms to mitigate this.
  • Hyperparameter Scheduling: The "reject option" relies on a penalty parameter ($\gamma$) that must be increased over time. Finding the optimal schedule for this increase likely requires careful tuning.
  • Transductive Requirement: The method is designed for a transductive setup, meaning it performs best when it has access to the entire unlabeled target batch at once, which might not always be feasible in real-time streaming applications.

Summary updated

BibTeX
@inproceedings{sener2016learning,
  author = {Ozan Sener and Hyun Oh Song and Ashutosh Saxena and Silvio Savarese},
  title = {{Learning Transferrable Representations for Unsupervised Domain Adaptation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=r1-dGwbO-H},
}
Figure