arXiv(opens in a new tab)Computer ScienceDec 2014Cited by 7 papers on PaperVantage

Manuscript Offprint

arXiv:1412.3474

Deep Domain Confusion: Maximizing for Domain Invariance

E. Tzeng, Judy Hoffman, N. Zhang, Kate Saenko, Trevor Darrell

Abstract

Recent reports suggest that a generic supervised deep CNN model trained on a large-scale dataset reduces, but does not remove, dataset bias on a standard benchmark. Fine-tuning deep models in a new domain can require a significant amount of data, which for many applications is simply not available. We propose a new CNN architecture which introduces an adaptation layer and an additional domain confusion loss, to learn a representation that is both semantically meaningful and domain invariant. We additionally show that a domain confusion metric can be used for model selection to determine the dimension of an adaptation layer and the best position for the layer in the CNN architecture. Our proposed adaptation method offers empirical performance which exceeds previously published results on a standard benchmark visual domain adaptation task.

1 Introduction

Dataset bias is a well known problem with traditional supervised approaches to image recognition [32]. A number of recent theoretical and empirical results have shown that supervised methods’ test error increases in proportion to the difference between the test and training input distribution [3, 5, 29, 32]. In the last few years several methods for visual domain adaptation have been suggested to overcome this issue [10, 33, 2, 29, 25, 22, 17, 16, 19, 20], but were limited to shallow models. The traditional approach to adapting deep models has been fine-tuning; see [15] for a recent example.

Directly fine-tuning a deep network’s parameters on a small amount of labeled target data turns out to be problematic. Fortunately, pre-trained deep models do perform well in novel domains. Recently, [11, 21] showed that using the deep mid-level features learned on ImageNet, instead of the more conventional bag-of-words features, effectively removed the bias in some of the domain adaptation settings in the Office dataset [29]. These algorithms transferred the representation from a large scale domain, ImageNet, as well as using all of the data in that domain as source data for appropriate categories. However, these methods have no way to select a representation from the deep architecture and instead report results across multiple layer selection choices.

Figure 1: Our architecture optimizes a deep CNN for both classification loss as well as domain invariance. The model can be trained for supervised adaptation, when there is a small amount of target labels available, or unsupervised adaptation, when no target labels are available. We introduce domain invariance through domain confusion guided selection of the depth and width of the adaptation layer, as well as an additional domain loss term during fine-tuning that directly minimizes the distance between source and target representations.

Dataset bias was classically illustrated in computer vision by way of the “name the dataset” game of Torralba and Efros [32]. Indeed, this turns out to be formally connected to measures of domain discrepancy [23, 6]. Optimizing for domain invariance, therefore, can be considered equivalent to the task of learning to predict the class labels while simultaneously finding a representation that makes the domains appear as similar as possible. This principle forms the essence of our proposed approach. We learn deep representations by optimizing over a loss which includes both classification error on the labeled data as well as a domain confusion loss which seeks to make the domains indistinguishable.

We propose a new CNN architecture, outlined in Figure 1, which uses an adaptation layer along with a domain confusion loss based on maximum mean discrepancy (MMD) [6] to automatically learn a representation jointly trained to optimize for classification and domain invariance. We show that our domain confusion metric can be used both to select the dimension of the adaptation layers, choose an effective placement for a new adaptation layer within a pre-trained CNN architecture, and fine-tune the representation.

Our architecture can be used to solve both supervised adaptation, when a small amount of target labeled data is available, and unsupervised adaptation, when no labeled target training data is available. We provide a comprehensive evaluation on the popular Office benchmark for classification across visually distinct domains [29]. We demonstrate that by jointly optimizing for domain confusion and classification, we are able to significantly outperform the current state-of-the-art visual domain adaptation results. In fact, for the case of minor pose, resolution, and lighting changes, our algorithm is able to achieve 96% accuracy on the target domain, demonstrating that we have in fact learned a representation that is invariant to these biases.

References (30)

  • Tabula rasa: Model transfer for object category detection
  • ImageNet Large Scale Visual Recognition Challenge 2012
  • Learning bounds for domain adaptation
  • Kriegel, B. Schölkopf, and A. J. Smola
  • Signature verification using a “siamese” time delay neural network
  • DLID: Deep learning for domain adaptation by interpolating between domains
  • Learning a similarity metric discriminatively, with application to face verification
  • DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition
  • Learning with augmented features for heterogeneous domain adaptation
  • Unsupervised visual domain adaptation using subspace alignment
  • Domain adaptive neural networks for object recognition (opens arXiv in a new tab)
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • Geodesic flow kernel for unsupervised domain adaptation
  • Domain adaptation for object recognition: An unsupervised approach
  • LSDA: Large scale detection through adaptation
  • Discovering latent domains for multisource domain adaptation
  • Efficient learning of domain-invariant image representations
  • One-shot learning of supervised deep convolutional models (opens arXiv in a new tab)
  • Undoing the damage of dataset bias
  • Detecting change in data streams
  • ImageNet classification with deep convolutional neural networks
  • What you saw is not what you get: Domain adaptation using asymmetric kernel transforms
  • Domain adaptation: Learning bounds and algorithms
  • Multimodal deep learning
  • Domain adaptation via transfer component analysis
  • Adapting visual category models to new domains
  • OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
  • Frustratingly easy NBNN domain adaptation
  • Unbiased look at dataset bias
  • Adapting SVM classifiers to data with shifted distributions