Abstract
Adapting machine learning models to new domains typically requires substantial target-domain data. In extreme scenarios where only a single unlabeled target sample is available—a task known as One-Shot Unsupervised Domain Adaptation (OS-UDA)—traditional methods often rely on external style-transfer libraries or massive auxiliary datasets. This paper presents TOS-UDA (Target-driven One-Shot Unsupervised Domain Adaptation), a framework that achieves domain generalization using only one unlabeled target image. By employing a learnable augmentation strategy that aligns source data with the target's style, TOS-UDA eliminates the need for external data while outperforming previous state-of-the-art methods on complex benchmarks.
1. Introduction
Unsupervised Domain Adaptation (UDA) seeks to bridge the gap between a labeled source domain and an unlabeled target domain. While standard UDA assumes access to a large distribution of target data, real-world applications often face a "cold-start" problem where data is scarce. One-Shot UDA (OS-UDA) represents the limit of this challenge: adapting a model using only a single unlabeled image from the target environment.
Previous OS-UDA approaches, such as ASM, required pre-training complex style-transfer models on external datasets like WikiArts to simulate domain shifts. TOS-UDA addresses these limitations by proposing an end-to-end system that adapts to the target style directly using only the provided source data and the lone target image, creating a self-contained adaptation process.
2. Proposed Methodology
The TOS-UDA framework consists of three interacting components designed to facilitate style alignment and robust feature learning.
2.1 Augmentation Module (AUM)
Unlike static augmentation techniques (e.g., simple rotations), the AUM utilizes neural networks (MLPs) to learn optimal transformations for the source images. It focuses on two primary categories:
- Color Transformations: Adjusting brightness, hue, and saturation.
- Geometric Transformations: Applying affine matrices to handle stretching, scaling, and rotation.
2.2 Style Alignment Module (SAM)
The SAM acts as a guide for the augmentation process. Utilizing a pre-trained VGG-16 network, it extracts style features via Gram matrices from the single target image. It computes a Style Loss, ensuring that the transformations generated by the AUM successfully map the source images into the target domain's visual style.
2.3 Classifier (CLM)
The classifier is the task-specific model (e.g., for digit recognition or object classification) trained on the augmented source data.
2.4 Adversarial Training Loop
The system employs a two-step adversarial training strategy:
- Classification Learning: The CLM learns to categorize the augmented source images.
- Adversarial Augmentation: The AUM attempts to generate "harder" and more diverse images to challenge the CLM. Simultaneously, the SAM constrains these transformations to ensure the generated images remain visually consistent with the style of the single target sample.
3. Experimental Setup
The researchers evaluated TOS-UDA on two major benchmarks:
- Digits: A combination of MNIST, USPS, and SVHN, representing various handwritten and house-number styles.
- DomainNet: A complex benchmark featuring four distinct domains: Real (photographs), Clipart, Painting, and Sketch. TOS-UDA is the first OS-UDA method to be evaluated on the diverse shifts present in DomainNet.
4. Results and Discussion
4.1 Performance Comparison
TOS-UDA demonstrated significant improvements over the previous state-of-the-art (ASM). On the Digits benchmark (specifically MNIST to USPS), TOS-UDA achieved 79.45% accuracy, compared to ASM's 68.00%.
On the more challenging DomainNet dataset, where ASM often struggled to exceed 30% average accuracy, TOS-UDA maintained a robust performance, averaging 54.90% across seven domain-shift tasks. This suggests that treating style as a proxy for distribution is an effective strategy when statistical distributions cannot be formed from a single sample.
4.2 Efficiency and Robustness
By forcing the AUM to create adversarial examples, the model learns to prioritize content over domain-specific noise. Furthermore, the researchers found that a "Few-Shot" version of the model (using 32 target samples) only improved performance by approximately 1.5%. This indicates that TOS-UDA is remarkably efficient at extracting the necessary stylistic information from just one image.
5. Conclusion and Future Work
TOS-UDA provides a robust, self-contained framework for OS-UDA without the need for external style datasets. While highly effective, the authors noted that extremely nuanced domain shifts (e.g., Painting to Clipart) remain challenging for basic color and geometric augmentations. Future research will focus on expanding the AUM to handle more specialized transformations, potentially simulating complex textures and sophisticated artistic styles to further bridge the gap in diverse domains.
Summary updated