Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation
About
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. 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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | Office-31 | Average Accuracy89.6 | 261 | |
| Unsupervised Domain Adaptation | Office-Home | Average Accuracy72.7 | 238 | |
| Image Classification | PACS | -- | 230 | |
| Domain Adaptation | Office-31 | Accuracy (A -> W)92.1 | 156 | |
| Image Classification | Office-Home | Average Accuracy72.7 | 142 | |
| Partial Domain Adaptation | Office-Home | Average Accuracy79.7 | 97 | |
| Object Classification | VisDA synthetic-to-real 2017 | Mean Accuracy88 | 91 | |
| Image Classification | VisDA 2017 (test) | Class Accuracy (Plane)95.2 | 83 | |
| Unsupervised Domain Adaptation | Office-31 | A->W Accuracy92.1 | 83 | |
| Domain Adaptation | Office31 (test) | Mean Accuracy89.7 | 74 |