Abstract
Machine learning systems are deployed in critical settings, but they might fail in unexpected ways, impacting the accuracy of their predictions. Poisoning attacks against machine learning induce adversarial modification of data used by a machine learning algorithm to selectively change its output when it is deployed. In this work, we introduce a novel data poisoning attack called a subpopulation attack, which is particularly relevant when datasets are large and diverse. We design a modular framework for subpopulation attacks, instantiate it with different building blocks, and show that the attacks are effective for a variety of datasets and machine learning models. We further optimize the attacks in continuous domains using influence functions and gradient optimization methods. Compared to existing backdoor poisoning attacks, subpopulation attacks have the advantage of inducing misclassification in naturally distributed data points at inference time, making the attacks extremely stealthy. We also show that our attack strategy can be used to improve upon existing targeted attacks. We prove that, under some assumptions, subpopulation attacks are impossible to defend against, and empirically demonstrate the limitations of existing defenses against our attacks, highlighting the difficulty of protecting machine learning against this threat.
The Rise of Stealthy Poisoning
Machine learning models are increasingly trained on massive, uncurated datasets scraped from the web. This creates a massive surface area for data poisoning, where an adversary injects malicious samples into the training set to manipulate the model's future behavior.
Traditionally, poisoning fell into two categories: Availability Attacks, which aim to destroy overall model accuracy (loud and easy to spot), and Targeted/Backdoor Attacks, which aim to misclassify a single specific point or a point with a specific "trigger" (like a digital sticker).
Subpopulation attacks represent a dangerous middle ground. They target a "natural" slice of the data—such as all images of a specific car model or a specific demographic group in a facial recognition task. Because the model still performs well on the "average" user, the attack remains hidden, yet it can be used to systematically deny service or create biased outcomes for specific groups.
A Modular Framework for Attacks
The researchers propose a modular framework for these attacks consisting of two main stages: Subpopulation Selection and Poisoning Attack Generation.
1. Subpopulation Selection
To identify a vulnerable group, attackers can use:
- FeatureMatch: If the attacker has access to annotations (like race, age, or specific tags), they target those directly.
- ClusterMatch: An unsupervised approach where the attacker uses a surrogate model to project data into a representation space and uses K-Means clustering to find "natural" groups that the model treats similarly.
2. Poisoning Attack Generation
Once a group is chosen, the attacker breaks it using:
- Label Flipping: Taking samples from the target subpopulation and assigning them the wrong label.
- Attack Optimization: For continuous data like images, the authors use Influence Functions and a new Gradient Optimization (GO) method to mathematically "nudge" poisoned pixels to maximize loss on the target subpopulation while minimizing impact on the rest of the dataset.
Comparison with Existing Attacks
Subpopulation attacks offer several advantages over traditional methods, particularly in their ability to generalize across natural data points without requiring specific triggers or access to the victim's training data.
As shown in the table above, subpopulation attacks are uniquely versatile, supporting multiple data modalities (Image, Text, and Tabular) while maintaining a "natural target" that generalizes to unseen data points within that subpopulation.
Key Insights and Results
The study evaluated the attack across three distinct modalities: Tabular (UCI Adult), Image (CIFAR-10 and UTKFace), and Text (IMDB Reviews).
- High Impact, Low Effort: On CIFAR-10, injecting just 126 poisoned points (a tiny fraction of the dataset) induced a 74% error rate on a specific subpopulation. On UTKFace, only 29 points were needed to increase classification error for a specific demographic by 50%.
- The Stealth Advantage: Because the attack targets a small subpopulation, the drop in overall accuracy is negligible. A system administrator monitoring global metrics would likely see no red flags.
- The Fairness Connection: Subpopulations that are already "minorities" in the dataset are often easier to attack, allowing an adversary to weaponize existing model biases.
The Defense Dilemma
Perhaps the most concerning finding is that common defenses can actually backfire. For example, TRIM (which removes high-loss outliers) can exacerbate the attack. If the attack causes the model to shift its boundary, the defense might mistakenly remove the clean data points of the subpopulation, thinking they are the outliers, leaving only the poisoned data to define that region.
The authors provide a mathematical proof showing that for "local learners" (models that make decisions based on local data density), these attacks are theoretically impossible to defend against without external clean validation sets. This highlights a critical need for new defense paradigms, potentially involving human-in-the-loop verification or more diverse, gold-standard validation sets.
Summary updated