Efficient Label Contamination Attacks Against Black-Box Learning Models

Mengchen Zhao, Bo An, Wei Gao, Teng Zhang

Introduction

Machine learning (ML) models are increasingly reliant on data from external, potentially untrustworthy sources, such as crowdsourced labels or user-generated reports. This reliance creates a vulnerability to Label Contamination Attacks (LCA)—a form of data poisoning where a malicious actor intentionally mislabels a small portion of the training set to manipulate the resulting model's behavior. While prior research often assumed a "white-box" setting (where the attacker knows the victim's model parameters), real-world systems are typically "black boxes." This paper introduces a highly efficient method for executing LCAs against black-box systems by leveraging the concept of attack transferability.

Methodology: Projected Gradient Ascent (PGA)

The authors frame the optimal attack as a mixed-integer bilevel optimization problem. In this setup, the attacker (outer loop) seeks to maximize a utility function (e.g., error rate) by flipping labels, while the learner (inner loop) attempts to minimize training loss on the contaminated data.

To solve this efficiently, the researchers developed the Projected Gradient Ascent (PGA) algorithm. The process involves:

  1. Relaxation: Converting the discrete "flip/don't flip" decision into a continuous value between 0 and 1.
  2. Gradient Computation: Using the "Representer Theorem" and the chain rule to determine how infinitesimal changes in labels affect the final model weights.
  3. Projection: Mapping the continuous attack back to a discrete set of label flips that respect a predefined "poisoning budget" (e.g., 10% of the dataset).
  4. Kernel Approximation: For non-linear models, the algorithm employs Random Fourier Features to map data into a linear space, allowing the attack to be computed efficiently.

Key Insights: Targeting Extreme Points

A critical observation is that the PGA algorithm tends to target "extreme points"—data points located far from their class center. By flipping these high-leverage points, the attacker can significantly shift the decision boundary with minimal effort.

Visualization of decision boundary shifts under label contamination attacks for various models.

As shown in the visualization above, even a small number of flips (10 or 20) can cause substantial shifts in the decision boundaries of various models, including SVM, Logistic Regression (LR), and RBF-kernel models. This demonstrates the algorithm's ability to generalize across different learning architectures.

Results and Performance

The PGA algorithm was evaluated against five public datasets: Australian (credit applications), W8a (web documents), Spambase (email spam), Wine (chemical analysis), and Skin (image segments). Experimental results demonstrate that PGA consistently outperforms existing baselines, such as random flipping and the ALFA algorithm.

Accuracy degradation across five datasets as the percentage of flipped labels increases, comparing PGA to ALFA and random baselines.

On the W8a dataset, for instance, contaminating 30% of the labels dropped the victim's accuracy from 90% to just 30%. Crucially, the researchers found that attacks are transferable: an attack optimized for a simple "substitute" model (like a linear SVM) is highly effective against a wide range of black-box victim models, including Decision Trees and K-Nearest Neighbors. This suggests that hiding the specific model architecture ("security through obscurity") provides little protection against sophisticated poisoning.

Conclusion and Future Work

This research highlights a significant security gap in ML pipelines. Because defending against these attacks is difficult without a "guaranteed clean" reference dataset, future work must focus on data sanitization—identifying suspicious clusters or extreme points—and game-theoretic modeling to anticipate and mitigate attacker strategies.

Summary updated

BibTeX
@inproceedings{zhao2017efficient,
  author = {Mengchen Zhao and Bo An and Wei Gao and Teng Zhang},
  title = {{Efficient Label Contamination Attacks Against Black-Box Learning Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/551},
}
Figure