NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning from Different Samples: A Source-free Framework for Semi-supervised Domain Adaptation

Xinyang Huang, Chuang Zhu, Bowen Zhang, Shanghang ZhangarXiv 2024 · DOI

Abstract

Semi-supervised Domain Adaptation (SSDA) aims to adapt models to new domains using limited labeled target data. However, existing methods often rely on original source data and treat all target samples uniformly, leading to sub-optimal performance. We present SOUF (Source-free), a framework that eliminates source data dependency and employs specialized learning strategies for different target sample types. By decoupling adaptation into probability-based weighted contrastive learning, reliability-based mixup, and predictive regularization, SOUF achieves state-of-the-art results across major benchmarks, significantly outperforming source-dependent methods.

Introduction

In the field of machine learning, Domain Adaptation (DA) is the critical process of transferring knowledge from a "source" domain (e.g., high-resolution studio photos) to a "target" domain (e.g., low-quality real-world images). Semi-supervised Domain Adaptation (SSDA) facilitates this by providing a small number of labeled examples in the target domain to guide the adaptation.

Despite its potential, current SSDA research faces two major hurdles. First, most methods require continuous access to the original source training data. In practice, this data is often unavailable due to privacy concerns (such as medical records), proprietary restrictions, or prohibitive storage costs. Second, existing approaches typically treat all target samples with a "one-size-fits-all" strategy. They fail to distinguish between high-quality labeled data, high-confidence unlabeled data, and "noisy" samples where model predictions are likely incorrect. This uniform treatment often leads to knowledge bias and prevents the model from reaching its full potential.

Comparison of existing SSDA methods vs. the proposed SOUF framework.

The SOUF Framework

To address these limitations, the authors propose SOUF, a source-free framework that fine-tunes a pre-trained Transformer backbone using three specialized learning modules tailored to the characteristics of different sample types. By decoupling the adaptation process, SOUF can more effectively mine knowledge from every available sample without needing the original source dataset.

Methodology

The SOUF architecture utilizes three distinct learning strategies:

  1. Probability-based Weighted Contrastive Learning (PWC): This module is designed for unlabeled samples. Unlike standard contrastive learning, PWC employs adaptive weights that assign lower importance to low-confidence pairs. This prevents the model from learning incorrect relationships and encourages it to cluster similar categories more tightly in the feature space.
  2. Reliability-based Mixup Contrastive Learning (RMC): RMC targets "reliable" samples, which include the few labeled target images and the most confident unlabeled ones. It utilizes a patch-level mixup strategy specifically optimized for Transformers. By blending segments of different images, the model is forced to learn complex, granular features rather than relying on simple global shapes.
  3. Predictive Regularization Learning (PR): This module specifically addresses the "noise" inherent in pseudo-labels. Since models often make incorrect guesses on difficult samples, PR uses a moving average of previous predictions to "smooth out" the impact of noisy labels, preventing the model from overfitting to its own errors.
Detailed architecture of the SOUF framework showing the data flow for labeled, mixed, and unlabeled samples.

Experimental Evaluation

The researchers evaluated SOUF on three major benchmarks: DomainNet (a massive dataset with Real, Clipart, Painting, and Sketch domains), Office-Home (medium-sized), and Office-31 (smaller, classic benchmark). The experiments focused on "1-shot" and "3-shot" scenarios, where the model only has access to 1 or 3 labeled examples per category in the target domain.

Key Results

SOUF demonstrated significant performance gains over previous state-of-the-art (SOTA) methods:

  • Office-Home (1-shot): SOUF achieved 87.7% accuracy, representing a massive +11.3% improvement over the previous SOTA.
  • DomainNet (1-shot): It reached 90.0% accuracy, outperforming existing methods by +8.6%.
  • Source-Free Superiority: Remarkably, SOUF consistently outperformed "source-dependent" methods—those that still utilize the original source data—proving that a specialized strategy for target samples is more effective than simply retaining source data.

Discussion and Conclusion

The success of SOUF highlights two major shifts in domain adaptation research. First, Source-Free is viable: SOUF proves that original source data is not a prerequisite for high performance, making the framework ideal for privacy-sensitive applications. Second, Customization is key: By explicitly separating reliable data from noisy data, the model avoids the "garbage in, garbage out" trap common in uniform adaptation strategies.

While SOUF is heavily optimized for Transformer architectures (like DeiT), its performance on older CNN-based architectures remains competitive. Future work may involve further refining the selection process for "reliable" samples to enhance robustness against extreme domain shifts and exploring ways to reduce the computational complexity introduced by multiple contrastive learning heads.

Summary updated

BibTeX
@misc{huang2024learning,
  author = {Xinyang Huang and Chuang Zhu and Bowen Zhang and Shanghang Zhang},
  title = {{Learning from Different Samples: A Source-free Framework for Semi-supervised Domain Adaptation}},
  year = {2024},
  eprint = {2411.06665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.06665},
}
Figure