On the Difficulty of Defending Contrastive Learning against Backdoor Attacks
Not on the map. Why?
Abstract (arXiv)
Recent studies have shown that contrastive learning, like supervised learning, is highly vulnerable to backdoor attacks wherein malicious functions are injected into target models, only to be activated by specific triggers. However, thus far it remains under-explored how contrastive backdoor attacks fundamentally differ from their supervised counterparts, which impedes the development of effective defenses against the emerging threat. This work represents a solid step toward answering this critical question. Specifically, we define TRL, a unified framework that encompasses both supervised and contrastive backdoor attacks. Through the lens of TRL, we uncover that the two types of attacks operate through distinctive mechanisms: in supervised attacks, the learning of benign and backdoor tasks tends to occur independently, while in contrastive attacks, the two tasks are deeply intertwined both in their representations and throughout their learning processes. This distinction leads to the disparate learning dynamics and feature distributions of supervised and contrastive attacks. More importantly, we reveal that the specificities of contrastive backdoor attacks entail important implications from a defense perspective: existing defenses for supervised attacks are often inadequate and not easily retrofitted to contrastive attacks. We also explore several alternative defenses and discuss their potential challenges. Our findings highlight the need for defenses tailored to the specificities of contrastive backdoor attacks, pointing to promising directions for future research.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 50 of its 65 references that are in the map. First posted on arXiv 14 Dec 2023.
Builds on
50 of 65 references.
References · 50
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2020Supervised Contrastive Learningcited by 2,803
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
- 2018ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Designcited by 1,132
38 more
- 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
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 511
- 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 500
- 2017Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Modelscited by 459
- 2018Spectral Signatures in Backdoor Attackscited by 457
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2020Backdoor Learning: A Surveycited by 412
- 2020Input-Aware Dynamic Backdoor Attackcited by 304
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 276
- 2021Anti-Backdoor Learning: Training Clean Models on Poisoned Datacited by 258
- 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 249
- 2019Detecting AI Trojans Using Meta Neural Analysiscited by 192
- 2020Clean-Label Backdoor Attacks on Video Recognition Modelscited by 162
- 2017Neural Trojanscited by 151
- 2021Poisoning and Backdooring Contrastive Learningcited by 149
- 2022Backdoor Defense via Decoupling the Training Processcited by 149
- 2020Robust Pre-Training by Adversarial Contrastive Learningcited by 144
- 2019Universal Litmus Patterns: Revealing Backdoor Attacks in CNNscited by 143
- 2021SPECTRE: Defending Against Backdoor Attacks Using Robust Statisticscited by 123
- 2019Demon in the Variant: Statistical Analysis of DNNs for Robust Backdoor Contamination Detectioncited by 121
- 2021BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learningcited by 120
- 2020RAB: Provable Robustness Against Backdoor Attackscited by 115
- 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
- 2021Backdoor Attacks on Self-Supervised Learningcited by 89
- 2020How Useful is Self-Supervised Pretraining for Visual Tasks?cited by 80
- 2022Data-free Backdoor Removal based on Channel Lipschitznesscited by 77
- 2021When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?cited by 76
- 2020Contrastive Learning with Adversarial Perturbations for Conditional Text Generationcited by 56
- 2019NeuronInspect: Detecting Backdoors in Neural Networks via Output Explanationscited by 49
- 2018Model-Reuse Attacks on Deep Learning Systemscited by 47
- 2022PoisonedEncoder: Poisoning the Unlabeled Pre-training Data in Contrastive Learningcited by 33
- 2023Continuous Learning for Android Malware Detectioncited by 33
- 2020TrojanZoo: Towards Unified, Holistic, and Practical Evaluation of Neural Backdoorscited by 30
- 2019Invisible Backdoor Attacks on Deep Neural Networks via Steganography and Regularizationcited by 17
- 2022Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetworkcited by 12
- 2019Deep Probabilistic Models to Detect Data Poisoning Attackscited by 10
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 3.
8 papers.
- 2024DeDe: Detecting Backdoor Samples for SSL Encoders via Decoderscited by 6
- 2025Backdooring Self-Supervised Contrastive Learning by Noisy Alignmentcited by 6
- 2025DeBackdoor: A Deductive Framework for Detecting Backdoor Attacks on Deep Models with Limited Datacited by 5
- 2024Protecting against simultaneous data poisoning attackscited by 1
- 2025TrojanDec: Data-free Detection of Trojan Inputs in Self-supervised Learningcited by 0
- 2026Backdoor Attacks on Multi-modal 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
- 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
- 2026Backdoor Attacks on Multi-modal Contrastive Learning16 Jan 2026
- 2025Backdooring Self-Supervised Contrastive Learning by Noisy Alignment19 Aug 2025
- 2025DeBackdoor: A Deductive Framework for Detecting Backdoor Attacks on Deep Models with Limited Data27 Mar 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
- 2024Protecting against simultaneous data poisoning attacks23 Aug 2024