Attract, Perturb, and Explore: Learning a Feature Alignment Network for Semi-supervised Domain Adaptation

Taekyung Kim, Changick Kim

Abstract

Semi-supervised Domain Adaptation (SSDA) leverages a limited number of labeled target samples to bridge the gap between source and target domains. However, existing methods often suffer from "intra-domain discrepancy," where labeled and unlabeled target samples form distinct sub-distributions. This paper introduces APE (Attract, Perturb, and Explore), a framework designed to bridge this internal gap. By operating in a spherical feature space with prototypical classifiers, APE employs three distinct schemes: Attraction for global distribution alignment, Perturbation for robust label propagation, and Exploration for local class-aware refinement. Experimental results on DomainNet and Office-Home benchmarks demonstrate that APE achieves state-of-the-art performance, effectively addressing the internal split within the target domain.

Introduction: The Challenge of Intra-Domain Discrepancy

Domain Adaptation (DA) is essential for transferring knowledge from a source domain (e.g., synthetic data) to a target domain (e.g., real-world images). While Unsupervised Domain Adaptation (UDA) relies solely on unlabeled target data, Semi-supervised Domain Adaptation (SSDA) incorporates a few labeled target samples to guide the process.

Conceptual comparison between UDA, SSDA, and the proposed APE framework.

However, the introduction of labeled target samples creates a "chronic issue": intra-domain discrepancy. When a model is trained on a few labeled target samples, these samples (and their immediate feature neighbors) are pulled toward the source clusters. Meanwhile, the majority of the target domain remains unaligned. This creates two distinct sub-distributions within the target domain—"aligned" and "unaligned"—which standard UDA and Semi-supervised Learning (SSL) methods fail to reconcile, sometimes leading to "negative transfer."

The APE Framework

The APE framework addresses this discrepancy by operating in a Spherical Feature Space using a prototypical classifier. This setup measures cosine similarity between features and class "prototypes," reducing intra-class variance. The framework is built on three pillars:

Overview of the APE architecture, including the spherical feature space and the three alignment modules.

1. Attraction: Global Alignment

The Attraction scheme aims to close the gap between the unaligned target samples and the already-aligned ones globally. It utilizes Maximum Mean Discrepancy (MMD) to minimize the distance between the distribution of the combined source and labeled target data and the distribution of the unlabeled target data.

2. Perturbation: Robust Label Propagation

Standard adversarial training, such as Virtual Adversarial Training (VAT), can be counterproductive in SSDA as it may disrupt existing alignments. APE introduces domain-adaptive adversarial perturbation, which specifically moves target features toward "intermediate regions" between clusters. This facilitates the propagation of labels from the aligned sub-distribution to the unaligned one without degrading the established feature structure.

3. Exploration: Local Class-Aware Alignment

Exploration focuses on local, class-aware alignment. The model identifies unlabeled target samples with low entropy (high prediction confidence) and aligns them directly with their nearest class prototypes. This process "explores" the feature space to refine class boundaries and ensure that high-confidence unlabeled samples are correctly clustered.

Experimental Evaluation

The researchers evaluated APE on three major domain adaptation benchmarks: DomainNet, Office-Home, and Office. Testing focused on 1-shot and 3-shot scenarios, where only 1 or 3 labeled samples per class were available in the target domain.

Key Results

APE consistently outperformed existing UDA, SSL, and SSDA baselines:

  • DomainNet (ResNet-34, 3-shot): APE achieved a mean accuracy of 71.7%, significantly higher than the previous state-of-the-art (MME) at 68.9%.
  • Office-Home (ResNet-34, 3-shot): APE reached 74.0% mean accuracy, compared to 73.1% for MME and 66.2% for a simple supervised baseline (S+T).
  • Scalability: As the number of labeled target samples increased (up to 20 per class), APE maintained its lead, demonstrating its effectiveness in leveraging additional supervision.

Discussion and Key Insights

The core insight of this work is that adding labels to the target domain fundamentally changes the geometry of the feature space, necessitating a strategy to manage the resulting intra-domain gap. The authors demonstrate that conventional VAT is often ineffective in SSDA because it fails to distinguish between aligned and unaligned target samples. By using prototypes as anchors in a spherical space, APE provides a more stable target for alignment.

While APE shows superior performance, it does introduce some computational overhead due to multiple loss functions and MMD calculations. Future work may explore more efficient label propagation methods, such as graph-based approaches, to further bridge the intra-domain gap.

Summary updated

BibTeX
@inproceedings{kim2020attract,
  author = {Taekyung Kim and Changick Kim},
  title = {{Attract, Perturb, and Explore: Learning a Feature Alignment Network for Semi-supervised Domain Adaptation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58568-6\_35},
}
Figure