ECACL: A Holistic Framework for Semi-Supervised Domain Adaptation

Kai Li, Chang Liu, Handong Zhao, Yulun Zhang, Yun Fu

TL;DR

This paper introduces ECACL, a novel framework for Semi-Supervised Domain Adaptation (SSDA) that effectively leverages a small number of labeled "landmark" samples in the target domain alongside abundant unlabeled target data and labeled source data. ECACL achieves state-of-the-art results by combining enhanced categorical alignment and consistency learning techniques to bridge domain gaps.

What Problem Does This Paper Address?

Deploying machine learning models trained on one dataset (source domain) to a different, but related, dataset (target domain) often leads to a significant drop in performance due to domain shift. Unsupervised Domain Adaptation (UDA) tackles this by using only unlabeled target data. However, a more practical scenario, Semi-Supervised Domain Adaptation (SSDA), assumes access to a few labeled samples in the target domain, often referred to as "landmarks." While these landmarks are valuable, existing SSDA methods haven't fully exploited their potential, often diluting their impact. This paper aims to bridge this gap by proposing a holistic framework that maximizes the utility of these precious landmarks.

Methods

ECACL is a modular framework that integrates several techniques to achieve robust domain alignment:

  • Enhanced Categorical Alignment: This module focuses on aligning classes across domains. It uses two approaches:
  • Prototypical Loss: It computes class prototypes (average feature embeddings) from the labeled target "landmarks" and aligns source samples to these prototypes.
  • Triplet Loss: It explicitly pushes source samples closer to landmarks of the same class and further from landmarks of different classes.
  • Strong Data Augmentation: To prevent overfitting with few landmarks and improve generalizability, a strong data augmentation strategy (RandAugment) is applied to both labeled source and target samples. This forces the model to be robust to significant image perturbations.
  • Consistency Alignment: This module leverages unlabeled target data. It applies weak and strong augmentations to unlabeled target images, generates pseudo-labels from the weakly augmented versions, and enforces consistency between the predictions of both augmented versions. This encourages the model to be invariant to image perturbations and helps propagate knowledge from the source to the target domain.

ECACL combines these modules into a unified objective function, allowing for comprehensive domain alignment.

Datasets

The proposed ECACL framework was evaluated on three standard datasets:

  • VisDA2017: A large-scale dataset with synthetic and real images from 12 categories.
  • DomainNet: A challenging dataset comprising 6 domains and 345 categories. The paper focuses on four specific domains: Real (R), Clipart (C), Painting (P), and Sketch (S).
  • Office-Home: A dataset with 65 categories across 4 domains: Real (R), Clipart (C), Art (A), and Product (P).

The experiments were conducted using 1-shot and 3-shot settings, meaning only one or three labeled target samples per class were available, respectively.

Key Insights and Ideas

  • Landmarks are Gold: The paper strongly emphasizes that even a small number of labeled target samples ("landmarks") can significantly boost domain adaptation performance, provided they are utilized effectively.
  • Holistic Approach is Key: Simply adding landmarks to existing UDA methods isn't enough. ECACL's success stems from its integrated approach, combining multiple complementary alignment strategies.
  • Strong Augmentation for Robustness: Applying aggressive data augmentation not only helps prevent overfitting with limited labeled data but also forces the model to learn more robust and generalizable features, crucial for bridging domain gaps.
  • Consistency is Crucial for Unlabeled Data: The consistency learning module effectively harnesses unlabeled target data by enforcing that the model's predictions remain stable across different augmented views of the same image.
  • Plug-and-Play Flexibility: ECACL is designed to be agnostic to the underlying UDA method, allowing researchers to easily integrate it with their preferred UDA techniques to enhance SSDA performance.

Key Results

ECACL significantly advances the state-of-the-art in SSDA:

  • VisDA2017 (1-shot): Achieved an accuracy of 81.1%, a substantial improvement from the previous state-of-the-art of 68.4%.
  • DomainNet (1-shot): Reached 53.4% accuracy, up from 45.5%.
  • Office-Home: While gains were less dramatic (likely due to dataset difficulty), ECACL-P still demonstrated significant improvements over existing methods.
  • Flexibility: ECACL consistently boosted the performance of various UDA methods (MME, HAFN, SAFN) when integrated, showing its broad applicability.
  • Robustness: The framework showed good performance across different numbers of labeled samples and was relatively insensitive to the confidence threshold parameter in the consistency alignment module.

Limitations and Future Work

  • Sensitivity to λ₂: While robust to λ₁, the performance of ECACL degrades when the hyperparameter λ₂ (weight for consistency loss) exceeds 1. This suggests careful tuning of this parameter is necessary.
  • Dataset Specificity: While effective on the tested datasets, the performance gains might vary on datasets with more extreme domain shifts or different data characteristics.
  • Future Work: The paper suggests that ECACL can be further extended by incorporating other UDA techniques and exploring more advanced data augmentation strategies. The framework's flexibility also opens avenues for applying it to other domain adaptation-related tasks.

Summary updated

BibTeX
@inproceedings{li2021ecacl,
  author = {Kai Li and Chang Liu and Handong Zhao and Yulun Zhang and Yun Fu},
  title = {{ECACL: A Holistic Framework for Semi-Supervised Domain Adaptation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
}
Figure