Better Safe than Sorry: Pre-training CLIP against Targeted Data Poisoning and Backdoor Attacks
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Contrastive Language-Image Pre-training (CLIP) on large image-caption datasets has achieved remarkable success in zero-shot classification and enabled transferability to new domains. However, CLIP is extremely more vulnerable to targeted data poisoning and backdoor attacks, compared to supervised learning. Perhaps surprisingly, poisoning 0.0001% of CLIP pre-training data is enough to make targeted data poisoning attacks successful. This is four orders of magnitude smaller than what is required to poison supervised models. Despite this vulnerability, existing methods are very limited in defending CLIP models during pre-training. In this work, we propose a strong defense, SAFECLIP, to safely pre-train CLIP against targeted data poisoning and backdoor attacks. SAFECLIP warms up the model by applying unimodal contrastive learning (CL) on image and text modalities separately. Then, it divides the data into safe and risky sets, by applying a Gaussian Mixture Model to the cosine similarity of image-caption pair representations. SAFECLIP pre-trains the model by applying the CLIP loss to the safe set and applying unimodal CL to image and text modalities of the risky set separately. By gradually increasing the size of the safe set during pre-training, SAFECLIP effectively breaks targeted data poisoning and backdoor attacks without harming the CLIP performance. Our extensive experiments on CC3M, Visual Genome, and MSCOCO demonstrate that SAFECLIP significantly reduces the success rate of targeted data poisoning attacks from 93.75% to 0% and that of various backdoor attacks from up to 100% to 0%, without harming CLIP's performance.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 27 of its 37 references that are in the map. First posted on arXiv 5 Oct 2023.
Builds on
27 of 37 references.
Closest ancestors · 2
Same direction, newest first
- 2023CleanCLIP: Mitigating Data Poisoning Attacks in Multimodal Contrastive Learning6 Mar
- 2021What Doesn't Kill You Makes You Robust(er): How to Adversarially Train against Data Poisoning26 Feb
Other references · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
- 2016Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotationscited by 2,646
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
13 more
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
- 2021SLIP: Self-supervision meets Language-Image Pre-trainingcited by 434
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2021Supervision Exists Everywhere: A Data Efficient Contrastive Language-Image Pre-training Paradigmcited by 405
- 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
- 2019Label-Consistent Backdoor Attackscited by 285
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 276
- 2021Poisoning and Backdooring Contrastive Learningcited by 149
- 2020Adversarial Self-Supervised Contrastive Learningcited by 138
- 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
- 2021Poisoning the Unlabeled Dataset of Semi-Supervised Learningcited by 44
- 2022Data Poisoning Attacks Against Multimodal Encoderscited by 41
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 8; 2026: 5.
19 papers.
Sort:
By area:
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Modelscited by 35
- 2024CleanerCLIP: Fine-grained Counterfactual Semantic Augmentation for Backdoor Defense in Contrastive Learningcited by 13
- 2024Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuningcited by 12
- 2025CLIP-Guided Backdoor Defense through Entropy-Based Poisoned Dataset Separationcited by 9
- 2024Test-Time Multimodal Backdoor Detection by Contrastive Promptingcited by 5
- 2024Perturb and Recover: Fine-tuning for Effective Backdoor Removal from CLIPcited by 4
- 2025TokenSwap: Backdoor Attack on the Compositional Understanding of Large Vision-Language Modelscited by 4
- 2025Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and Alignmentcited by 3
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-trainingcited by 3
- 2026From Internal Diagnosis to External Auditing: A VLM-Driven Paradigm for Data-Free Online Backdoor Defensecited by 3
- 2025Seal Your Backdoor with Variational Defensecited by 2
- 2026BadCLIP++: Stealthy and Persistent Backdoors in Multimodal Contrastive Learningcited by 2
7 more
- 2025InverTune: Removing Backdoors from Multimodal Contrastive Learning Models via Trigger Inversion and Activation Tuningcited by 1
- 2023Trustworthy Large Models in Vision: A Surveycited by 0
- 2025Neural Antidote: Class-Wise Prompt Tuning for Purifying Backdoors in CLIPcited by 0
- 2025Assimilation Matters: Model-level Backdoor Detection in Vision-Language Pretrained Modelscited by 0
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attackscited by 0
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learningcited by 0
- 2026TraceGuard: Adaptive Multimodal Poison Filtering through Cross-Feature Rank Agreementcited by 0
- 2026TraceGuard: Adaptive Multimodal Poison Filtering through Cross-Feature Rank Agreement24 Sep 2026
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learning4 Aug 2026
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attacks1 Jun 2026
- 2026BadCLIP++: Stealthy and Persistent Backdoors in Multimodal Contrastive Learning19 Feb 2026
- 2026From Internal Diagnosis to External Auditing: A VLM-Driven Paradigm for Data-Free Online Backdoor Defense27 Jan 2026
- 2025Assimilation Matters: Model-level Backdoor Detection in Vision-Language Pretrained Models29 Nov 2025
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-training1 Nov 2025
- 2025TokenSwap: Backdoor Attack on the Compositional Understanding of Large Vision-Language Models29 Sep 2025
- 2025Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and Alignment23 Sep 2025
- 2025CLIP-Guided Backdoor Defense through Entropy-Based Poisoned Dataset Separation7 Jul 2025
- 2025InverTune: Removing Backdoors from Multimodal Contrastive Learning Models via Trigger Inversion and Activation Tuning14 Jun 2025
- 2025Seal Your Backdoor with Variational Defense11 Mar 2025
7 more
- 2025Neural Antidote: Class-Wise Prompt Tuning for Purifying Backdoors in CLIP26 Feb 2025
- 2024Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning29 Dec 2024
- 2024Perturb and Recover: Fine-tuning for Effective Backdoor Removal from CLIP1 Dec 2024
- 2024CleanerCLIP: Fine-grained Counterfactual Semantic Augmentation for Backdoor Defense in Contrastive Learning26 Sep 2024
- 2024Test-Time Multimodal Backdoor Detection by Contrastive Prompting24 May 2024
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Models13 Feb 2024
- 2023Trustworthy Large Models in Vision: A Survey16 Nov 2023
- 2024CleanerCLIP: Fine-grained Counterfactual Semantic Augmentation for Backdoor Defense in Contrastive Learningcited by 13
- 2024Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuningcited by 12
- 2025CLIP-Guided Backdoor Defense through Entropy-Based Poisoned Dataset Separationcited by 9
- 2024Test-Time Multimodal Backdoor Detection by Contrastive Promptingcited by 5
- 2025Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and Alignmentcited by 3
- 2026From Internal Diagnosis to External Auditing: A VLM-Driven Paradigm for Data-Free Online Backdoor Defensecited by 3
- 2026BadCLIP++: Stealthy and Persistent Backdoors in Multimodal Contrastive Learningcited by 2
- 2025InverTune: Removing Backdoors from Multimodal Contrastive Learning Models via Trigger Inversion and Activation Tuningcited by 1
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learningcited by 0
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learning4 Aug 2026
- 2026BadCLIP++: Stealthy and Persistent Backdoors in Multimodal Contrastive Learning19 Feb 2026
- 2026From Internal Diagnosis to External Auditing: A VLM-Driven Paradigm for Data-Free Online Backdoor Defense27 Jan 2026
- 2025Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and Alignment23 Sep 2025
- 2025CLIP-Guided Backdoor Defense through Entropy-Based Poisoned Dataset Separation7 Jul 2025
- 2025InverTune: Removing Backdoors from Multimodal Contrastive Learning Models via Trigger Inversion and Activation Tuning14 Jun 2025
- 2024Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning29 Dec 2024
- 2024CleanerCLIP: Fine-grained Counterfactual Semantic Augmentation for Backdoor Defense in Contrastive Learning26 Sep 2024
- 2024Test-Time Multimodal Backdoor Detection by Contrastive Prompting24 May 2024
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Modelscited by 35
- 2024Perturb and Recover: Fine-tuning for Effective Backdoor Removal from CLIPcited by 4
- 2025TokenSwap: Backdoor Attack on the Compositional Understanding of Large Vision-Language Modelscited by 4
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-trainingcited by 3
- 2025Neural Antidote: Class-Wise Prompt Tuning for Purifying Backdoors in CLIPcited by 0
- 2025Assimilation Matters: Model-level Backdoor Detection in Vision-Language Pretrained Modelscited by 0
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attackscited by 0
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attacks1 Jun 2026
- 2025Assimilation Matters: Model-level Backdoor Detection in Vision-Language Pretrained Models29 Nov 2025
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-training1 Nov 2025
- 2025TokenSwap: Backdoor Attack on the Compositional Understanding of Large Vision-Language Models29 Sep 2025
- 2025Neural Antidote: Class-Wise Prompt Tuning for Purifying Backdoors in CLIP26 Feb 2025
- 2024Perturb and Recover: Fine-tuning for Effective Backdoor Removal from CLIP1 Dec 2024
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Models13 Feb 2024
- 2026TraceGuard: Adaptive Multimodal Poison Filtering through Cross-Feature Rank Agreement24 Sep 2026
- 2025Seal Your Backdoor with Variational Defense11 Mar 2025
- 2023Trustworthy Large Models in Vision: A Survey16 Nov 2023