Introduction
Unsupervised Domain Adaptation (UDA) is a powerful technique in computer vision that enables models trained on labeled "source" data (e.g., synthetic images) to generalize to unlabeled "target" data (e.g., real-world photos). Despite their effectiveness in bridging domain shifts, UDA models are notoriously vulnerable to adversarial attacks—small, imperceptible perturbations that can lead to catastrophic misclassification.
While Adversarial Training (AT) is the standard defense in supervised learning, its application to UDA is hindered by the lack of ground-truth labels in the target domain. Traditional AT requires labels to generate and supervise adversarial examples. To address this, researchers from Johns Hopkins University introduced ARTUDA (Adversarially Robust Training for UDA), a framework that leverages self-supervision to robustify models without requiring target-domain labels.
The ARTUDA Framework
ARTUDA rethinks how adversarial training can be integrated into the UDA pipeline. The framework is built upon three core technical pillars:
1. Self-Supervised Adversarial Training
In the absence of target labels, ARTUDA uses the model’s own predictions on clean target images as "soft labels." It generates adversarial versions of these images and trains the model to maintain consistent outputs between the clean and perturbed versions. This ensures that the model's decision boundaries remain stable even under attack.
2. Optimized Loss Functions
The choice of loss function for self-supervision is critical. The authors' empirical study revealed that Kullback-Leibler (KL) divergence significantly outperforms standard L1 or L2 distance metrics. KL divergence better captures the underlying probability distribution of the model's logits, leading to more effective regularization and higher adversarial robustness.
3. Strategic Batch Normalization
The researchers discovered that the composition of training mini-batches plays a vital role in performance. By mixing source, target, and adversarial target data within the same batch, the model can "leak" supervised knowledge from the source domain to the target domain through shared Batch Normalization (BN) statistics. This synergy improves both clean accuracy and robustness.
Experimental Evaluation
The effectiveness of ARTUDA was validated across three major UDA benchmarks: VisDA-2017 (synthetic-to-real shift), Office-31, and Office-Home.
Key Results
ARTUDA consistently outperformed existing baselines, including standard AT (PGD-AT) and specialized UDA defense methods:
- VisDA-2017: ARTUDA achieved 44.3% accuracy under a strong PGD-20 attack, whereas a naturally trained model collapsed to 0.9%.
- Office-31: The framework maintained a high clean accuracy of 96.5% while providing 92.5% accuracy under adversarial attacks—a nearly 25% improvement over standard AT.
- Versatility: ARTUDA is algorithm-agnostic and was successfully integrated with various UDA backbones like DANN, JAN, and CDAN, yielding consistent performance gains.
Insights and Discussion
A significant finding of this work is that, unlike in supervised learning where a "robustness-accuracy trade-off" is common, including clean target data in UDA actually improves robustness. The clean data provides a high-quality self-supervision signal that stabilizes the feature space. Visualization through t-SNE confirms that ARTUDA aligns the features of clean and adversarial images, preventing the chaotic scattering seen in undefended models.
Conclusion and Future Work
ARTUDA provides a robust foundation for defending unlabeled target domains. While it introduces additional computational costs due to adversarial example generation, its "plug-and-play" nature makes it a practical choice for security-critical UDA applications. Future research may extend these self-supervised principles to more complex tasks such as object detection and semantic segmentation, as well as exploring defenses against a broader range of non-gradient-based attacks.
Citation: Shao-Yuan Lo and Vishal M. Patel. "Exploring Adversarially Robust Training for Unsupervised Domain Adaptation." ACCV, 2022.
Summary updated