Abstract
Unsupervised Domain Adaptation (UDA) seeks to mitigate performance degradation caused by domain shift without requiring target domain labels. We present the Diffusion-based Target Sampler (DTS), a novel "plug-and-play" framework that leverages conditional diffusion probabilistic models (CDPM) to generate high-fidelity, diverse pseudo-samples from the target distribution. By augmenting the source domain with these synthetic target-like samples, DTS enables existing UDA models to adapt more effectively. Experimental results on major benchmarks like VisDA-2017 and Office-Home demonstrate consistent performance gains, establishing DTS as a robust strategy for bridging domain gaps.
Introduction
Deep learning models often exhibit significant performance drops when deployed in environments different from their training data, a phenomenon known as domain shift. For instance, a classifier trained on high-quality product images (Source Domain) may fail when applied to real-world webcam captures (Target Domain). Unsupervised Domain Adaptation (UDA) addresses this by adapting models using labeled source data and unlabeled target data. Traditional methods often rely on feature alignment or adversarial training, which can struggle with large shifts or limited target samples.
Methodology
The DTS framework operates in three distinct stages to enhance adaptation:
- Pretraining Classifier: An initial UDA method (e.g., MCC or ELS) is used to train a classifier $f$ on source and target data. This classifier generates "pseudo-labels" for the unlabeled target images.
- Training CDPM: A Conditional Diffusion Probabilistic Model (CDPM) is trained on the target domain. Unlike GANs, diffusion models are less prone to mode collapse and better capture the full diversity of the target distribution. The model learns to generate images conditioned on the pseudo-labels provided in step 1.
- Sampling and Final Training: The trained CDPM generates a large set of synthetic target samples. These are combined with the original source data to form an "Augmented Source Domain" $\mathcal{D}_{\hat{s}}$. A final classifier $g$ is then trained on this augmented set, which is statistically closer to the target distribution.
To ensure computational efficiency, DTS employs DPM-Solver++, reducing the required sampling steps from hundreds to approximately ten.
Experimental Setup
The effectiveness of DTS was evaluated on three standard UDA benchmarks:
- Office-31: 31 categories across Amazon, DSLR, and Webcam domains.
- Office-Home: 65 categories across Art, Clipart, Product, and Real-World domains.
- VisDA-2017: A large-scale synthetic-to-real challenge with over 200,000 images.
Key Insights
- Diffusion vs. GANs: Diffusion models provide superior coverage of the target distribution's modes compared to GANs, which often suffer from mode collapse.
- Augmented Source Strategy: Mixing synthetic data with original source data stabilizes training. High-quality source labels help mitigate the impact of potential noise in the synthetic target pseudo-labels.
- Theoretical Foundation: The approach is grounded in $H\Delta H$-distance theory, which suggests that adding these generated samples reduces the upper bound of the expected risk in the target domain, making the adaptation task mathematically more tractable.
Key Results
DTS consistently improves the performance of state-of-the-art UDA algorithms. On the VisDA-2017 benchmark, integrating DTS with the MCC algorithm resulted in a significant accuracy boost from 83.3% to 86.4%. Similarly, for Office-Home, DTS improved the ELS method's average accuracy from 71.9% to 73.6%.
Sensitivity analysis further indicates that even a modest number of generated samples (50-200 per category) can lead to substantial performance improvements, particularly on smaller datasets.
Conclusion
The Diffusion-based Target Sampler (DTS) offers a powerful, modular approach to UDA. By generating diverse, high-fidelity target-like samples, it bridges the domain gap more effectively than traditional alignment methods. While diffusion models are computationally more intensive than simpler alternatives, the use of fast solvers like DPM-Solver++ makes the framework practical. Future research may explore the application of DTS to broader transfer learning scenarios beyond UDA.
Summary updated