Cycle label-consistent networks for unsupervised domain adaptation

Mei Wang, Weihong Deng

TL;DR

Cycle Label-Consistent Network (CLCN) is a simple yet powerful method for unsupervised domain adaptation that ensures labels remain consistent when "round-tripped" between source and target domains. By using cross-domain nearest centroid classification, it generates reliable self-supervised signals that align features at a fine-grained, class-to-class level without the need for complex adversarial training.

What Problem Does This Paper Address?

Deep learning models are notoriously sensitive to domain shift—when a model trained on one dataset (the source) fails to perform on a different but related dataset (the target). Unsupervised Domain Adaptation (UDA) attempts to fix this using labeled source data and unlabeled target data.

Existing UDA methods generally fall into two camps:

  1. Global Alignment: These try to make the overall distribution of features look the same. However, they often fail to ensure that specific classes (e.g., "cars" in the source and "cars" in the target) actually overlap correctly.
  2. Pseudo-Labeling: These use the model’s own predictions to label the target data. The danger here is "error accumulation"—if the model makes a few wrong guesses early on, it reinforces those mistakes, leading to a downward spiral in performance.

The authors of this paper tackle the unreliability of pseudo-labels by introducing a "cycle consistency" check to ensure that the relationship between features and labels remains stable across both domains.

Methods

The core of CLCN is the Cycle Label-Consistency loss, which relies on a dual-stage Nearest Centroid Classification (NCC) procedure:

  1. Source-to-Target Classification: The model calculates the "centroids" (the average feature vector) for each class in the labeled source domain. It then assigns "pseudo-labels" to the unlabeled target samples based on which source centroid they are closest to.
  2. Target-to-Source Classification: Using these new target pseudo-labels, the model calculates centroids for the target domain. It then tries to classify the original source samples using these target centroids.
  3. The Cycle Loss: If the domain alignment is good, a source sample should be assigned its original ground-truth label after this "round trip." The model is trained to minimize the difference between the "cycled" labels and the actual ground-truth labels.

What’s new? Unlike standard pseudo-labeling that uses a softmax classifier, CLCN uses centroids. Averaging features into a centroid acts as a natural noise filter; even if some target samples are mislabeled, the "average" representation of the class remains relatively stable. Furthermore, the authors use "soft" pseudo-labels (probability distributions based on distance) rather than "hard" labels, which provides smoother gradients for optimization.

Datasets

The authors evaluated CLCN on several standard UDA benchmarks:

  • Digits: MNIST, SVHN, and USPS (transferring between different styles of numbers).
  • Office-31: A classic dataset containing images from Amazon, high-end DSLR cameras, and low-res Webcams.
  • Office-Home: A more challenging dataset with 65 categories across four domains: Art, Clipart, Product, and Real-World.
  • ImageCLEF-DA: A benchmark derived from the ImageCLEF 2014 challenge.

Key Insights and Ideas

  • Centroids as Robust Anchors: The "aha moment" is that centroids are more resilient to individual labeling errors than a standard classifier. By transporting label information via centroids, the model avoids the "garbage in, garbage out" trap of noisy pseudo-labels.
  • Sample-Level Backpropagation: Many centroid-based methods only align the means of distributions. CLCN is different because the cycle loss is calculated per sample, allowing the network to learn more discriminative, fine-grained features.
  • Minimal Overhead: The method doesn't require auxiliary "discriminator" networks (common in GAN-based DA). It can be plugged into almost any existing CNN architecture with virtually no extra computational cost.

Key Results

CLCN consistently outperformed "source-only" models and matched or exceeded complex state-of-the-art methods:

  • Office-31: Achieved a 9.4% absolute improvement over the source-only model and outperformed the popular JAN and MSTN methods.
  • Digits: On the SVHN $\to$ MNIST task, CLCN reached 97.5% accuracy, a significant jump from the 60.1% baseline.
  • Office-Home: On this highly diverse dataset, CLCN achieved an average accuracy of 49.39%, outperforming several more complex adversarial and metric-learning approaches.

Limitations and Future Work

The authors identify a few areas for improvement:

  • Closed-Set Assumption: The model currently assumes the source and target domains share the exact same set of classes. It may struggle in "Open-Set" scenarios where the target domain contains unknown categories.
  • Heuristic Nature: While empirically successful, the authors note that the method is somewhat heuristic and could benefit from a more rigorous theoretical justification.
  • Curriculum Learning: Future work could involve an "easy-to-hard" scheme, where the model progressively selects the most reliable target samples to update centroids, potentially further reducing noise.

Summary updated

BibTeX
@inproceedings{wang2021cycle,
  author = {Mei Wang and Weihong Deng},
  title = {{Cycle label-consistent networks for unsupervised domain adaptation}},
  booktitle = {Neurocomputing},
  year = {2021},
  url = {https://openreview.net/forum?id=HfZPRiM_Ct},
}

Loading related content...

Figure