Witches' Brew: Industrial Scale Data Poisoning via Gradient Matching

Jonas Geiping, Liam Fowl, W. Ronny Huang, Wojciech Czaja, Gavin Taylor, Michael Moeller, Tom Goldstein

TL;DR

This paper introduces "Witches' Brew," a novel and highly efficient data poisoning attack that can successfully target and manipulate large-scale deep learning models trained from scratch, even on datasets like ImageNet. The attack achieves this by precisely matching the gradient direction of malicious data points to that of the target data, making it both potent and difficult to detect.

What Problem Does This Paper Address?

The paper tackles the critical security vulnerability of data poisoning in machine learning. Specifically, it addresses the challenge of targeted, clean-label data poisoning attacks against modern deep neural networks trained from scratch. Previous attacks often struggled with scalability, required expensive computations, or only worked in simplified settings (e.g., linear models, transfer learning). The authors aim to demonstrate that even large-scale, state-of-the-art models are susceptible to such attacks, posing a significant threat to real-world applications.

Methods

The core of the "Witches' Brew" attack lies in gradient matching. Instead of directly manipulating the target image or its label, the attacker crafts poisoned training data such that its gradient during training aligns with the gradient of the desired misclassification for a specific target image. This is achieved by minimizing the cosine similarity between the gradient of the adversarial loss (on the target image) and the average gradient of the poisoned data.

Key techniques include:

  • Gradient Alignment: The central mechanism, aiming to make the victim model's training process inadvertently optimize for the attacker's malicious goal.
  • Differentiable Data Augmentation and Resampling: To ensure the attack is robust to common data augmentation techniques used during training, making the poisoned data more transferable.
  • Restarts: Employing multiple random initializations for the poison perturbations to increase the likelihood of finding effective poisons.
  • "Brewing" Process: An efficient optimization process that requires only a single pretrained model and a computational budget on the order of one training epoch, making it scalable.

Datasets

  • CIFAR-10: Used extensively for evaluating the attack's effectiveness and comparing it against existing methods.
  • ImageNet (ILSVRC2012): The primary target for demonstrating the attack's scalability and effectiveness on large-scale, real-world datasets.
  • Google Cloud AutoML: Used to test the attack in a black-box setting, simulating a practical deployment scenario.

The paper does not introduce new benchmark datasets but rather applies the attack to existing, widely-used datasets.

Key Insights and Ideas

  • Gradient Alignment is Key: The paper highlights that precisely matching the direction of gradients, rather than just magnitudes, is a powerful mechanism for data poisoning, especially in the context of deep networks trained from scratch.
  • Efficiency is Crucial for Scale: The proposed gradient matching approach is orders of magnitude more efficient than previous methods like MetaPoison, making it feasible for large datasets like ImageNet.
  • Clean-Label Attacks are a Serious Threat: The "clean label" nature of the attack means poisoned data is nearly indistinguishable from clean data, making detection via human supervision or simple outlier detection extremely difficult.
  • Defenses are Limited: Existing defenses, particularly data sanitization methods, are largely ineffective against this sophisticated attack. Differentially private training offers some mitigation but at a significant cost to natural accuracy.

Key Results

  • ImageNet Success: The attack is the first to demonstrate targeted misclassification on modern deep networks trained from scratch on a full-sized, poisoned ImageNet dataset.
  • High Poisoning Success: Achieved high poisoning success rates (e.g., 80% on ResNet-18 with only 0.05% budget and ε=8) on CIFAR-10 and ImageNet.
  • Efficiency: The attack can poison ImageNet models in under four GPU hours, a stark contrast to the hundreds of GPU days required by previous methods like MetaPoison.
  • Robustness: Differentiable data augmentation makes the attack robust to common data augmentation techniques.
  • Transferability: Poisons crafted using one architecture can effectively transfer to other architectures, even without knowledge of the victim's model.
  • Defense Limitations: Demonstrated that data sanitization methods are ineffective, and differential privacy significantly degrades model accuracy.

Limitations and Future Work

  • Threat Model: The primary focus is on gray-box settings where the attacker has some knowledge of the model architecture. While the attack shows transferability, it's not fully black-box in its brewing phase.
  • Computational Cost: While significantly more efficient than prior work, creating poisons still requires computational resources, especially for larger budgets or tighter ε bounds.
  • Defense Evasion: The paper highlights the limitations of current defenses and suggests that securing the entire data pipeline is crucial. Future work could explore more robust defense mechanisms or investigate how to make data poisoning attacks even more stealthy.
  • Broader Applications: The paper focuses on image classification but suggests the underlying principles could apply to other domains. Further research could explore its impact on other ML tasks and architectures.

Summary updated

Abstract

Data Poisoning attacks modify training data to maliciously control a model trained on such data. In this work, we focus on targeted poisoning attacks which cause a reclassification of an unmodified test image and as such breach model integrity. We consider a particularly malicious poisoning attack that is both "from scratch" and "clean label", meaning we analyze an attack that successfully works against new, randomly initialized models, and is nearly imperceptible to humans, all while perturbing only a small fraction of the training data. Previous poisoning attacks against deep neural networks in this setting have been limited in scope and success, working only in simplified settings or being prohibitively expensive for large datasets. The central mechanism of the new attack is matching the gradient direction of malicious examples. We analyze why this works, supplement with practical considerations. and show its threat to real-world practitioners, finding that it is the first poisoning method to cause targeted misclassification in modern deep networks trained from scratch on a full-sized, poisoned ImageNet dataset. Finally we demonstrate the limitations of existing defensive strategies against such an attack, concluding that data poisoning is a credible threat, even for large-scale deep learning systems.
BibTeX
@inproceedings{geiping2021witches,
  author = {Jonas Geiping and Liam Fowl and W. Ronny Huang and Wojciech Czaja and Gavin Taylor and Michael Moeller and Tom Goldstein},
  title = {{Witches' Brew: Industrial Scale Data Poisoning via Gradient Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=AsXg_a5jk5},
}
Figure