Shuffle PatchMix Augmentation with Confidence-Margin Weighted Pseudo-Labels for Enhanced Source-Free Domain Adaptation

Prasanna Reddy Pulakurthi, Majid Rabbani, Jamison Heard, Sohail A. Dianat, Celso M. de Melo, Raghuveer RaoarXiv 2025 · DOI

Introduction

Source-Free Domain Adaptation (SFDA) has emerged as a critical task in machine learning, addressing scenarios where a model must adapt to a new target domain without access to the original source training data. This constraint is often necessitated by privacy regulations, security protocols, or logistical data volume issues. This paper introduces a robust framework that significantly improves SFDA performance by addressing the core issues of pseudo-label noise and limited target diversity.

The Challenge of Source-Free Domain Adaptation

In standard Unsupervised Domain Adaptation (UDA), models have access to both source and target data. However, in SFDA, the absence of source data leads to two primary hurdles:

  1. Pseudo-Label Noise: Models must rely on their own predictions for self-training. Incorrect predictions can lead to a reinforcing feedback loop of errors.
  2. Lack of Diversity: Target datasets may be small or repetitive, increasing the risk of overfitting to specific target features.

Methodology

The proposed framework integrates two key innovations: Shuffle PatchMix (SPM) and Confidence-Margin Reweighting.

Overview of the proposed SFDA framework featuring SPM augmentation and Confidence-Margin weighting.

Shuffle PatchMix (SPM)

Shuffle PatchMix is an intra-image augmentation technique designed to create challenging yet class-consistent training samples. Unlike traditional Mixup, which blends two different images, SPM operates on a single target image. It divides the image into patches, shuffles them, and blends the result back with the original image using a mixing coefficient $\lambda$ drawn from a Beta distribution.

Visualization of Shuffle PatchMix (SPM) across different Beta distributions and the effect of overlapping patch blending.

Key features of SPM include:

  • Adaptive Mixing: The complexity of the shuffle increases over time, allowing the model to adapt gradually.
  • Overlapping Patch Blending: To mitigate "blocking artifacts" that can disrupt neural network processing, the authors employ a smoothing technique at patch boundaries.

Confidence-Margin Reweighting

To combat pseudo-label noise, the authors move beyond simple confidence thresholds. They introduce a weighting function $w = p_{top1} \cdot \Delta \cdot \exp(\Delta)$, where $p_{top1}$ is the top-1 prediction probability and $\Delta$ is the margin between the top-1 and top-2 predictions. This ensures that the model prioritizes samples where it is both certain and decisive, reducing the impact of ambiguous or noisy labels.

Experimental Results

The framework was evaluated on three major benchmarks: PACS, VisDA-C, and DomainNet-126.

  • PACS: The method achieved an average accuracy of 86.7%, a 7.3% improvement over the previous state-of-the-art (AdaContrast).
  • DomainNet-126: Reached 71.1% accuracy, marking a 2.8% gain.
  • VisDA-C: Achieved 89.4% accuracy, demonstrating scalability to large-scale datasets.

Ablation studies confirmed the synergy between SPM and reweighting. On the PACS dataset, the baseline accuracy of 79.4% rose to 81.8% with reweighting alone, but jumped to 86.7% when combined with SPM.

Discussion and Future Work

The success of this approach highlights that intra-image mixing is a safer and more effective strategy for SFDA than inter-image mixing, as it avoids the risk of blending features from different classes when labels are uncertain. Furthermore, the margin-based weighting proves more robust than simple confidence metrics.

Future research directions include optimizing hyperparameter sensitivity for different datasets and extending the SPM technique to other tasks such as object detection and semantic segmentation.

Summary updated

BibTeX
@misc{pulakurthi2025shuffle,
  author = {Prasanna Reddy Pulakurthi and Majid Rabbani and Jamison Heard and Sohail A. Dianat and Celso M. de Melo and Raghuveer Rao},
  title = {{Shuffle PatchMix Augmentation with Confidence-Margin Weighted Pseudo-Labels for Enhanced Source-Free Domain Adaptation}},
  year = {2025},
  eprint = {2505.24216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.24216},
}
Figure