Asymmetric Co-Training for Source-Free Few-Shot Domain Adaptation

G. Li, Yuan WuarXiv 2025

TL;DR

This paper introduces a new setting called Source-Free Few-Shot Domain Adaptation (SFFSDA) and proposes an "Asymmetric Co-Training" (ACT) method to address it. ACT effectively adapts pre-trained models to new domains using only a handful of labeled target examples, outperforming existing methods in challenging scenarios and offering a more practical solution for real-world applications where large labeled datasets are scarce.

What Problem Does This Paper Address?

Traditional Unsupervised Domain Adaptation (UDA) assumes access to both labeled source data and unlabeled target data. Source-Free UDA (SFUDA) relaxes the need for source data but still requires a large amount of unlabeled target data. However, in many real-world scenarios, obtaining large amounts of unlabeled data is difficult, and only a few labeled examples might be available. This gap leads to Source-Free Few-Shot Domain Adaptation (SFFSDA), where we adapt a pre-trained source model to a target domain using only a small labeled "support set" (e.g., 1-5 examples per class). Existing SFUDA methods struggle with this limited data, and traditional few-shot learning methods often require extensive fine-tuning or specialized architectures. This paper tackles the challenge of adapting pre-trained models effectively in SFFSDA, where data is scarce and source data is unavailable.

Methods

The core of the proposed solution is the Asymmetric Co-Training (ACT) method, which operates in two main steps:

  1. Data Diversity and Discriminative Learning:
    • Weak-Strong Augmentation: To combat the lack of data diversity in the few-shot setting and prevent overfitting, ACT employs both weak (e.g., random cropping, flipping) and strong (e.g., AutoAugment) data augmentation techniques. This generates synthetic data, enriching the support set.
  2. Two Classifiers: The model uses two parallel classifier branches (C1 and C2) built upon a shared feature extractor.
  3. Multi-Loss Optimization: This step optimizes a combination of losses:
  4. Label Smoothing Cross-Entropy (LSCE): Encourages the model to learn discriminative features and align with ground-truth labels from the support set.
  5. Entropy Minimization: Reduces the entropy of class-conditional distributions for both classifiers, guiding the model through low-density regions of the target domain and improving its ability to fit target structures.
  6. Reverse Cross-Entropy (RCE): Minimizes the discrepancy between the outputs of the source model and the adapted target model. This is crucial for retaining semantic information from the pre-trained source model and preventing overfitting, especially with augmented data.
  7. Classifier Determinacy Disparity Minimization:
    • Classifier Determinacy Disparity (CDD) Distance: This novel metric measures the consistency and confidence of predictions between the two classifiers. By minimizing CDD, ACT ensures that both classifiers produce aligned and confident predictions, leading to a more robust decision boundary.
  8. Fixed Feature Extractor: In this step, the feature extractor is frozen, and only the two classifiers are trained to refine their predictions and minimize the CDD.

Additionally, the paper incorporates Sharpness-Aware Minimization (SAM) as the optimization strategy, which has been shown to improve generalization and accuracy, combined with the Adam optimizer.

Datasets

The proposed ACT method was evaluated on four standard domain adaptation benchmarks:

  • Office31: A small dataset with 3 domains (Amazon, DSLR, Webcam) and 31 object categories.
  • OfficeHome: A medium-sized dataset with 4 domains (Art, Clipart, Product, Real World) and 65 object categories.
  • VisDA-C: A large-scale dataset for synthesis-to-real object recognition, with 12 categories.
  • TerraIncognita (Terra): A dataset of wild animal images from four locations, with 10 categories.

The paper also discusses experiments on partial-set DA and open-set DA scenarios, using subsets of the OfficeHome dataset.

Key Insights and Ideas

  • SFFSDA as a Practical Setting: The paper convincingly argues that SFFSDA (Source-Free Few-Shot Domain Adaptation) is a more realistic and practical scenario than SFUDA, as acquiring a few labeled examples is often more feasible than large unlabeled datasets.
  • The Power of Asymmetric Co-Training: The two-branch classifier architecture, combined with carefully chosen losses and the CDD metric, allows for effective knowledge transfer and robust adaptation even with minimal labeled data.
  • Augmentation is Key for Few-Shot: The strong-weak augmentation strategy is crucial for overcoming data scarcity and preventing overfitting in the few-shot setting.
  • CDD for Classifier Alignment: The novel CDD metric effectively enforces consistency between the two classifiers, leading to improved decision boundaries and overall performance.
  • SAM for Enhanced Robustness: Incorporating SAM as the optimizer significantly boosts the model's accuracy and generalization capabilities.

Key Results

  • Superior Performance: ACT consistently outperforms state-of-the-art SFUDA methods (SHOT, SHOT++, AaD, etc.) and transfer learning methods (FT, LP-FT, LCCS) across all tested benchmarks and few-shot settings (1, 3, 5, 10 shots).
  • Significant Gains on Challenging Datasets: On the imbalanced Terra dataset, ACT shows substantial improvements, highlighting its effectiveness in handling long-tail distributions.
  • Efficiency: ACT achieves competitive results with significantly less labeled data compared to SFUDA methods. For instance, on VisDA-C, ACT with 50 shots (approx. 1.08% of target data) achieves competitive results with SFUDA baselines.
  • Robustness to Sample Quality: Ablation studies and experiments with different random seeds show that ACT is robust to the quality of the chosen few-shot samples, with performance variance being less than 1%.
  • Effective in ODA/PDA: The method also demonstrates strong performance in more complex partial-set and open-set domain adaptation scenarios.

Limitations and Future Work

  • Training Time: The paper acknowledges that ACT's two-step optimization and multiple loss functions lead to a slightly longer training time compared to simpler methods. However, they argue this is less critical in the few-shot setting where the primary goal is minimizing target dataset size.
  • Hyperparameter Tuning: Like most deep learning methods, ACT likely requires careful tuning of hyperparameters (e.g., α, δ, λ, γ in the loss functions, and the SAM parameters).
  • Future Work: The authors suggest exploring additional regularization techniques for further advancements in SFFSDA. They also highlight the potential for further research into optimizing the few-shot sampling process.

Summary updated

Abstract

Source-free unsupervised domain adaptation (SFUDA) has gained significant attention as an alternative to traditional unsupervised domain adaptation (UDA), which relies on the constant availability of labeled source data. However, SFUDA approaches come with inherent limitations that are frequently overlooked. These challenges include performance degradation when the unlabeled target data fails to meet critical assumptions, such as having a closed-set label distribution identical to that of the source domain, or when sufficient unlabeled target data is unavailable-a common situation in real-world applications. To address these issues, we propose an asymmetric co-training (ACT) method specifically designed for the SFFSDA scenario. SFFSDA presents a more practical alternative to SFUDA, as gathering a few labeled target instances is more feasible than acquiring large volumes of unlabeled target data in many real-world contexts. Our ACT method begins by employing a weak-strong augmentation to enhance data diversity. Then we use a two-step optimization process to train the target model. In the first step, we optimize the label smoothing cross-entropy loss, the entropy of the class-conditional distribution, and the reverse-entropy loss to bolster the model's discriminative ability while mitigating overfitting. The second step focuses on reducing redundancy in the output space by minimizing classifier determinacy disparity. Extensive experiments across four benchmarks demonstrate the superiority of our ACT approach, which outperforms state-of-the-art SFUDA methods and transfer learning techniques. Our findings suggest that adapting a source pre-trained model using only a small amount of labeled target data offers a practical and dependable solution. The code is available at https://github.com/gengxuli/ACT.
BibTeX
@misc{li2025asymmetric,
  author = {G. Li and Yuan Wu},
  title = {{Asymmetric Co-Training for Source-Free Few-Shot Domain Adaptation}},
  year = {2025},
  eprint = {2502.14214},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.14214},
  howpublished = {arXiv},
}
Figure