Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

CorruptEncoder: Data Poisoning based Backdoor Attacks to Contrastive Learning

About

Contrastive learning (CL) pre-trains general-purpose encoders using an unlabeled pre-training dataset, which consists of images or image-text pairs. CL is vulnerable to data poisoning based backdoor attacks (DPBAs), in which an attacker injects poisoned inputs into the pre-training dataset so the encoder is backdoored. However, existing DPBAs achieve limited effectiveness. In this work, we take the first step to analyze the limitations of existing backdoor attacks and propose new DPBAs called CorruptEncoder to CL. CorruptEncoder introduces a new attack strategy to create poisoned inputs and uses a theory-guided method to maximize attack effectiveness. Our experiments show that CorruptEncoder substantially outperforms existing DPBAs. In particular, CorruptEncoder is the first DPBA that achieves more than 90% attack success rates with only a few (3) reference images and a small poisoning ratio 0.5%. Moreover, we also propose a defense, called localized cropping, to defend against DPBAs. Our results show that our defense can reduce the effectiveness of DPBAs, but it sacrifices the utility of the encoder, highlighting the need for new defenses.

Jinghuai Zhang, Hongbin Liu, Jinyuan Jia, Neil Zhenqiang Gong• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationPets--
204
Image ClassificationFlowers (test)--
87
Image ClassificationPets (test)--
36
Image ClassificationImageNet100-B (test)
ASR8.99e+3
20
Image ClassificationFlowers
Accuracy (BA)69.7
15
Image ClassificationContrastive Learning Pre-training No Attack (test)
Accuracy56.2
7
Image ClassificationContrastive Learning Pre-training CorruptEncoder Attack (test)
BA56.3
7
Image ClassificationContrastive Learning Pre-training CorruptEncoder+ Attack (test)
Backdoor Accuracy56.1
7
Image ClassificationImageNet100-A (test)
ASR9.62e+3
5
ClassificationImageNet 100-A
Balanced Accuracy69.6
4
Showing 10 of 14 rows

Other info

Code

Follow for update