Mole Recruitment: Poisoning of Image Classifiers via Selective Batch Sampling

Ethan Wisdom, Tejas Gokhale, Chaowei Xiao, Yezhou YangarXiv 2023

Abstract

In this work, we present a data poisoning attack that confounds machine learning models without any manipulation of the image or label. This is achieved by simply leveraging the most confounding natural samples found within the training data itself, in a new form of a targeted attack coined "Mole Recruitment." We define moles as the training samples of a class that appear most similar to samples of another class, and show that simply restructuring training batches with an optimal number of moles can lead to significant degradation in the performance of the targeted class. We show the efficacy of this novel attack in an offline setting across several standard image classification datasets, and demonstrate the real-world viability of this attack in a continual learning (CL) setting. Our analysis reveals that state-of-the-art models are susceptible to Mole Recruitment, thereby exposing a previously undetected vulnerability of image classifiers.

Introduction

Traditional data poisoning usually involves "dirty" tactics: an adversary might inject images with invisible pixel perturbations or intentionally mislabel data. While effective, these methods are often detectable by data sanitization filters or human inspection.

"Mole Recruitment" is a novel data poisoning attack that degrades image classifier accuracy without modifying a single pixel or flipping a label. By strategically selecting "moles"—natural, correctly labeled images that a model finds confusing—and concentrating them in training batches, attackers can cause targeted accuracy drops of over 50% in specific classes. This is particularly relevant in Continual Learning (CL), where models learn new tasks over time. If an adversary can influence which samples from a new task are presented to the model, they might be able to "recruit" specific natural images to overwrite the model's previous knowledge, exacerbating the well-known problem of "catastrophic forgetting."

Methods: The Recruitment of Moles

The core of the attack is the identification and use of moles. A "mole" is a sample from a confounding class ($c$) that a classifier is highly likely to mistake for an attacked class ($a$). For example, a specific image of a truck that looks remarkably like a car.

Overview of the Mole Recruitment attack process using CLIP to identify confounding samples.

The attack follows a three-step process:

  1. Identification: The attacker identifies the top-$N$ moles (samples of class $c$ with the highest softmax probability for class $a$).
  2. Selective Batch Sampling: Instead of training on a random distribution of data, the model is fed a "poisonous" batch. This batch is class-balanced but non-i.i.d.; the samples for the confounding class are exclusively the recruited moles.
  3. Black-Box Transferability: To make the attack practical, the authors show that one doesn't need access to the victim model's internal parameters. They use CLIP (a pre-trained foundation model) to identify moles, demonstrating that "natural" confusion is often shared across different model architectures.

Experimental Results

The authors evaluated their attack across several standard benchmarks, including CIFAR-10, Fashion-MNIST, and EuroSAT (satellite imagery) in offline settings, and CIFAR-100 and ImageNet-Subset in Continual Learning settings.

Accuracy drop heatmaps across CIFAR-10, Fashion-MNIST, and EuroSAT datasets showing the impact of confounding classes on attacked classes.

Key findings include:

  • Massive Per-Class Drops: In offline experiments using ResNet-18 on CIFAR-10, the attack achieved a maximum accuracy drop of 55.1% for targeted classes.
  • Total Model Impact: While the attack targets specific classes, it can still drag down the total model accuracy by up to 15%.
  • Continual Learning Vulnerability: Against state-of-the-art CL models (like iCaRL or DER), Mole Recruitment induced relative accuracy penalties of up to 48% for non-replay methods and 21% for replay-based methods.
  • Stealthiness: Because the total model accuracy often remains stable (as other classes might see slight improvements), these targeted attacks could easily go unnoticed by users monitoring only aggregate metrics.

Discussion and Insights

The attack reveals that neural networks are surprisingly fragile when edge cases are concentrated. A mere 100-200 moles (roughly 0.2% of the training data) are enough to derail a class's performance. Often, the attack exploits spurious correlations or background features; for instance, "plane" and "bird" are effective moles for each other because both frequently feature a blue sky background.

Furthermore, confusion is often asymmetric. In CIFAR-10, using trucks to attack the "car" class caused a 50.4% drop, but using cars to attack "trucks" only caused a 21.2% drop. This suggests some classes are naturally more "dominant" in the feature space.

Currently, there is no specialized defense against Mole Recruitment. Since the data is "clean," standard filters fail. Future work is needed to develop "mole-aware" sampling or robust loss functions. Interestingly, these same "edge case" samples could potentially be used to improve model robustness if used correctly in a defensive training curriculum.

Summary updated

BibTeX
@misc{wisdom2023mole,
  author = {Ethan Wisdom and Tejas Gokhale and Chaowei Xiao and Yezhou Yang},
  title = {{Mole Recruitment: Poisoning of Image Classifiers via Selective Batch Sampling}},
  year = {2023},
  eprint = {2303.17080},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.17080},
}
Figure