Unsupervised Domain Adaptation for Image Classification via Structure-Conditioned Adversarial Learning

Hui Wang, Jian Tian, Songyuan Li, Hanbin Zhao, Qi Tian, Fei Wu, Xi LiarXiv 2021

Abstract

Unsupervised domain adaptation (UDA) typically carries out knowledge transfer from a label-rich source domain to an unlabeled target domain by adversarial learning. In principle, existing UDA approaches mainly focus on the global distribution alignment between domains while ignoring the intrinsic local distribution properties. Motivated by this observation, we propose an end-to-end structure-conditioned adversarial learning scheme (SCAL) that is able to preserve the intra-class compactness during domain distribution alignment. By using local structures as structure-aware conditions, the proposed scheme is implemented in a structure-conditioned adversarial learning pipeline. The above learning procedure is iteratively performed by alternating between local structures establishment and structure-conditioned adversarial learning. Experimental results demonstrate the effectiveness of the proposed scheme in UDA scenarios.

Introduction

In the field of computer vision, Unsupervised Domain Adaptation (UDA) aims to bridge the gap between a "label-rich" source domain (e.g., synthetic images) and an unlabeled target domain (e.g., real-world photos). The primary challenge is the domain shift, where the statistical distributions of the two domains differ, causing models trained on one to perform poorly on the other.

Standard adversarial methods address this by using a generator to create features that a discriminator cannot distinguish between source and target. However, these methods often focus solely on global alignment. As illustrated in the figure below, this "global-only" approach can lead to a loss of intra-class compactness. In the process of aligning the two domains, the model may inadvertently smear different classes together in the target domain, degrading classification accuracy.

Conceptual comparison of standard adversarial domain adaptation versus the proposed SCAL method.

The SCAL Framework

To mitigate the loss of local structure, we propose Structure-Conditioned Adversarial Learning (SCAL). This framework ensures that domain alignment respects the boundaries of individual classes by incorporating local structural information into the adversarial process. The method follows a three-step iterative cycle:

  1. Local Structure Establishment: Since target labels are unavailable, we employ Spherical K-means clustering to group target features. To ensure these clusters correspond to meaningful classes, we initialize target cluster centers using the known class centers from the source domain.
  2. Surrogate Classifier Approximation: Clustering is inherently non-differentiable, preventing end-to-end training via backpropagation. SCAL overcomes this by training a differentiable surrogate classifier to mimic the cluster assignments. This surrogate acts as a differentiable bridge for the structural information.
  3. Structure-Conditioned Alignment: Instead of a simple domain discriminator, SCAL utilizes a discriminator conditioned on the predicted local structures. By taking the outer product of the feature vector and the surrogate classifier's prediction, the adversarial process is forced to align domains while preserving the compactness of the local clusters.

Experimental Evaluation

The effectiveness of SCAL was validated across three major UDA benchmarks:

  • Office-Home: A challenging dataset with 65 categories. SCAL (integrated with a pseudo-labeling method, SPL) achieved an average accuracy of 72.0%, significantly outperforming the CDAN+E baseline (65.8%).
  • VisDA-2017: On this large-scale synthetic-to-real task, SCAL reached 81.7% accuracy, demonstrating its scalability and robustness in complex scenarios.
  • Office-31: SCAL maintained competitive performance across Amazon, DSLR, and Webcam domains.

Ablation studies confirmed the importance of structural conditioning. Removing the structure-aware conditions resulted in a performance drop from 88.6% to 82.2% on Office-31. Furthermore, the method showed remarkable resilience to noise; even with 75% corrupted cluster assignments, SCAL still outperformed baseline adversarial methods.

Conclusion

SCAL addresses a critical limitation in unsupervised domain adaptation by prioritizing local structure preservation alongside global alignment. By leveraging a surrogate classifier to integrate non-differentiable clustering into an adversarial pipeline, the model maintains intra-class compactness, leading to superior classification performance on unlabeled target domains. While the method introduces a modest computational overhead (approximately 15% increase in training time), the gains in accuracy and robustness make it a powerful tool for real-world domain adaptation tasks.

Summary updated

BibTeX
@misc{wang2021unsupervised,
  author = {Hui Wang and Jian Tian and Songyuan Li and Hanbin Zhao and Qi Tian and Fei Wu and Xi Li},
  title = {{Unsupervised Domain Adaptation for Image Classification via Structure-Conditioned Adversarial Learning}},
  year = {2021},
  eprint = {2103.02808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.02808},
}
Figure