Skip to main content
QUICK REVIEW

[Paper Review] Domain-Adversarial Training of Neural Networks

Yaroslav Ganin, Evgeniya Ustinova|arXiv (Cornell University)|May 28, 2015
Autopsy Techniques and OutcomesMedicine75 citations
TL;DR

This paper proposes Domain-Adversarial Neural Networks (DANN), a method for unsupervised domain adaptation that trains a deep neural network to learn domain-invariant features by adversarially training a domain classifier to distinguish source from target domains while the feature extractor is optimized to fool it. The approach achieves state-of-the-art performance on image classification, sentiment analysis, and person re-identification benchmarks using only labeled source data and unlabeled target data, with minimal architectural modifications via a gradient reversal layer.

ABSTRACT

We introduce a new representation learning approach for domain adaptation, in which data at training and test time come from similar but different distributions. Our approach is directly inspired by the theory on domain adaptation suggesting that, for effective domain transfer to be achieved, predictions must be made based on features that cannot discriminate between the training (source) and test (target) domains. The approach implements this idea in the context of neural network architectures that are trained on labeled data from the source domain and unlabeled data from the target domain (no labeled target-domain data is necessary). As the training progresses, the approach promotes the emergence of features that are (i) discriminative for the main learning task on the source domain and (ii) indiscriminate with respect to the shift between the domains. We show that this adaptation behaviour can be achieved in almost any feed-forward model by augmenting it with few standard layers and a new gradient reversal layer. The resulting augmented architecture can be trained using standard backpropagation and stochastic gradient descent, and can thus be implemented with little effort using any of the deep learning packages. We demonstrate the success of our approach for two distinct classification problems (document sentiment analysis and image classification), where state-of-the-art domain adaptation performance on standard benchmarks is achieved. We also validate the approach for descriptor learning task in the context of person re-identification application.

Motivation & Objective

  • To address domain shift in machine learning where training and test data come from different but related distributions.
  • To enable effective transfer of models trained on labeled source data to unlabeled target domains without requiring labeled target data.
  • To learn deep representations that are both discriminative for the main task and invariant to domain shifts.
  • To integrate domain adaptation directly into the deep feature learning process using standard backpropagation.
  • To demonstrate the method's effectiveness across diverse tasks including image classification, sentiment analysis, and person re-identification.

Proposed method

  • Augments a standard feed-forward neural network with a domain classifier head and a gradient reversal layer to enforce domain invariance.
  • Uses a gradient reversal layer that inverts the gradient flow during backpropagation, allowing the feature extractor to minimize domain classifier loss while maximizing it.
  • Trains the network end-to-end using standard stochastic gradient descent with shared optimization for both the label predictor and domain classifier.
  • Employs a joint training objective: minimize classification loss on source labels while maximizing domain classification loss to encourage domain-invariant features.
  • Applies the method to various architectures by inserting the gradient reversal layer after the shared feature extractor, enabling compatibility with any backpropagation-based deep learning framework.
  • Uses binomial deviance loss for descriptor learning and logistic loss for domain classification, with hyperparameters tuned for each task.

Experimental results

Research questions

  • RQ1Can a deep neural network be trained to learn features that are both predictive of class labels and invariant to domain shifts?
  • RQ2Can domain-invariant representations be learned using only labeled source data and unlabeled target data?
  • RQ3Does adversarial training with a gradient reversal layer improve generalization across domain shifts in image classification and sentiment analysis?
  • RQ4Can the proposed method be applied beyond classification to other feed-forward tasks like descriptor learning in person re-identification?
  • RQ5How effective is the domain-adversarial approach compared to existing domain adaptation techniques on standard benchmarks?

Key findings

  • Domain-adversarial training achieved state-of-the-art performance on standard benchmarks for image classification and sentiment analysis, outperforming prior methods.
  • The method consistently improved person re-identification performance across eight data set pairs, with notable gains on more dissimilar pairs like PRID and VIPeR.
  • In the VIPeR → CUHK/p1 re-identification task, domain-adversarial training led to better intermixing of source and target domain descriptors in t-SNE visualization.
  • The approach achieved strong results with only 50,000 or 20,000 training iterations, depending on data set complexity, demonstrating efficient convergence.
  • The gradient reversal layer enabled effective backpropagation through the domain adversary without requiring architectural redesign, making the method widely applicable.
  • The method generalized well beyond classification, successfully applied to descriptor learning in person re-identification with binomial deviance loss and improved CMC curves.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.