Protecting Model Adaptation from Trojans in the Unlabeled Data
Lijun Sheng, Jian Liang, Ran He, Zilei Wang, Tieniu Tan
TL;DR
This work exposes the vulnerability of model adaptation to backdoor attacks launched via unlabeled target data, showing that carefully designed triggers and poisoning strategies can achieve high attack success without degrading clean performance. It proposes DiffAdapt, a plug-and-play defense that down-weights potentially poisoned unlabeled samples by estimating sensitivity to perturbations on a risk model and aggregating weights by pseudo-labels, enabling secure adaptation without altering underlying algorithms. Empirical results across Office, OfficeHome, and miniDomainNet demonstrate that DiffAdapt substantially reduces attack success rates while preserving target-domain accuracy, outperforming pruning-based baselines. The study highlights the need for security-conscious design in transfer learning with unlabeled data and provides practical guidance for defending source-free adaptation pipelines in real-world deployments.
Abstract
Model adaptation tackles the distribution shift problem with a pre-trained model instead of raw data, which has become a popular paradigm due to its great privacy protection. Existing methods always assume adapting to a clean target domain, overlooking the security risks of unlabeled samples. This paper for the first time explores the potential trojan attacks on model adaptation launched by well-designed poisoning target data. Concretely, we provide two trigger patterns with two poisoning strategies for different prior knowledge owned by attackers. These attacks achieve a high success rate while maintaining the normal performance on clean samples in the test stage. To defend against such backdoor injection, we propose a plug-and-play method named DiffAdapt, which can be seamlessly integrated with existing adaptation algorithms. Experiments across commonly used benchmarks and adaptation methods demonstrate the effectiveness of DiffAdapt. We hope this work will shed light on the safety of transfer learning with unlabeled data.
