Skip to main content
QUICK REVIEW

[Paper Review] Poisoning and Backdooring Contrastive Learning

Nicholas Carlini, Andreas Terzis|arXiv (Cornell University)|Jun 17, 2021
Adversarial Robustness in Machine LearningComputer Science40 references19 citations
TL;DR

This paper demonstrates that multimodal contrastive learning models like CLIP are highly vulnerable to poisoning and backdoor attacks when trained on uncurated, Internet-scraped datasets. By injecting just 0.01% of poisoned data (e.g., 300 images in a 3M-image dataset), attackers can trigger misclassification via small patch triggers, with targeted attacks requiring as little as 0.0001% of the data, exposing a critical security risk in self-supervised learning.

ABSTRACT

Multimodal contrastive learning methods like CLIP train on noisy and uncurated training datasets. This is cheaper than labeling datasets manually, and even improves out-of-distribution robustness. We show that this practice makes backdoor and poisoning attacks a significant threat. By poisoning just 0.01% of a dataset (e.g., just 300 images of the 3 million-example Conceptual Captions dataset), we can cause the model to misclassify test images by overlaying a small patch. Targeted poisoning attacks, whereby the model misclassifies a particular test input with an adversarially-desired label, are even easier requiring control of 0.0001% of the dataset (e.g., just three out of the 3 million images). Our attacks call into question whether training on noisy and uncurated Internet scrapes is desirable.

Motivation & Objective

  • To investigate the feasibility of poisoning and backdoor attacks on multimodal contrastive learning models trained on uncurated, Internet-scraped datasets.
  • To evaluate whether the use of noisy, uncurated data in contrastive learning introduces significant security vulnerabilities.
  • To demonstrate that minimal data poisoning—orders of magnitude less than required in supervised learning—can successfully manipulate model behavior.
  • To motivate the development of automated defenses against data poisoning in self-supervised and contrastive learning systems.

Proposed method

  • Adapted existing poisoning and backdoor attack techniques to the contrastive learning paradigm, where the model learns by contrasting positive and negative pairs of data.
  • Injected poisoned examples into the training dataset, where each example included a small, imperceptible patch (e.g., 16×16 checkerboard) as a trigger.
  • Used a consistent or random placement strategy for the backdoor patch across images to evaluate robustness under different attack settings.
  • Trained contrastive models (e.g., CLIP) on poisoned versions of large-scale datasets like Conceptual Captions and YFCC, using standard training pipelines.
  • Evaluated model performance on clean inputs and tested misclassification rates under backdoor and targeted poisoning conditions.
  • Leveraged existing open-source CLIP training tools to reproduce attacks with minimal modifications to the training process.

Experimental results

Research questions

  • RQ1Can backdoor attacks be effectively mounted on contrastive learning models trained on uncurated, Internet-scraping datasets?
  • RQ2How much data poisoning is required to successfully manipulate a contrastive model’s behavior?
  • RQ3Does the use of noisy, uncurated data in contrastive learning increase the feasibility and impact of data poisoning attacks?
  • RQ4Can targeted poisoning attacks be executed with minimal data injection, even in the absence of manual data curation?
  • RQ5What are the implications of these attacks for the trustworthiness of self-supervised models in real-world deployments?

Key findings

  • Backdoor attacks on contrastive models require only 0.01% of the training data to be poisoned, significantly less than the 1% typically needed in supervised learning.
  • Targeted poisoning attacks can succeed with as little as 0.0001% of the dataset poisoned, demonstrating extreme efficiency in data injection.
  • The attacks are effective even when the training data is uncurated and scraped from the Internet, where manual review is absent.
  • The model maintains high accuracy on clean test data while exhibiting high misclassification rates on inputs containing the trigger patch.
  • The attacks are practical and reproducible using standard CLIP training tools, requiring no architectural or algorithmic changes.
  • The findings suggest that the security of contrastive learning models is fundamentally compromised when trained on uncurated data, necessitating new defense mechanisms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.