Learnable Data Augmentation for One-Shot Unsupervised Domain Adaptation

Julio Ivan Davila Carrazco, Pietro Morerio, Alessio Del Bue, Vittorio Murino · DOI

Abstract

Deep learning models often struggle with domain shift, where the distribution of data in a target environment differs from the source training environment. While Unsupervised Domain Adaptation (UDA) typically relies on large sets of unlabeled target data, One-Shot Unsupervised Domain Adaptation (OS-UDA) presents a more extreme constraint: adapting a model using only a single unlabeled target image. This paper introduces LearnAug-UDA, a framework that utilizes a learnable encoder-decoder architecture and a novel average-pooled perceptual loss to bridge the domain gap. By transforming source data to match the global style of the target domain, LearnAug-UDA achieves state-of-the-art results on the DomainNet and VisDA benchmarks.

Introduction

Domain adaptation is critical for deploying robust machine learning systems in real-world scenarios where data distributions are non-stationary. Standard UDA methods assume access to a representative sample of the target distribution. However, in many practical applications, data collection is restricted, leading to the challenge of One-Shot Unsupervised Domain Adaptation (OS-UDA). In this setting, the model must generalize to a new domain based on the stylistic information contained within a single unlabeled image.

The primary risk in OS-UDA is overfitting to the specific content of the single target image rather than learning the broader domain style. LearnAug-UDA addresses this by disentangling style from content and employing a specialized loss function that emphasizes global distribution over local texture.

Methodology

The LearnAug-UDA framework is composed of three primary modules designed to work in an alternating training cycle.

1. Augmentation Module (AUM)

The AUM is an encoder-decoder network responsible for "re-painting" source images to reflect the target domain's appearance. The authors evaluated two architectural variants:

  • Shared Encoder: A single encoder processes both source and target images, mixing features at the bottleneck.
  • Disentangled Encoders: Separate encoders are used for "style" and "content." This approach proved superior, as it more effectively isolates the object's identity (content) from the domain-specific appearance (style). A reconstruction loss is also employed to ensure the model maintains the ability to rebuild the original images, stabilizing the training process.

2. Style Alignment Module (SAM)

To ensure the augmented images accurately reflect the target domain, the SAM utilizes a frozen, pre-trained VGG-16 network to calculate perceptual loss. A key innovation here is the introduction of Average Pooling (AvgP) within the loss function. Traditional style transfer often forces local textures from the target onto the source, which can lead to "ghosting" artifacts. By applying spatial average pooling, the model instead enforces a global style match, focusing on the overall distribution of colors and textures, which is more robust when learning from a single sample.

3. Classifier Module (CM)

The CM is a standard ResNet-101 architecture trained to classify objects using the stylized images generated by the AUM. The system follows an alternating training strategy: the classifier is updated based on current augmentations, and subsequently, the augmenter is refined to produce images that better align with the target domain's characteristics.

Experimental Results

The framework was evaluated on two major domain adaptation benchmarks: DomainNet (comprising Real, Painting, Clipart, and Sketch domains) and VisDA (Synthetic-to-Real adaptation).

Performance on DomainNet

LearnAug-UDA achieved an average accuracy of 56.35% across seven adaptation tasks in the one-shot setting. This outperforms the "Source Only" baseline (54.04%) and the previous state-of-the-art method, TOS-UDA (54.90%). When the target set was increased to three images (few-shot), the accuracy further improved to 57.80%, demonstrating the model's ability to scale with additional data.

Performance on VisDA

On the challenging VisDA benchmark, which requires adapting from 3D synthetic renders to real-world photography, LearnAug-UDA reached 48.64% accuracy. This represents a significant improvement over the previous best one-shot method, ASM (45.46%), and highlights the framework's effectiveness in bridging substantial domain gaps.

Discussion and Insights

The success of LearnAug-UDA highlights several key principles for low-data domain adaptation:

  • Global Style Robustness: By prioritizing global distributions over local textures through average pooling, the model avoids overfitting to the specific content of the single target image.
  • Feature Disentanglement: Separating style and content encoders allows the model to maintain the integrity of the source object while successfully applying target domain characteristics.
  • Efficiency of Style Information: The results suggest that a single image often contains sufficient statistical information to characterize a domain's style, provided the augmentation module is sufficiently flexible.

Conclusion

LearnAug-UDA provides a robust solution for the extreme constraints of one-shot unsupervised domain adaptation. By combining disentangled representation learning with a global style alignment strategy, the method sets new performance standards on DomainNet and VisDA. Future research may explore the application of these techniques to Domain Generalization, where the model must adapt to unseen domains without any target data during training.

Summary updated

BibTeX
@inproceedings{carrazco2023learnable,
  author = {Julio Ivan Davila Carrazco and Pietro Morerio and Alessio Del Bue and Vittorio Murino},
  title = {{Learnable Data Augmentation for One-Shot Unsupervised Domain Adaptation}},
  booktitle = {BMVC},
  year = {2023},
  url = {https://openreview.net/forum?id=PPRYBBKMlW},
}
Figure