Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation

Shiqi Yang, Yaxing Wang, Kai Wang, Shangling Jui, Joost van de Weijer
5/9/2022
cs.CVcs.LG

Official code: Albert0147/AaD_SFDA (75 stars, Python, last commit 2024-12-11).

Abstract

We propose a simple but effective source-free domain adaptation (SFDA) method. Treating SFDA as an unsupervised clustering problem and following the intuition that local neighbors in feature space should have more similar predictions than other features, we propose to optimize an objective of prediction consistency.

Show full abstract

This objective encourages local neighborhood features in feature space to have similar predictions while features farther away in feature space have dissimilar predictions, leading to efficient feature clustering and cluster assignment simultaneously. For efficient training, we seek to optimize an upper-bound of the objective resulting in two simple terms. Furthermore, we relate popular existing methods in domain adaptation, source-free domain adaptation and contrastive learning via the perspective of discriminability and diversity. The experimental results prove the superiority of our method, and our method can be adopted as a simple but strong baseline for future research in SFDA. Our method can be also adapted to source-free open-set and partial-set DA which further shows the generalization ability of our method. Code is available in https://github.com/Albert0147/AaD_SFDA.

View on arXivView PDF

Code Implementations(1)

Code for our NeurIPS 2022 (spotlight) paper 'Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation'

756Python, Jupyter NotebookMay 7, 20221 years ago
neurips-2022neurips2022source-free-domain-adaptation

Similar Papers

Cite this paper

@article{yang2022attracting,
  title  = {Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation},
  author = {Shiqi Yang and Yaxing Wang and Kai Wang and Shangling Jui and Joost van de Weijer},
  year   = {2022},
  eprint = {2205.04183},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.04183}
}

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/2205.04183.svg)](https://codeofpaper.com/paper/2205.04183)

Discussion