Source-linked AI summary

Unsupervised Domain Adaptation through Self-Supervision

Yu Sun, Eric Tzeng, Trevor Darrell, Alexei A. Efros

arXiv:1909.11825v2cs.LGcs.CVstat.ML

TL;DR

Unsupervised domain adaptation must transfer predictions from labeled source data to an unlabeled target domain. This paper jointly trains source classification with self-supervised tasks on both domains, avoiding adversarial minimax optimization; it reaches state-of-the-art accuracy on four of seven benchmarks. The method’s success depends on choosing self-supervised tasks that fit the application, and the paper identifies failures on SVHN and a lack of statistical guarantees for its tuning heuristic.

  • Problem

    Unsupervised domain adaptation seeks good target-domain predictions from labeled source data when target data are unlabeled, while existing discrepancy-based approaches use difficult minimax optimization.

    Source: §1 · p. 1
  • Method

    The paper jointly trains the source classifier and auxiliary self-supervised tasks on source and target samples, selecting tasks that avoid domain-specific variation.

    Source: §1 · p. 1, §3 · p. 4
  • Results

    The method achieves state-of-the-art accuracy on four out of seven benchmarks and excels at natural-scene object recognition, especially with all three tasks together.

    Source: §5.1 · p. 7
  • Takeaways & Limitations

    Self-supervision provides a simple, stable alternative to adversarial learning for domain alignment when auxiliary tasks fit the application.

    Source: §1 · p. 2, §5.1 · p. 7

    The method fails on SVHN when rotation prediction admits trivial solutions, and its hyper-parameter and early-stopping heuristic has no statistical guarantee.

    Source: §4.1 · p. 6, §5.1 · p. 7

Abstract

from arXiv · show

This paper addresses unsupervised domain adaptation, the setting where labeled training data is available on a source domain, but the goal is to have good performance on a target domain with only unlabeled data. Like much of previous work, we seek to align the learned representations of the source and target domains while preserving discriminability. The way we accomplish alignment is by learning to perform auxiliary self-supervised task(s) on both domains simultaneously. Each self-supervised task brings the two domains closer together along the direction relevant to that task. Training this jointly with the main task classifier on the source domain is shown to successfully generalize to the unlabeled target domain. The presented objective is straightforward to implement and easy to optimize. We achieve state-of-the-art results on four out of seven standard benchmarks, and competitive results on segmentation adaptation. We also demonstrate that our method composes well with another popular pixel-level adaptation method.

1 INTRODUCTION

The paper targets unsupervised domain adaptation by aligning source and target representations without target labels. It uses auxiliary self-supervised tasks trained jointly across both domains and the source classification task to obtain stable, discriminative alignment.

  • Unsupervised domain adaptation uses labeled source data to predict on an unlabeled target domain sharing the source label space.Source: §1 · p. 1
  • Existing alignment methods often minimize feature-space discrepancies with MMD or domain discriminators, producing difficult minimax optimization.These objectives can cause unstable discrepancy losses and sudden divergence when the opposing forces are poorly balanced.Source: §1 · p. 1
  • The method replaces unavailable target labels with auxiliary self-supervised tasks that create labels directly from data and train on both domains.Multiple tasks align domains along multiple task-relevant directions while the original classifier is trained on labeled source data.Source: §1 · pp. 1–2, Figure 1 · p. 2
  • The approach is empirically evaluated against the risk that separate domain-specific decision boundaries could overfit the training data.The paper relates this risk to high-complexity decision boundaries and implicit regularization from stochastic gradient descent.Source: §1 · p. 2
  • The paper proposes a simple, stable training algorithm that connects unsupervised domain adaptation with self-supervised learning without adversarial learning.The algorithm uses batches containing samples from both domains and reports state-of-the-art results on several standard benchmarks.Source: §1 · p. 2

2 RELATED WORK

Prior unsupervised domain adaptation methods align domains through feature discrepancies, image translation, or pseudo-labeling, while self-supervision is usually used for pre-training. This paper instead jointly trains self-supervised tasks with the source task to align domains and preserve task performance.

Unsupervised domain adaptation

  • Feature-space adaptation methods measure source-target discrepancy with MMD or adversarial discriminators, but both use difficult minimax optimization.Practical modifications improve benchmarks while making state-of-the-art algorithms more complicated.Source: §2.1 · pp. 2–3
  • Pixel-level methods transform source images toward target appearance and can be followed by additional representation-space adaptation.The paper demonstrates composition between its method and a popular pixel-level adaptation approach.Source: §2.1 · p. 3
  • Pseudo-labeling methods estimate target labels from a source-trained model and retrain on selected confident predictions, unlike this paper’s joint training.The paper distinguishes its approach from co-training and self-ensembling methods.Source: §2.1 · p. 3

Self-supervised feature learning

  • Self-supervised learning uses data-derived auxiliary tasks to learn representations, commonly through pre-training followed by fine-tuning on labeled data.Source: §2.2 · p. 3
  • This paper trains self-supervised tasks simultaneously with the main supervised task, encouraging a representation that aligns domains and supports the main task.Standard self-supervised pre-training followed by source fine-tuning gives almost no benefit over the no-adaptation baseline in this setting.Source: §2.2 · p. 3

3 DESIGNING SELF-SUPERVISED TASKS FOR ADAPTATION

Self-supervised tasks should encode structural information relevant to the main task rather than domain-specific appearance factors. The paper therefore favors classification-based transformations whose labels can align domains without preserving irrelevant visual differences.

  • Suitable self-supervised labels should avoid requiring information about factors of variation that adaptation aims to eliminate.Source: §3 · p. 4
  • Pixel-reconstruction tasks such as inpainting, colorization, and denoising can preserve brightness and appearance differences that separate domains.Experiments found colorization and denoising performance little better than source-only training, and sometimes worse.Source: §3 · p. 4
  • The method favors classification tasks predicting structural labels over reconstruction tasks predicting pixels.Source: §3 · p. 4
  • Rotation prediction classifies whether an image was rotated by 0°, 90°, 180°, or 270°.Source: §3 · p. 4
  • Flip prediction classifies whether an input image was randomly flipped vertically.Source: §3 · p. 4
  • Patch location prediction classifies where randomly cropped patches originated within the input image.Source: §3 · p. 4
  • When domains differ only by brightness scaling, rotation, flip, and location tasks remain suitable because brightness is orthogonal to their predictions.Source: §3 · p. 4

4 METHOD

The method jointly trains a source-supervised prediction task with self-supervised tasks on both domains, using shared features to induce alignment. A mean-distance heuristic supports hyper-parameter tuning and early stopping without minimax optimization.

4 METHOD

  • The optimization combines one supervised source-task loss with K self-supervised losses trained on source and target data.Each task has a separate head, while all heads share the feature extractor.Source: §4 · pp. 4–5
  • Unlike adversarial discrepancy methods, the objective does not pose a minimax problem; all task losses instead work toward inducing alignment.The method uses self-supervision on both domains rather than target-only auxiliary training.Source: §4 · p. 4, §4.1 · p. 6
  • The shared encoder supplies high-level features to task-specific heads, which produce predictions in their respective label spaces.The heads are low-capacity linear layers, optionally followed by softmax or sigmoid outputs.Source: Figure 2 · p. 5, §4 · p. 5
  • Self-supervised tasks transform inputs and generate labels, allowing the same task to be trained on labeled-source-derived and unlabeled-target-derived samples.The original labels are discarded when generating self-supervised samples.Source: §4 · p. 5
  • At test time, the self-supervised heads are discarded, and predictions use the main head applied to the shared representation.The paper reports smooth convergence of task errors and centroid distance in two example adaptations.Source: §4 · p. 6, Figure 3 · p. 6

4.1 A HEURISTIC FOR HYPER-PARAMETER TUNING AND EARLY STOPPING

  • The mean distance between source and target representations is used with source validation error for hyper-parameter tuning and early stopping.The combined normalized measurement selects the epoch minimizing the sum of the two quantities.Source: §4.1 · p. 6

5 EXPERIMENTS

Experiments show that self-supervised domain alignment achieves strong object-recognition results and improves semantic-segmentation adaptation, but task suitability determines success.

Object recognition

  • The method achieves state-of-the-art accuracy on four of seven standard benchmarks.Source: §5.1 · p. 7
  • The method fails on SVHN benchmarks because rotation prediction can exploit adjacent digits rather than semantic content.Source: §5.1 · p. 7
  • Adding location and flip prediction improves STL-10→CIFAR-10 by 9% beyond the source-only improvement.Source: §5.1 · pp. 7–8

Semantic segmentation

  • Despite classification-oriented self-supervision, the method significantly improves GTA5→Cityscapes segmentation over the source-only baseline.Source: §5.2 · p. 8
  • Combining the method with CyCADA further improves segmentation performance over CyCADA alone.Source: §5.2 · p. 8, Table 3 · p. 8

6 DISCUSSION

The discussion positions self-supervision as an alternative to adversarial adaptation and distinguishes the paper from related robustness, domain-generalization, and few-shot settings.

B ADDITIONAL ALGORITHMIC DETAILS

The implementation balances source and target contributions through mixed batches and optimizes self-supervised objectives sequentially for memory efficiency.

C ADDITIONAL DISCUSSION ON THE MEAN DISTANCE

The paper distinguishes using mean distance for model selection from using discrepancy-based minimax training, arguing that the former remains easy to optimize.

D DETAILS OF THE SIX DATASETS USED FOR OBJECT RECOGNITION

The paper uses six standard object-recognition datasets, covering handwritten digits, street-view digits, and natural objects. CIFAR-10 and STL-10 are reduced to nine shared classes for adaptation.

E IMPLEMENTATION DETAILS ON THE OBJECT RECOGNITION BENCHMARKS

Object-recognition experiments use a 26-layer pre-activation ResNet and standard SGD training settings. The reported source-only baseline is weaker than a close competitor, indicating that gains come through adaptation.

F IMPLEMENTATION DETAILS ON GTA5 →CITYSCAPES

For GTA5 → Cityscapes segmentation adaptation, experiments initialize from ImageNet-pretrained DeepLab-v3 and use regression-based location prediction as the self-supervised task.

Loading 1909.11825v2…