paper-with-me

Papers

BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learning

2021-08-01 · Jinyuan Jia, Yupei Liu, Neil Zhenqiang Gong

Self-supervised learning in computer vision aims to pre-train an image encoder using a large amount of unlabeled images or (image, text) pairs. The pre-trained image encoder can then be used as a feature extractor to build downstream classifiers for many downstream tasks with a small amount of or no labeled training data. In this work, we propose BadEncoder, the first backdoor attack to self-supervised learning. In particular, our BadEncoder injects backdoors into a pre-trained image encoder such that the downstream classifiers built based on the backdoored image encoder for different downstream tasks simultaneously inherit the backdoor behavior. We formulate our BadEncoder as an optimization problem and we propose a gradient descent based method to solve it, which produces a backdoored image encoder from a clean one. Our extensive empirical evaluation results on multiple datasets show that our BadEncoder achieves high attack success rates while preserving the accuracy of the downstream classifiers. We also show the effectiveness of BadEncoder using two publicly available, real-world image encoders, i.e., Google's image encoder pre-trained on ImageNet and OpenAI's Contrastive Language-Image Pre-training (CLIP) image encoder pre-trained on 400 million (image, text) pairs collected from the Internet. Moreover, we consider defenses including Neural Cleanse and MNTD (empirical defenses) as well as PatchGuard (a provable defense). Our results show that these defenses are insufficient to defend against BadEncoder, highlighting the needs for new defenses against our BadEncoder. Our code is publicly available at: https://github.com/jjy1994/BadEncoder.

📄 PDF Abstract BibTeX arXiv:2108.00352

Code (7)

jjy1994/BadEncoder 공식 구현 pytorch
giantseaweed/decree pytorch
jinyuan-jia/badencoder pytorch
jsrdcht/SSL-Backdoor pytorch
liu00222/StolenEncoder pytorch
shuchiwu/eminspector pytorch
shuchiwu/rda pytorch

Tasks

Backdoor AttackSelf-Supervised Learning

Similar Papers 제목 키워드 기반

GhostEncoder: Stealthy Backdoor Attacks with Dynamic Triggers to Pre-trained Encoders in Self-supervised Learning

2023-10-01 · Qiannan Wang, Changchun Yin, Zhe Liu, Liming Fang 외

Within the realm of computer vision, self-supervised learning (SSL) pertains to training pre-trained image encoders utilizing a substantial quantity of unlabeled images. Pre-trained image encoders can serve as feature ex…

Backdoor AttackImage SteganographySelf-Supervised Learning

Detecting Backdoors in Pre-trained Encoders

2023-03-23 · CVPR 2023 1 · Shiwei Feng, Guanhong Tao, Siyuan Cheng, Guangyu Shen 외

Self-supervised learning in computer vision trains on unlabeled data, such as images or (image, text) pairs, to obtain an image encoder that learns high-quality embeddings for input data. Emerging backdoor attacks toward…

Self-Supervised Learning

Mutual Information Guided Backdoor Mitigation for Pre-trained Encoders

2024-06-05 · Tingxu Han, Weisong Sun, Ziqi Ding, Chunrong Fang 외

Self-supervised learning (SSL) is increasingly attractive for pre-training encoders without requiring labeled data. Downstream tasks built on top of those pre-trained encoders can achieve nearly state-of-the-art performa…

Knowledge DistillationSelf-Supervised Learning

Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Models

2026-03-04 · Ziyuan Chen, Yujin Jeong, Tobias Braun, Anna Rohrbach arxiv

As text-to-image diffusion models become increasingly deployed in real-world applications, concerns about backdoor attacks have gained significant attention. Prior work on text-based backdoor attacks has largely focused …

SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learning

2023-03-16 · Mengxin Zheng, Jiaqi Xue, ZiHao Wang, Xun Chen 외

Self-supervised learning (SSL) is a prevalent approach for encoding data representations. Using a pre-trained SSL image encoder and subsequently training a downstream classifier, impressive performance can be achieved on…

Self-Supervised Learning