PoisonedEncoder: Poisoning the Unlabeled Pre-training Data in Contrastive Learning
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Contrastive learning pre-trains an image encoder using a large amount of unlabeled data such that the image encoder can be used as a general-purpose feature extractor for various downstream tasks. In this work, we propose PoisonedEncoder, a data poisoning attack to contrastive learning. In particular, an attacker injects carefully crafted poisoning inputs into the unlabeled pre-training data, such that the downstream classifiers built based on the poisoned encoder for multiple target downstream tasks simultaneously classify attacker-chosen, arbitrary clean inputs as attacker-chosen, arbitrary classes. We formulate our data poisoning attack as a bilevel optimization problem, whose solution is the set of poisoning inputs; and we propose a contrastive-learning-tailored method to approximately solve it. Our evaluation on multiple datasets shows that PoisonedEncoder achieves high attack success rates while maintaining the testing accuracy of the downstream classifiers built upon the poisoned encoder for non-attacker-chosen inputs. We also evaluate five defenses against PoisonedEncoder, including one pre-processing, three in-processing, and one post-processing defenses. Our results show that these defenses can decrease the attack success rate of PoisonedEncoder, but they also sacrifice the utility of the encoder or require a large clean pre-training dataset.
Key facts. Cited by 33 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 43 of its 60 references that are in the map. First posted on arXiv 13 May 2022.
Builds on
43 of 60 references.
Closest ancestors · 3
Same direction, newest first
- 2021BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learning1 Aug
- 2021De-Pois: An Attack-Agnostic Defense against Data Poisoning Attacks8 May
- 2021Data Poisoning Attacks and Defenses to Crowdsourcing Systems18 Feb
Other references · 40
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 500
- 2019Local Model Poisoning Attacks to Byzantine-Robust Federated Learningcited by 479
- 2018Spectral Signatures in Backdoor Attackscited by 457
28 more
- 2018Analyzing Federated Learning through an Adversarial Lenscited by 346
- 2017Certified Defenses for Data Poisoning Attackscited by 288
- 2017Towards Poisoning of Deep Learning Algorithms with Back-gradient Optimizationcited by 188
- 2020Witches' Brew: Industrial Scale Data Poisoning via Gradient Matchingcited by 156
- 2021Poisoning and Backdooring Contrastive Learningcited by 149
- 2018Stronger Data Poisoning Attacks Break Data Sanitization Defensescited by 125
- 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 112
- 2020Certified Robustness to Label-Flipping Attacks via Randomized Smoothingcited by 103
- 2020Intrinsic Certified Robustness of Bagging against Data Poisoning Attackscited by 90
- 2016Data Poisoning Attacks on Factorization-Based Collaborative Filteringcited by 78
- 2018Technical Report: When Does Machine Learning FAIL? Generalized Transferability for Evasion and Poisoning Attackscited by 78
- 2019Data Poisoning against Differentially-Private Learners: Attacks and Defensescited by 75
- 2020On Certifying Robustness against Backdoor Attacks via Randomized Smoothingcited by 74
- 2018Label Sanitization against Label Flipping Poisoning Attackscited by 68
- 2020Subpopulation Data Poisoning Attackscited by 68
- 2022MPAF: Model Poisoning Attacks to Federated Learning based on Fake Clientscited by 65
- 2020Influence Function based Data Poisoning Attacks to Top-N Recommender Systemscited by 61
- 2020Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attackscited by 58
- 2020Certified Robustness of Graph Neural Networks against Adversarial Structural Perturbationcited by 57
- 2019Attacking Graph-based Classification via Manipulating the Graph Structurecited by 53
- 2018Poisoning Attacks to Graph-Based Recommender Systemscited by 52
- 2021Poisoning the Unlabeled Dataset of Semi-Supervised Learningcited by 44
- 2018Detection of Adversarial Training Examples in Poisoning Attacks through Anomaly Detectioncited by 43
- 2021Data Poisoning Attacks to Deep Learning Based Recommender Systemscited by 41
- 2020Certified Robustness of Community Detection against Adversarial Structural Perturbation via Randomized Smoothingcited by 29
- 2019Data Poisoning Attacks to Local Differential Privacy Protocolscited by 20
- 2020Humpty Dumpty: Controlling Word Meanings via Corpus Poisoningcited by 17
- 2021Poisoning Attacks to Local Differential Privacy Protocols for Key-Value Datacited by 6
Built on by
Citing papers per year: 2022: 3; 2023: 10; 2024: 9; 2025: 4; 2026: 7.
33 papers.
Sort:
By area:
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 101
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2022An Embarrassingly Simple Backdoor Attack on Self-supervised Learningcited by 30
- 2022CorruptEncoder: Data Poisoning based Backdoor Attacks to Contrastive Learningcited by 28
- 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examplescited by 21
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learningcited by 11
- 2022ESTAS: Effective and Stable Trojan Attacks in Self-supervised Encoders with One Target Unlabelled Samplecited by 9
- 2023Revisiting Data-Free Knowledge Distillation with Poisoned Teacherscited by 9
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capabilitycited by 9
- 2023On the Difficulty of Defending Contrastive Learning against Backdoor Attackscited by 8
21 more
- 2023GhostEncoder: Stealthy Backdoor Attacks with Dynamic Triggers to Pre-trained Encoders in Self-supervised Learningcited by 6
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
- 2024DeDe: Detecting Backdoor Samples for SSL Encoders via Decoderscited by 6
- 2025Backdooring Self-Supervised Contrastive Learning by Noisy Alignmentcited by 6
- 2024Invisible Backdoor Attack against Self-supervised Learningcited by 5
- 2024Mudjacking: Patching Backdoor Vulnerabilities in Foundation Modelscited by 4
- 2023REaaS: Enabling Adversarially Robust Downstream Classifiers via Robust Encoder as a Servicecited by 3
- 2023INK: Inheritable Natural Backdoor Attack Against Model Distillationcited by 2
- 2024Exploiting Supervised Poison Vulnerability to Strengthen Self-Supervised Defensecited by 1
- 2025A Unified and Scalable Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capabilitycited by 1
- 2026BackdoorIDS: Zero-shot Backdoor Detection for Pretrained Vision Encodercited by 1
- 2024Towards Adversarial Robustness And Backdoor Mitigation in SSLcited by 0
- 2024Pre-trained Encoder Inference: Revealing Upstream Encoders In Downstream Machine Learning Servicescited by 0
- 2025TrojanDec: Data-free Detection of Trojan Inputs in Self-supervised Learningcited by 0
- 2025Lorica: A Synergistic Fine-Tuning Framework for Advancing Personalized Adversarial Robustnesscited by 0
- 2026Zero-Sacrifice Persistent-Robustness Adversarial Defense for Pre-Trained Encoderscited by 0
- 2026Robustness of Vision Foundation Models to Common Perturbationscited by 0
- 2026Repurposing and Evaluating the (In)Feasibility of Dataset Poisoning enabled Watermarking for Contrastive Learningcited by 0
- 2026The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-trainingcited by 0
- 2026DEFUSE: Generalizable Backdoor Defense for Self-Supervised Encoders with Generative Priorscited 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
- 2026DEFUSE: Generalizable Backdoor Defense for Self-Supervised Encoders with Generative Priors26 Aug 2026
- 2026The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-training28 Jun 2026
- 2026Repurposing and Evaluating the (In)Feasibility of Dataset Poisoning enabled Watermarking for Contrastive Learning3 May 2026
- 2026Robustness of Vision Foundation Models to Common Perturbations16 Apr 2026
- 2026BackdoorIDS: Zero-shot Backdoor Detection for Pretrained Vision Encoder12 Mar 2026
- 2026Zero-Sacrifice Persistent-Robustness Adversarial Defense for Pre-Trained Encoders10 Feb 2026
- 2025Backdooring Self-Supervised Contrastive Learning by Noisy Alignment19 Aug 2025
- 2025Lorica: A Synergistic Fine-Tuning Framework for Advancing Personalized Adversarial Robustness4 Jun 2025
- 2025A Unified and Scalable Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability15 May 2025
- 2025TrojanDec: Data-free Detection of Trojan Inputs in Self-supervised Learning7 Jan 2025
- 2024DeDe: Detecting Backdoor Samples for SSL Encoders via Decoders25 Nov 2024
21 more
- 2024Exploiting Supervised Poison Vulnerability to Strengthen Self-Supervised Defense13 Sep 2024
- 2024Pre-trained Encoder Inference: Revealing Upstream Encoders In Downstream Machine Learning Services5 Aug 2024
- 2024Invisible Backdoor Attack against Self-supervised Learning23 May 2024
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability3 Apr 2024
- 2024Towards Adversarial Robustness And Backdoor Mitigation in SSL23 Mar 2024
- 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examples16 Mar 2024
- 2024Mudjacking: Patching Backdoor Vulnerabilities in Foundation Models22 Feb 2024
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models12 Feb 2024
- 2023On the Difficulty of Defending Contrastive Learning against Backdoor Attacks14 Dec 2023
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systems20 Nov 2023
- 2023GhostEncoder: Stealthy Backdoor Attacks with Dynamic Triggers to Pre-trained Encoders in Self-supervised Learning1 Oct 2023
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning14 Aug 2023
- 2023Downstream-agnostic Adversarial Examples23 Jul 2023
- 2023Revisiting Data-Free Knowledge Distillation with Poisoned Teachers4 Jun 2023
- 2023Poisoning Language Models During Instruction Tuning1 May 2023
- 2023INK: Inheritable Natural Backdoor Attack Against Model Distillation21 Apr 2023
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learning16 Mar 2023
- 2023REaaS: Enabling Adversarially Robust Downstream Classifiers via Robust Encoder as a Service7 Jan 2023
- 2022ESTAS: Effective and Stable Trojan Attacks in Self-supervised Encoders with One Target Unlabelled Sample20 Nov 2022
- 2022CorruptEncoder: Data Poisoning based Backdoor Attacks to Contrastive Learning15 Nov 2022
- 2022An Embarrassingly Simple Backdoor Attack on Self-supervised Learning13 Oct 2022
- 2022CorruptEncoder: Data Poisoning based Backdoor Attacks to Contrastive Learningcited by 28
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learningcited by 11
- 2023Revisiting Data-Free Knowledge Distillation with Poisoned Teacherscited by 9
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capabilitycited by 9
- 2023GhostEncoder: Stealthy Backdoor Attacks with Dynamic Triggers to Pre-trained Encoders in Self-supervised Learningcited by 6
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
- 2024DeDe: Detecting Backdoor Samples for SSL Encoders via Decoderscited by 6
- 2024Mudjacking: Patching Backdoor Vulnerabilities in Foundation Modelscited by 4
- 2025A Unified and Scalable Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capabilitycited by 1
- 2026The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-trainingcited by 0
- 2026The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-training28 Jun 2026
- 2025A Unified and Scalable Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability15 May 2025
- 2024DeDe: Detecting Backdoor Samples for SSL Encoders via Decoders25 Nov 2024
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability3 Apr 2024
- 2024Mudjacking: Patching Backdoor Vulnerabilities in Foundation Models22 Feb 2024
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systems20 Nov 2023
- 2023GhostEncoder: Stealthy Backdoor Attacks with Dynamic Triggers to Pre-trained Encoders in Self-supervised Learning1 Oct 2023
- 2023Revisiting Data-Free Knowledge Distillation with Poisoned Teachers4 Jun 2023
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learning16 Mar 2023
- 2022CorruptEncoder: Data Poisoning based Backdoor Attacks to Contrastive Learning15 Nov 2022
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 101
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2022An Embarrassingly Simple Backdoor Attack on Self-supervised Learningcited by 30
- 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examplescited by 21
- 2022ESTAS: Effective and Stable Trojan Attacks in Self-supervised Encoders with One Target Unlabelled Samplecited by 9
- 2023On the Difficulty of Defending Contrastive Learning against Backdoor Attackscited by 8
- 2025Backdooring Self-Supervised Contrastive Learning by Noisy Alignmentcited by 6
- 2024Invisible Backdoor Attack against Self-supervised Learningcited by 5
- 2023REaaS: Enabling Adversarially Robust Downstream Classifiers via Robust Encoder as a Servicecited by 3
- 2023INK: Inheritable Natural Backdoor Attack Against Model Distillationcited by 2
- 2024Exploiting Supervised Poison Vulnerability to Strengthen Self-Supervised Defensecited by 1
12 most cited of 20 All 20 (JSON)
- 2026TraceGuard: Adaptive Multimodal Poison Filtering through Cross-Feature Rank Agreement24 Sep 2026
- 2026Repurposing and Evaluating the (In)Feasibility of Dataset Poisoning enabled Watermarking for Contrastive Learning3 May 2026
- 2026Robustness of Vision Foundation Models to Common Perturbations16 Apr 2026
- 2026Zero-Sacrifice Persistent-Robustness Adversarial Defense for Pre-Trained Encoders10 Feb 2026
- 2025Backdooring Self-Supervised Contrastive Learning by Noisy Alignment19 Aug 2025
- 2025Lorica: A Synergistic Fine-Tuning Framework for Advancing Personalized Adversarial Robustness4 Jun 2025
- 2025TrojanDec: Data-free Detection of Trojan Inputs in Self-supervised Learning7 Jan 2025
- 2024Exploiting Supervised Poison Vulnerability to Strengthen Self-Supervised Defense13 Sep 2024
- 2024Pre-trained Encoder Inference: Revealing Upstream Encoders In Downstream Machine Learning Services5 Aug 2024
- 2024Invisible Backdoor Attack against Self-supervised Learning23 May 2024
- 2024Towards Adversarial Robustness And Backdoor Mitigation in SSL23 Mar 2024
- 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examples16 Mar 2024
12 newest of 20 All 20 (JSON)