Gradient-based Data Subversion Attack Against Binary Classifiers

Rosni K. Vasu, Sanjay Seetharaman, Shubham Malaviya, Manish Shukla, Sachin LodhaarXiv 2021

Introduction

Machine learning models are fundamentally dependent on the integrity of their training data. Data poisoning represents a significant security threat where an adversary manipulates training data to subvert a model's predictive capabilities. This paper focuses on label contamination attacks, a specific subset of poisoning where the attacker is restricted to flipping labels (e.g., changing "malware" to "benign") without modifying the underlying input features.

Existing label-flipping strategies often encounter two primary obstacles: high computational costs for large-scale datasets—typically requiring complex bilevel optimization—and the requirement for "white-box" knowledge of the target model. This research introduces a method that is both computationally efficient and effective in "black-box" scenarios, where only the input feature representation is accessible to the attacker.

Methodology: Gradient-based Data Subversion (GDS)

The core innovation presented is Gradient-based Data Subversion (GDS). Rather than exhaustively searching the space of possible label flips, the authors utilize gradients from a differentiable loss function to pinpoint the most "influential" data points for poisoning.

Search Space Reduction

A key finding is that data points with small gradients—representing "easy" or well-classified points—are often the most effective to flip for shifting the decision boundary. By prioritizing these points, the GDS method significantly reduces the candidate pool, enhancing efficiency.

Surrogate Models and Optimization

In black-box settings, the attacker employs a surrogate model (such as Gradient Boosted Decision Trees) to estimate these gradients. The selection of the optimal set of flips is formulated as an integer linear programming problem. To further optimize performance, the authors propose sGDS (sorted GDS), which utilizes a greedy sorting approach. This variant achieves results comparable to the full optimization solver in a fraction of the time.

Visualization of the Data Poisoning Attack. By flipping labels of influential points (light colors), an adversary can shift the decision boundary from the original dotted line to the poisoned solid line.

Experimental Setup

The effectiveness of the GDS attack was validated across several diverse binary classification benchmarks:

  • EMBER: A large-scale dataset for static malware detection.
  • Spambase: A standard email spam detection dataset.
  • UCI Repository Datasets: Including Wine, Skin, Australian, and Banknote datasets, covering domains such as chemistry and finance.

Discussion and Key Insights

  • Gradients as Heuristics: Using gradients to prune the search space serves as a powerful "warm-start" heuristic, allowing attackers to bypass data points that would have negligible impact on the model's final state.
  • The Vulnerability of "Easy" Points: Counter-intuitively, flipping labels for points the model classifies with high confidence (low residual error) can be more disruptive than targeting points near the decision boundary.
  • Attack Transferability: Attacks optimized against one model type (e.g., GBDT) frequently transfer effectively to disparate architectures like Logistic Regression or K-Nearest Neighbors, making black-box threats a practical concern.

Key Results

The sGDS attack consistently outperformed baseline methods, including random flipping and Projected Gradient Ascent (PGA). On the Australian dataset, sGDS reached a ~54% error rate with 30% label flips, significantly higher than the ~30% achieved by PGA.

Furthermore, sGDS demonstrated substantial computational speedups, requiring approximately 21 seconds per iteration compared to 193 seconds for PGA. State-of-the-art classifiers like LightGBM were also shown to be vulnerable; on the EMBER malware dataset, error rates increased significantly under the OGDS-LR attack.

Limitations and Future Work

While effective, this work is currently limited to binary classification. Future research should explore extensions to multi-class problems and investigate the transferability of these attacks to highly non-linear deep neural networks. Additionally, the study focuses on "offline" poisoning; attacking "online" models that learn continuously from data streams presents unique challenges. Finally, the authors suggest that decentralized data storage solutions, such as blockchains, could serve as a potential defense mechanism to ensure data integrity.

Summary updated

BibTeX
@misc{vasu2021gradient,
  author = {Rosni K. Vasu and Sanjay Seetharaman and Shubham Malaviya and Manish Shukla and Sachin Lodha},
  title = {{Gradient-based Data Subversion Attack Against Binary Classifiers}},
  year = {2021},
  eprint = {2105.14803},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.14803},
}
Figure