Transferrable Contrastive Learning for Visual Domain Adaptation

Yang Chen, Yingwei Pan, Yu Wang, Ting Yao, Xinmei Tian, Tao Mei

Introduction

Unsupervised Domain Adaptation (UDA) aims to bridge the gap between a labeled source domain and an unlabeled target domain. While Self-Supervised Learning (SSL) has recently been integrated into UDA as an auxiliary task, these approaches often treat SSL as a separate component. Standard SSL focuses on instance-level consistency, which may not effectively align class-level distributions across domains. Transferrable Contrastive Learning (TCL) addresses this by unifying SSL and UDA into a single framework that evolves instance-level contrastive learning into a cross-domain, class-level objective.

Methodology

TCL utilizes a dual-encoder architecture consisting of a Query Encoder and a momentum-updated Key Encoder. This design facilitates stable training and effective feature alignment.

Overview of the TCL framework showing the query and key encoders, memory banks, and the TCL loss.

The framework incorporates three key innovations:

  • Momentum Pseudo-Labeling: The Key Encoder acts as a temporal ensemble, providing stable pseudo-labels for target data, which mitigates the risk of error propagation common in standard UDA methods.
  • Domain-Specific Memory Banks: Separate queues for source and target features are maintained. The source bank uses ground-truth labels, while the target bank uses predicted pseudo-labels.
  • TCL Loss: This core objective compares queries from one domain against same-class "positive keys" from the other domain. It simultaneously promotes intra-class compactness and inter-class separability across the domain boundary.

Experiments and Results

The authors evaluated TCL on several challenging benchmarks, including Office-Home, VisDA-2017, Digits-five, PACS, and DomainNet. TCL demonstrated superior performance across the board, setting new state-of-the-art results.

Performance comparison of TCL against state-of-the-art methods on the Office-Home dataset.

Key results include:

  • Office-Home: Reached an average accuracy of 73.4%, significantly outperforming previous methods like RSDA (70.9%).
  • VisDA-2017: Achieved 89.6% accuracy, surpassing the previous best of 87.6%.
  • Multi-Source Adaptation: On the Digits-five benchmark, TCL reached 96.9% accuracy, a 5.1% improvement over existing benchmarks.
  • Scalability: On the large-scale DomainNet dataset (345 classes), TCL achieved a SOTA average accuracy of 51.9%.

Discussion

The success of TCL lies in its shift from instance-level to class-level invariance within a contrastive framework. By repurposing the momentum encoder—a staple in SSL—for stable pseudo-labeling, TCL provides a "free lunch" in terms of stability without additional computational overhead. This unified approach handles both class discrimination and domain alignment congruently.

Despite its strengths, TCL's reliance on a confidence threshold (e.g., 0.95) for pseudo-labeling suggests that performance may be sensitive to the initial model's quality. Future research could investigate more robust methods for screening semantic compatibility to handle even more extreme domain shifts.

Summary updated

BibTeX
@inproceedings{chen2021transferrable,
  author = {Yang Chen and Yingwei Pan and Yu Wang and Ting Yao and Xinmei Tian and Tao Mei},
  title = {{Transferrable Contrastive Learning for Visual Domain Adaptation}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3475496},
}
Figure