Abstract
This paper investigates robust domain adaptation in scenarios where target labels and source data are unavailable. We focus on achieving robustness against adversarial perturbations. Our research identifies two major findings: (i) robustness properties learned in source models can be effectively transferred to target domains, and (ii) robust domain adaptation significantly benefits from the use of non-robust pseudo-labels and pair-wise contrastive loss. The proposed method, which utilizes a dual-model strategy, demonstrates a consistent performance improvement of over 10% in accuracy across four benchmark datasets compared to existing baselines on both clean and adversarial samples.
Introduction
Deep learning models are notoriously brittle, often failing when moved from a "source" domain (e.g., synthetic images) to a "target" domain (e.g., real-world photos)—a challenge known as domain shift. Furthermore, they are vulnerable to adversarial attacks, where imperceptible perturbations can lead to misclassification. While Domain Adaptation (DA) typically addresses shift, it usually requires access to the original source dataset. In practice, source data is often restricted due to privacy concerns, storage costs, or proprietary limitations. This paper addresses this "triple threat" by proposing a method for source-free, unsupervised, and adversarially robust domain adaptation.
Methodology
The core of our approach is a dual-model protocol that manages the accuracy-robustness trade-off. We maintain a Standard Model (optimized for clean accuracy) and a Robust Model (trained via adversarial training).
As illustrated in the framework above, the adaptation process involves:
- Standard Target Adaptation: The standard model is adapted to the target domain using entropy minimization and diversity loss to ensure confident and balanced predictions.
- Robust Target Adaptation: The robust model is adapted using adversarial training (via Projected Gradient Descent) and supervised by "non-robust" pseudo-labels generated by the standard model. Because standard models are generally more accurate on clean data, they provide higher-quality supervision for the robust "student" model.
- Contrastive Learning: A pair-wise contrastive loss ($L_{con}$) is employed to pull features of the same predicted class together and push different classes apart, enhancing discriminative feature learning without ground-truth labels.
Experimental Setup
We evaluated our method on four standard domain adaptation benchmarks:
- Office-31: 31 classes across Amazon, DSLR, and Webcam domains.
- Office-home: 65 classes across Art, Clipart, Product, and Real-world domains.
- PACS: Focuses on style shift (Photo, Art, Cartoon, Sketch).
- VisDA-C: A large-scale challenge shifting from synthetic 3D renders to real images.
Results and Key Insights
Our method significantly outperformed adapted versions of state-of-the-art baselines like ADDA and SHOT. Across all four datasets, we observed a consistent improvement of over 10% in accuracy against adversarial attacks.
Key insights from our results include:
- Transferability of Robustness: The robustness property learned in the source domain can be preserved and enhanced in the target domain, even without re-accessing source data.
- Teacher-Student Synergy: Using the more accurate (but fragile) standard model as a teacher for the robust model effectively bypasses the traditional accuracy-robustness trade-off.
- Feature Organization: Contrastive loss was a major driver of performance, helping the model organize its feature space effectively in the absence of true labels.
Conclusion and Future Work
We have demonstrated that robust, source-free domain adaptation is achievable by leveraging dual-model supervision. While the current approach requires additional computational overhead to maintain two models, it provides a significant leap in adversarial reliability. Future work will explore single-model architectures that can produce both robust and non-robust predictions to reduce memory requirements and extend these findings to tasks like object detection and semantic segmentation.
Summary updated