Abstract
Model adaptation enables the repurposing of pre-trained models for new target domains using unlabeled data, but it often relies on unverified third-party source models. This creates a security vulnerability where malicious providers can embed universal adversarial perturbations (UAP) or backdoor triggers. We present AdaptGuard, a plug-and-play defense framework that purges these threats during the adaptation process. By combining knowledge distillation with a curriculum-based adversarial training strategy, AdaptGuard breaks the "inheritance" of malicious weights and hardens the model against perturbations. Our evaluations on standard benchmarks show that AdaptGuard effectively neutralizes attacks with minimal impact on clean target performance.
Introduction
Model adaptation has become a standard paradigm for deploying AI in data-scarce or privacy-sensitive environments. However, the common practice of initializing target models with source weights assumes a level of trust that is often misplaced. Malicious source models can contain "sticky" universal attacks—such as image-agnostic noise (UAP) or hidden backdoors—that persist even after adaptation to a new domain.
Current adaptation methods like SHOT or NRC fail to address these vulnerabilities, often resulting in catastrophic performance drops when triggers are present. AdaptGuard addresses this by treating the source model as an untrusted "teacher" and rebuilding the target model from scratch through a secure distillation process.
The AdaptGuard Framework
AdaptGuard moves away from direct weight initialization. Instead, it employs a multi-stage defense strategy:
- Knowledge Distillation (KD): A fresh "student" model is initialized (e.g., from ImageNet) and trained using soft labels generated by the source model on target data. This prevents the direct transfer of malicious weight patterns.
- Radius-Adjusting Adversarial Training: To defend against perturbations, the student undergoes adversarial training where the perturbation radius ($\epsilon$) increases linearly from zero. This curriculum approach allows the model to learn domain features before being challenged by noise, ensuring stability.
- Self-Distillation: To mitigate the impact of errors in the teacher's predictions, the student incorporates its own past predictions (via an Exponential Moving Average) to filter out noise.
Experimental Results
We evaluated AdaptGuard on the Office, OfficeHome, and DomainNet126 benchmarks. The framework consistently outperformed both standard adaptation methods and existing defense strategies.
Security and Performance
AdaptGuard effectively neutralizes backdoor triggers. For instance, on OfficeHome under the SIG attack, standard adaptation methods achieved only ~32% accuracy on attacked images, while AdaptGuard improved this to over 62%. Crucially, this security comes with a negligible "clean" accuracy trade-off, typically within 1-3% of undefended baselines.
Training Dynamics
A key strength of AdaptGuard is its rapid "de-triggering" capability. As shown in the training curves, the Attack Success Rate (ASR) drops sharply in the early stages of training, while the model's task accuracy remains stable or improves.
Conclusion
AdaptGuard provides a robust defense for model adaptation by breaking the chain of trust between source providers and end-users. By leveraging distillation and curriculum-based adversarial training, it secures models against universal attacks without sacrificing performance. Future work will explore extending this framework to more complex tasks like object detection and semantic segmentation.
Summary updated