AdaptGuard: Defending Against Universal Attacks for Model Adaptation

Lijun Sheng, Jian Liang, Ran He, Zilei Wang, Tieniu Tan
3/19/2023
cs.CRcs.CVcs.LG

Official code: TomSheng21/AdaptGuard (11 stars, MIT, last commit 2023-12-23).

Abstract

Model adaptation aims at solving the domain transfer problem under the constraint of only accessing the pretrained source models. With the increasing considerations of data privacy and transmission efficiency, this paradigm has been gaining recent popularity. This paper studies the vulnerability to universal attacks transferred from the source domain during model adaptation algorithms due to the existence of malicious providers. We explore both universal adversarial perturbations and backdoor attacks as loopholes on the source side and discover that they still survive in the target models after adaptation. To address this issue, we propose a model preprocessing framework, named AdaptGuard, to improve the security of model adaptation algorithms. AdaptGuard avoids direct use of the risky source parameters through knowledge distillation and utilizes the pseudo adversarial samples under adjusted radius to enhance the robustness. AdaptGuard is a plug-and-play module that requires neither robust pretrained models nor any changes for the following model adaptation algorithms. Extensive results on three commonly used datasets and two popular adaptation methods validate that AdaptGuard can effectively defend against universal attacks and maintain clean accuracy in the target domain simultaneously. We hope this research will shed light on the safety and robustness of transfer learning. Code is available at https://github.com/TomSheng21/AdaptGuard.

View on arXivView PDF

Code Implementations(1)

MIT

ICCV 2023 - AdaptGuard: Defending Against Universal Attacks for Model Adaptation

110Shell, PythonAug 8, 20232 years agoMIT

Similar Papers

Cite this paper

@article{sheng2023adaptguard,
  title  = {AdaptGuard: Defending Against Universal Attacks for Model Adaptation},
  author = {Lijun Sheng and Jian Liang and Ran He and Zilei Wang and Tieniu Tan},
  year   = {2023},
  eprint = {2303.10594},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.10594v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.10594.svg)](https://codeofpaper.com/paper/2303.10594)

Discussion