Abstract
Source-free domain adaptation (SFDA) is a popular unsupervised domain adaptation method where a pre-trained model from a source domain is adapted to a target domain without accessing any source data. Despite rich results in this area, existing literature overlooks the security challenges of the unsupervised SFDA setting in the presence of a malicious source domain owner. This work investigates the effect of a source adversary which may inject a hidden malicious behavior (Backdoor/Trojan) during source training and potentially transfer it to the target domain even after benign training by the victim (target domain owner). Our investigation reveals that because of the unique challenges in SFDA (e.g., no source data, no target labels), defending against backdoor attacks using existing methods becomes practically ineffective. To address this, we propose a novel target domain protection scheme called Secure Source-Free Domain Adaptation (SSDA). SSDA adopts a single-shot model compression of a pre-trained source model and a novel knowledge transfer scheme with a spectral-norm-based loss penalty for target training. Our extensive evaluation on multiple datasets and domain tasks against recent backdoor attacks reveals that SSDA can successfully defend against strong backdoor attacks with little to no degradation in test accuracy compared to vulnerable baseline SFDA methods.
Introduction
In modern deep learning workflows, Source-Free Domain Adaptation (SFDA) has emerged as a critical technique for adapting high-quality models (e.g., medical imaging models) to new domains while preserving the privacy of the original source data. However, this "blind" adaptation process creates a significant security vulnerability. Because the target owner lacks access to the source training data or labels, they cannot verify the integrity of the provided model. A malicious source owner can inject a "backdoor" or Trojan—a hidden trigger that causes the model to misclassify specific inputs while behaving normally on benign data.
Standard SFDA methods inadvertently exacerbate this problem. By attempting to preserve the source model's feature representations through self-training, they effectively "protect" and reinforce the malicious channels. Traditional defenses fail in this context because they typically require access to the source data or labeled target data, neither of which are available in the SFDA setting.
Methodology
To secure the adaptation process, we propose SSDA, a framework designed to neutralize malicious channels without sacrificing performance. The methodology consists of two primary components:
- Single-Shot Static Defensive Compression (SSDC): Before adaptation, we analyze the source model's channels using the spectral norm as a security metric. Malicious channels responsive to adversarial triggers typically exhibit significantly higher spectral norms than benign ones. SSDC identifies and prunes these sensitive channels by setting their weights to zero.
- Knowledge Transfer with Dynamic Channel Suppression: Pruning can degrade accuracy on clean data. To recover this performance, SSDA employs a dual-model training scheme. An uncompressed Auxiliary Model acts as a teacher, generating high-quality pseudo-labels for the target data. A pruned Primary Model then learns from these labels while a novel spectral-norm-based loss penalty ($\mathcal{L}_{snorm}$) prevents malicious channels from being reactivated during training.
To ensure computational efficiency, we utilize a mathematically derived upper bound for the spectral norm based on the trace of the weight matrix, avoiding the high cost of Singular Value Decomposition (SVD) during the training loop.
Experimental Results
We evaluated SSDA on standard benchmarks including Office-Home, Office, and VisDA-C against three prominent backdoor attacks: BadNets (patch-based), Blended (transparency-based), and WaNet (warping-based).
Our results demonstrate that SSDA effectively neutralizes these threats. On the Office-Home dataset, the Attack Success Rate (ASR) for standard SFDA baselines was nearly 99%. Under the SSDA framework, the ASR dropped to between 1.5% and 3%. Crucially, this security gain does not come at the cost of utility; SSDA maintained a test accuracy of approximately 74%, matching the performance of vulnerable baseline methods.
When compared to other data-free defenses like CLP, SSDA showed superior performance, achieving significantly higher accuracy (74% vs 56%) while providing more robust security. This confirms that spectral-norm analysis is a powerful, data-free signal for identifying and suppressing Trojan behavior in adapted models.
Conclusion
SSDA represents the first comprehensive defense against backdoor attacks in the source-free domain adaptation setting. By combining static model compression with a dynamic, spectral-norm-penalized knowledge transfer scheme, we provide a path for secure model adaptation in privacy-sensitive environments. Future work will explore extending this framework to more complex tasks like object detection and investigating adaptive adversaries that may attempt to mask their spectral signatures.
Summary updated