Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Perturb and Recover: Fine-tuning for Effective Backdoor Removal from CLIP

About

Vision-Language models like CLIP have been shown to be highly effective at linking visual perception and natural language understanding, enabling sophisticated image-text capabilities, including strong retrieval and zero-shot classification performance. Their widespread use, as well as the fact that CLIP models are trained on image-text pairs from the web, make them both a worthwhile and relatively easy target for backdoor attacks. As training foundational models, such as CLIP, from scratch is very expensive, this paper focuses on cleaning potentially poisoned models via fine-tuning. We first show that existing cleaning techniques are not effective against simple structured triggers used in Blended or BadNet backdoor attacks, exposing a critical vulnerability for potential real-world deployment of these models. Then, we introduce PAR, Perturb and Recover, a surprisingly simple yet effective mechanism to remove backdoors from CLIP models. Through extensive experiments across different encoders and types of backdoor attacks, we show that PAR achieves high backdoor removal rate while preserving good standard performance. Finally, we illustrate that our approach is effective even only with synthetic text-image pairs, i.e. without access to real training data. The code and models are available on \href{https://github.com/nmndeep/PerturbAndRecover}{GitHub}.

Naman Deep Singh, Francesco Croce, Matthias Hein• 2024

Related benchmarks

TaskDatasetResultRank
ClassificationImageNet standard (test)
Clean Accuracy54.4
31
Text RetrievalCOCO 5k points (val)
Clean Accuracy71.3
31
ClassificationImageNet
Clean Accuracy56.1
21
Text RetrievalCOCO
Clean Accuracy70.6
21
ClassificationImageNet BadNet-Stripes
Clean Accuracy65.8
3
ClassificationImageNet Blended-Text
Clean Accuracy65.2
3
ClassificationCOCO BadNet-Stripes
Clean Accuracy76.7
3
ClassificationCOCO Blended-Text
Clean Accuracy76
3
Showing 8 of 8 rows

Other info

Follow for update