Detecting Backdoor Samples in Contrastive Language Image Pretraining
Hanxun Huang, Sarah Monazam Erfani, Yige Li, Xingjun Ma, James Bailey
摘要
Contrastive language-image pretraining (CLIP) has been found to be vulnerable to poisoning backdoor attacks where the adversary can achieve an almost perfect attack success rate on CLIP models by poisoning only 0.01% of the training dataset. This raises security concerns on the current practice of pretraining large-scale models on unscrutinized web data using CLIP. In this work, we analyze the representations of backdoor-poisoned samples learned by CLIP models and find that they exhibit unique characteristics in their local subspace, i.e., their local neighborhoods are far more sparse than that of clean samples. Based on this finding, we conduct a systematic study on detecting CLIP backdoor attacks and show that these attacks can be easily and efficiently detected by traditional density ratio-based local outlier detectors, whereas existing backdoor sample detection methods fail. Our experiments also reveal that an unintentional backdoor already exists in the original CC3M dataset and has been trained into a popular open-source model released by OpenCLIP. Based on our detector, one can clean up a million-scale web dataset (e.g., CC3M) efficiently within 15 minutes using 4 Nvidia A100 GPUs. The code is publicly available in our GitHub repository.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Emerging Properties in Self-Supervised Vision Transformers 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Emerging Properties in Self-Supervised Vision Transformers 引用了 Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- A Closer Look at Backdoor Attacks on CLIP 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- A Closer Look at Backdoor Attacks on CLIP 引用了 Learning Transferable Visual Models From Natural Language Supervision
- X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP 引用了 Towards Million-Scale Adversarial Robustness Evaluation With Stronger Individual Attacks
- X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP 引用了 Visual Instruction Tuning
- X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Towards Million-Scale Adversarial Robustness Evaluation With Stronger Individual Attacks 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Visual Instruction Tuning 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision 引用了 Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning 引用了 A Closer Look at Backdoor Attacks on CLIP
- Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning 引用了 Visual Instruction Tuning
- Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning 引用了 Learning Transferable Visual Models From Natural Language Supervision
引用它的顶会 Paper7
- Defending Multimodal Backdoored Models by Repulsive Visual Prompt TuningZhifang Zhang, Shuo He, Haobo Wang, Bingquan Shen 等NeurIPS 2025 · 18 次引用
- Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and AlignmentTong Zhang, Kuofeng Gao, Jiawang Bai, Leo Yu Zhang 等EMNLP 2025 · 1 次引用
- A Closer Look at Backdoor Attacks on CLIPShuo He, Zhifang Zhang, Feng Liu, Roy Ka-Wei Lee 等ICML 2025
- X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIPHanxun Huang, Sarah Monazam Erfani, Yige Li, Xingjun Ma 等ICML 2025
- Towards Million-Scale Adversarial Robustness Evaluation With Stronger Individual AttacksYong Xie, Weijie Zheng, Hanxun Huang, Guangnan Ye 等CVPR 2025
它引用的 Paper50
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 次引用
- Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec 等NeurIPS 2020 · 9,171 次引用
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou 等ICCV 2021 · 8,921 次引用
相关 Paper
- Better Safe than Sorry: Pre-training CLIP against Targeted Data Poisoning and Backdoor AttacksWenhan Yang, Jingdong Gao, Baharan MirzasoleimanICML 2024 · 21 次引用
- BadCLIP: Trigger-Aware Prompt Learning for Backdoor Attacks on CLIPJiawang Bai, Kuofeng Gao, Shaobo Min, Shu-Tao Xia 等CVPR 2024
- Poisoning and Backdooring Contrastive LearningNicholas Carlini, Andreas TerzisICLR 2022 · 213 次引用
- Robust Contrastive Language-Image Pretraining against Data Poisoning and Backdoor AttacksWenhan Yang, Jingdong Gao, Baharan MirzasoleimanNeurIPS 2023 · 51 次引用
- CleanCLIP: Mitigating Data Poisoning Attacks in Multimodal Contrastive LearningHritik Bansal, Fan Yin, Nishad Singhi, Aditya Grover 等ICCV 2023 · 78 次引用
