Skip to main content
QUICK REVIEW

[Paper Review] Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation

Shiqi Yang, Yaxing Wang|arXiv (Cornell University)|May 9, 2022
Domain Adaptation and Few-Shot LearningComputer Science54 citations
TL;DR

The paper introduces AaD, a simple source-free domain adaptation objective that attracts predictions among nearby target features while dispersing predictions of distant features, achieving state-of-the-art results on VisDA-C and strong performance on Office-31/Office-Home without using source data.

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. 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.

Motivation & Objective

  • Motivate SFDA as an unsupervised clustering problem using local prediction consistency.
  • Develop a simple upper-bound objective that yields two terms: discriminability and diversity.
  • Enable efficient training with memory banks and nearest-neighbor retrieval for target features.
  • Relate AaD to existing DA, SFDA, and contrastive methods via discriminability and diversity.
  • Demonstrate strong empirical performance across SFDA benchmarks and extendability to open-set/partial-set DA.

Proposed method

  • Formulate AaD by encouraging predictions of nearby target features to align while pushing predictions of distant features apart.
  • Define two neighbor sets for each feature: a K-nearest neighbor set C_i and a background set B_i.
  • Propose an upper-bound objective L_i(C_i,B_i) = - sum_{j in C_i} p_i^T p_j + lambda sum_{m in B_i} p_i^T p_m, optimized over mini-batches with a memory bank of target features and predictions.
  • Use cosine similarity to define neighbor relations and store target features/predictions in memory for efficient retrieval.
  • Incorporate a decaying factor lambda controlled by Soft Neighborhood Density (SND) to balance clustering and dispersion over training.
  • Relate AaD to MI, BNM, NC, and contrastive learning by interpreting terms as discriminability and diversity; optimize via discriminability-focused first term and diversity-focused second term.

Experimental results

Research questions

  • RQ1How can source-free domain adaptation be effectively formulated as an unsupervised clustering problem using local neighborhood structure?
  • RQ2Can a simple upper-bound objective with two terms (discriminability and diversity) achieve competitive SFDA performance without source data?
  • RQ3How does the proposed AaD framework relate to and unify existing DA/SFDA and contrastive learning approaches?
  • RQ4What are the empirical gains of AaD on standard SFDA benchmarks (Office-31, Office-Home, VisDA-C) and can it extend to open-set/partial-set DA?

Key findings

  • AaD achieves state-of-the-art results among source-free methods on VisDA-C (2.1% improvement over the prior best) and strong performance on Office-Home and VisDA compared to methods with source access.
  • The simple two-term objective fosters local prediction consistency while encouraging diversity, enabling clustering and cluster assignment without complex modules.
  • The method relies on memory banks and nearest-neighbor retrieval to efficiently implement the objective in SFDA settings.
  • Adecay schedule for the second term via SND improves unsupervised hyperparameter selection and final performance.
  • Experiments show AaD generalizes to source-free open-set and partial-set DA settings.
  • A lightweight memory-bank variant maintains competitive performance with reduced computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.