Lune

S&P2022顶会

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

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 95 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures 引用了 Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • VLATTACK: Multimodal Adversarial Attacks on Vision-Language Tasks via Pre-trained Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • BppAttack: Stealthy and Efficient Trojan Attacks against Deep Neural Networks via Image Quantization and Contrastive Adversarial Learning 引用了 Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning 引用了 A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision 引用了 A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision 引用了 Language Models are Few-Shot Learners
  • Learning Transferable Visual Models From Natural Language Supervision 引用了 Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attacks 引用了 Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attacks 引用了 A Simple Framework for Contrastive Learning of Visual Representations
  • Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attacks 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Backdoor Defense via Decoupling the Training Process 引用了 Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Backdoor Defense via Decoupling the Training Process 引用了 A Simple Framework for Contrastive Learning of Visual Representations
  • Backdoor Defense via Decoupling the Training Process 引用了 Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper95

  1. Backdoor Defense via Decoupling the Training ProcessKunzhe Huang, Yiming Li, Baoyuan Wu, Zhan Qin 等ICLR 2022 · 253 次引用
  2. VLATTACK: Multimodal Adversarial Attacks on Vision-Language Tasks via Pre-trained ModelsZiyi Yin, Muchao Ye, Tianrong Zhang, Tianyu Du 等NeurIPS 2023 · 109 次引用
  3. Spinning Language Models: Risks of Propaganda-As-A-Service and CountermeasuresEugene Bagdasaryan, Vitaly ShmatikovS&P 2022 · 94 次引用
  4. BppAttack: Stealthy and Efficient Trojan Attacks against Deep Neural Networks via Image Quantization and Contrastive Adversarial LearningZhenting Wang, Juan Zhai, Shiqing MaCVPR 2022 · 92 次引用
  5. Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor AttacksJinyuan Jia, Yupei Liu, Xiaoyu Cao, Neil Zhenqiang GongAAAI 2022 · 90 次引用

它引用的 Paper24

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
  3. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 次引用
  4. Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec 等NeurIPS 2020 · 9,171 次引用
  5. Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural NetworksBolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li 等S&P 2019 · 1,801 次引用

相关 Paper

  1. Detecting Backdoors in Pre-trained EncodersShiwei Feng, Guanhong Tao, Siyuan Cheng, Guangyu Shen 等CVPR 2023
  2. Data Poisoning Based Backdoor Attacks to Contrastive LearningJinghuai Zhang, Hongbin Liu, Jinyuan Jia, Neil Zhenqiang GongCVPR 2024 · 12 次引用
  3. DeDe: Detecting Backdoor Samples for SSL Encoders via DecodersSizai Hou, Songze Li, Duanyi YaoCVPR 2025
  4. PoisonedEncoder: Poisoning the Unlabeled Pre-training Data in Contrastive LearningHongbin Liu, Jinyuan Jia, Neil Zhenqiang GongUSENIX Security 2022
  5. StolenEncoder: Stealing Pre-trained Encoders in Self-supervised LearningYupei Liu, Jinyuan Jia, Hongbin Liu, Neil Zhenqiang GongCCS 2022 · 23 次引用
黄昏的海面,两侧是细线勾勒的悬崖