Contrast and Clustering: Learning Neighborhood Pair Representation for Source-free Domain Adaptation

Yuqi Chen, Xiangbin Zhu, Yonggang Li, Yingjian Li, Haojie Fang
1/31/2023
4 citations
cs.CVcs.LG

Official code: yukilulu/CaC (5 stars, Python, last commit 2023-05-27).

Abstract

Unsupervised domain adaptation uses source data from different distributions to solve the problem of classifying data from unlabeled target domains. However, conventional methods require access to source data, which often raise concerns about data privacy.

Show full abstract

In this paper, we consider a more practical but challenging setting where the source domain data is unavailable and the target domain data is unlabeled. Specifically, we address the domain discrepancy problem from the perspective of contrastive learning. The key idea of our work is to learn a domain-invariant feature by 1) performing clustering directly in the original feature space with nearest neighbors; 2) constructing truly hard negative pairs by extended neighbors without introducing additional computational complexity; and 3) combining noise-contrastive estimation theory to gain computational advantage. We conduct careful ablation studies and extensive experiments on three common benchmarks: VisDA, Office-Home, and Office-31. The results demonstrate the superiority of our methods compared with other state-of-the-art works.

View on arXivView PDF

Code Implementations(1)

yukilulu/CaCOfficial100%

Code for our paper 'Contrast and Clustering: Learning Nearest Pair Representations for Source-free Domain Adaptation'

50Python, Jupyter NotebookJan 7, 20233 years ago
domain-adaptationsource-free-domain-adaptationtransfer-learning

Similar Papers

Cite this paper

@article{chen2023contrast,
  title  = {Contrast and Clustering: Learning Neighborhood Pair Representation for Source-free Domain Adaptation},
  author = {Yuqi Chen and Xiangbin Zhu and Yonggang Li and Yingjian Li and Haojie Fang},
  year   = {2023},
  eprint = {2301.13428},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.13428v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.13428.svg)](https://codeofpaper.com/paper/2301.13428)

Discussion