Introduction
Domain adaptation is a critical task in machine learning, aimed at transferring knowledge from a labeled source domain to an unlabeled target domain. While Unsupervised Domain Adaptation (UDA) typically assumes access to both datasets, real-world constraints like data privacy and security often restrict access to the original source data once a model is deployed. This gives rise to Source-Free Domain Adaptation (SFDA), where a model must adapt using only its pre-trained weights and the new target data.
This paper introduces a novel framework called Pseudo-Source (PS). The PS method bridges the gap between the source and target distributions by identifying "source-like" samples within the target domain and using them to reconstruct a proxy for the missing source data.
The Challenge of Source-Free Adaptation
In standard UDA, researchers can directly measure the "distribution shift"—the mathematical difference between the source and target data—and minimize it using adversarial training. In SFDA, this is impossible because the source data is absent. Existing SFDA methods often rely on self-labeling (pseudo-labeling), which can be noisy and fails to explicitly align the underlying feature distributions.
The PS Framework
The authors propose a three-step process to overcome the lack of source data by leveraging the knowledge already embedded in the pre-trained source model.
- Generation of Pseudo-Source Domain: The source model contains "prototypes" or class centers. Target samples that the model predicts with high confidence (low entropy) are likely to be close to these prototypes. The PS method selects these "easy" samples to form an initial pseudo-source domain.
- Pseudo-Source Domain Augmentation: To improve the robustness of this proxy domain, the authors apply Mixup augmentation. By interpolating between pairs of selected samples, they create a denser, more continuous representation of the "ghost" source distribution.
- Distribution Alignment: With a pseudo-source domain in hand, the authors can re-introduce adversarial training. They use a Gradient Reversal Layer (GRL) to align the features of the remaining "hard" target samples with the pseudo-source samples. This is supported by four loss functions: adversarial loss to minimize the domain gap, classification loss for accuracy, diversity loss to prevent class collapse, and constraint loss to preserve original source knowledge.
Experimental Results
The PS method was rigorously tested on three major benchmarks: Digits, Office-Home, and VisDA.
On the VisDA dataset, which involves a massive shift from synthetic 3D models to real-world photos, the PS method achieved a per-class accuracy of 84.1%. As shown in the table below, this performance surpasses other leading source-free methods like SHOT (82.9%) and even rivals some methods that have full access to source data.
On Office-Home, the method reached an average accuracy of 72.1%, demonstrating its effectiveness across diverse categories and domains. In the Digits benchmark, it achieved 98.6%, nearly matching the performance of a model trained with ground-truth target labels.
Key Insights and Limitations
The core innovation of this work is the realization that the source model itself acts as a map of the source distribution. By finding target points that fit this map, adversarial alignment—a powerful tool previously reserved for standard UDA—becomes viable for source-free settings.
However, the method does have dependencies. It relies on a hyperparameter $\alpha$ to determine the size of the pseudo-source domain; while $\alpha = 0.1$ proved effective in most tests, extreme domain shifts might require more tuning. Additionally, the success of the method hinges on the initial source model being capable of making at least some confident, correct predictions on the target data.
Conclusion
The PS method provides a robust and elegant solution to the SFDA problem. By generating, augmenting, and aligning a pseudo-source domain, it effectively bridges the distribution gap without compromising data privacy, setting a new state-of-the-art for source-free adaptation.
Summary updated