Augmentation Backdoors

Joseph Rance, Yiren Zhao, Ilia Shumailov, Robert MullinsarXiv 2022 · DOI

Abstract

Traditional backdoor attacks in machine learning typically rely on poisoning static datasets. This research introduces "Augmentation Backdoors," a stealthier class of attacks that target the data augmentation pipeline. By compromising open-source augmentation libraries, attackers can inject malicious triggers "on-the-fly" during training, leaving the original dataset untouched and making detection via standard audits nearly impossible. We demonstrate the efficacy of these attacks across various benchmarks, achieving high trigger accuracy with minimal impact on clean-data performance.

Introduction

The security of the machine learning (ML) supply chain has become a critical concern as developers increasingly rely on third-party libraries for data processing. While "poisoning" attacks like BadNet are well-documented, they require modifying the training data itself. Augmentation backdoors bypass this requirement by embedding malicious logic within the transformation functions used during training.

Overview of the augmentation backdoor process, where malicious logic is hidden within the augmentation step to compromise the final model.

This approach exploits the fact that developers rarely audit the source code of standard augmentation libraries. If an attacker can introduce a malicious routine into such a library, they can force a model to learn a backdoor even if the training images and labels are perfectly clean.

Methodology

The researchers propose three distinct levels of augmentation backdoors:

  1. Simple Transform Attack: This method uses a standard augmentation (e.g., a specific rotation or blur) as a trigger. When the compromised library detects this transform, it silently alters the target label.
  2. GAN-based Augmentation Attack: Utilizing a Data Augmentation GAN (DAGAN), the attacker generates subtle trigger patterns within images. This is a clean-label attack where the labels remain correct, but the model learns to associate the GAN-generated artifacts with a target class.
  3. AugMix-based Gradient Shaping: The most sophisticated method, it uses gradient descent to optimize AugMix parameters. It aligns the training gradients of clean batches with those of backdoored batches, effectively "baking" the backdoor into the model weights without obvious visual triggers.
Comparison of visual outputs from different backdoor strategies, showing how triggers range from obvious transforms to subtle, GAN-generated artifacts.

Experimental Evaluation

The attacks were evaluated on standard computer vision benchmarks, including MNIST, CIFAR-10, CIFAR-100, and Omniglot.

Key Results

  • Effectiveness: Simple transform attacks achieved nearly 100% trigger accuracy with negligible impact (often <1%) on the model's performance on clean data.
  • Stealth: The GAN-based attack on Omniglot reached 100% trigger accuracy without label modification.
  • Performance: The AugMix-based attack outperformed previous state-of-the-art "Batch Order Backdoor" methods on CIFAR-10, reaching 95.77% trigger accuracy while being computationally more efficient.

Discussion and Insights

The primary insight of this work is the "Clean Data Illusion." A model's integrity can no longer be guaranteed solely by auditing the training dataset; the transformation logic applied during training is equally vulnerable. These attacks subvert the principle of semantic invariance—the idea that a "cat" remains a "cat" after rotation—by teaching the model that specific transforms signify entirely different classes.

Limitations

Despite their power, these attacks face challenges. GAN and AugMix methods are computationally expensive. Furthermore, while they evade dataset audits, they remain susceptible to rigorous code audits of the augmentation libraries. However, given the complexity and scale of modern ML dependencies, such audits are rarely performed in practice.

Conclusion

Augmentation backdoors represent a significant evolution in ML security threats. By shifting the attack surface from the data to the code that processes it, attackers can compromise models with unprecedented stealth. Future defensive strategies must expand beyond data hygiene to include comprehensive verification of the entire ML software stack.

Summary updated

BibTeX
@misc{rance2022augmentation,
  author = {Joseph Rance and Yiren Zhao and Ilia Shumailov and Robert Mullins},
  title = {{Augmentation Backdoors}},
  year = {2022},
  eprint = {2209.15139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.15139},
}
Figure