Robust Self-Supervised Learning for Source-Free Domain Adaptation

Tian Liang, Lihua Zhou, Hao Zhang, Zhenbin Wang, Mao YeResearch 2022

Abstract

Source-Free Domain Adaptation (SFDA) is a variant of Unsupervised Domain Adaptation (UDA) where source domain data is inaccessible during adaptation. While self-supervised learning is common in SFDA, inaccurate pseudo-labels often degrade model performance. We propose RS2L (Robust Self-Supervised Learning) to mitigate this. RS2L employs two key strategies: a structure-preserved pseudo-labelling (SPPL) strategy that leverages $k$-nearest neighbors for more accurate labels, and an entropy-based masking strategy for selective self-supervised learning. Experiments on Office-31, Office-Home, and VisDA-C benchmarks demonstrate that RS2L achieves state-of-the-art results.

Introduction

In Unsupervised Domain Adaptation (UDA), models are adapted from a labeled source domain to an unlabeled target domain. However, real-world constraints like privacy and data volume often lead to Source-Free Domain Adaptation (SFDA), where only the pre-trained source model is available. Without source data as an anchor, models typically rely on self-generated "pseudo-labels." A significant challenge in this setting is the "error reinforcement" loop: incorrect pseudo-labels lead to poor training, which in turn generates even worse labels.

Conceptual illustration of the domain adaptation process showing the alignment of target features with the underlying class structure.

The RS2L Framework

The proposed RS2L (Robust Self-Supervised Learning) framework introduces two mechanisms to stabilize adaptation:

1. Structure-Preserved Pseudo-Labeling (SPPL)

Instead of relying on a single, potentially noisy prediction, SPPL utilizes the local structure of the feature space. By maintaining a feature bank and a score bank, the model identifies the $k$-nearest neighbors for each sample. The pseudo-label is then derived from the average predictions of these neighbors, ensuring that similar samples are clustered together and reducing the impact of individual outliers.

2. Self-Supervised Learning with Masking

RS2L uses an adaptive entropy-based masking strategy to handle samples differently based on the model's confidence:

  • High-confidence samples (low entropy) undergo standard self-supervision to preserve source knowledge.
  • Low-confidence samples (high entropy) are guided by the SPPL strategy. The threshold for this mask is updated dynamically based on the mean entropy of the dataset, ensuring a balanced learning process across all samples.
The RS2L architecture, showing the interaction between the feature extractor, classifier, and the memory banks used for neighborhood-based labeling.

Experimental Results

RS2L was evaluated on three major benchmarks: Office-31, Office-Home, and VisDA-C.

  • Office-Home: RS2L achieved an average accuracy of 73.7%, outperforming the previous state-of-the-art (SCLM) by 0.6%.
  • VisDA-C: On this large-scale synthetic-to-real challenge, RS2L reached 86.9% accuracy, a 1.2% improvement over ProxyMix.
  • Office-31: The model secured a competitive 89.9% accuracy.

The use of Exponential Moving Averages (EMA) for updating the score bank contributed significantly to the stability of the training process, preventing erratic performance fluctuations common in self-training methods.

Conclusion

RS2L effectively addresses the noise inherent in source-free domain adaptation by leveraging neighborhood consistency and adaptive masking. While the method shows strong performance, challenges remain in extremely low-density data regions (e.g., small classes in the Office-31 Webcam domain), where $k$-NN can inadvertently introduce cross-class noise. Future research will explore dynamic $k$ selection to further enhance robustness in sparse data environments.

Summary updated

BibTeX
@inproceedings{liang2022robust,
  author = {Tian Liang and Lihua Zhou and Hao Zhang and Zhenbin Wang and Mao Ye},
  title = {{Robust Self-Supervised Learning for Source-Free Domain Adaptation}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-2094465/v1},
}
Figure