Active Source Free Domain Adaptation

Fan Wang, Zhongyi Han, Zhiyan Zhang, Yilong YinarXiv 2022

Abstract

Source-free domain adaptation (SFDA) aims to transfer a trained source model to an unlabeled target domain without accessing source data, ensuring privacy and security. However, the absence of source data and target supervision often leads to a performance bottleneck. In this paper, we introduce Active Source-Free Domain Adaptation (ASFDA), a practical scenario that allows for the active selection of a small fraction of target data for expert labeling. We propose the Minimum Happy Points Learning (MHPL) framework to identify and exploit the most informative samples, termed "Minimum Happy" (MH) points. Our method achieves significant performance gains over state-of-the-art SFDA and Active DA methods with minimal labeling cost.

Introduction

Domain Adaptation (DA) is a critical technique for bridging the gap between a labeled source domain and an unlabeled target domain. While standard DA requires concurrent access to both domains, Source-Free Domain Adaptation (SFDA) has emerged as a privacy-preserving alternative. Despite its benefits, SFDA often struggles to achieve high performance due to the lack of direct supervision in the target domain.

To address this, we propose ASFDA, which permits labeling a tiny portion (e.g., 5%) of target data. The core challenge in ASFDA is identifying which samples to label when source data is unavailable. We identify three key properties for optimal selection: samples should be neighbor-chaotic (high local uncertainty), individual-different (diverse), and target-like (representative of the target distribution). We call these "Minimum Happy" (MH) points.

Minimum Happy Points Learning (MHPL)

The MHPL framework consists of two main phases: exploration and exploitation of MH points.

Overview of the MHPL framework, illustrating the exploration and exploitation phases.

Exploration Strategies

  1. Neighbor Ambient Uncertainty (NAU): Traditional model confidence is often miscalibrated in the target domain. NAU instead evaluates uncertainty by analyzing a point's neighborhood, combining neighbor purity (label consistency) and neighbor affinity (spatial proximity).
  2. Neighbor Diversity Relaxation (NDR): To ensure the selected samples are not redundant, NDR prevents the selection of points whose immediate neighbors have already been queried.
  3. One-shot Querying: We find that querying samples all at once using the initial source model is more effective than iterative selection. This is because the initial model retains a clearer "sense" of the domain discrepancy before it begins to adapt and potentially overfit to target pseudo-labels.

Exploitation via Neighbor Focal Loss

To fully leverage the labeled MH points, we introduce the Neighbor Focal (NF) Loss. This loss function weights the cross-entropy of MH points based on their neighbor purity. By focusing the model's attention on these "chaotic" regions, the labeled points act as landmarks that help correct the pseudo-labels of their surrounding neighbors.

Experimental Results

We evaluated MHPL on three major benchmarks: Office-31, Office-Home, and VisDA-2017.

Comparison of MHPL against SFDA, Active DA, and ASFDA baselines on the Office-Home dataset.

As shown in the table above, MHPL consistently outperforms existing methods. On the Office-Home dataset, MHPL achieves an average accuracy of 79.1%, significantly surpassing the best SFDA method, A^2Net (72.8%), and the leading Active DA method, EADA (76.7%). Similar trends were observed on VisDA-2017, where MHPL reached 91.2% accuracy. These results demonstrate that a small amount of targeted labeling can effectively break the SFDA performance bottleneck.

Conclusion and Future Work

This work introduces ASFDA as a more practical and effective paradigm for domain adaptation when source data is restricted. By identifying and focusing on Minimum Happy points through the MHPL framework, we achieve state-of-the-art performance with minimal human intervention. While the method relies on initial clustering and specific hyperparameters like neighborhood size, it provides a strong baseline for future research. Future work will explore the scalability of MHPL to multi-source and open-set scenarios.

Summary updated

BibTeX
@misc{wang2022active,
  author = {Fan Wang and Zhongyi Han and Zhiyan Zhang and Yilong Yin},
  title = {{Active Source Free Domain Adaptation}},
  year = {2022},
  eprint = {2205.10711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.10711},
}
Figure