Manipulating Machine Learning: Poisoning Attacks and Countermeasures for Regression Learning

Matthew Jagielski, Alina Oprea, Battista Biggio, Chang Liu, Cristina Nita-Rotaru, Bo Li

Abstract

Machine learning models are increasingly used for high-stakes automated decisions, yet their vulnerability to training-time corruption remains a critical concern. This paper provides the first systematic look at "poisoning attacks" against linear regression models, where an attacker injects malicious data into a training set to skew predictions. We introduce a powerful new optimization-based attack and a fast statistical alternative, then counter them with TRIM, a novel defense that iteratively "trims" away high-residual points to recover a clean model even under heavy attack.

The Threat Model: Poisoning Regression

While poisoning attacks—deliberately corrupting training data—have been extensively studied for classification tasks like spam filters, their impact on linear regression was previously poorly understood. The challenge in regression is that the response variable (the output) is continuous, giving an attacker much more fine-grained control than simply flipping a category label.

Figure 1: Comparison of the learning pipeline in an ideal world versus an adversarial world where training data is poisoned.

Furthermore, existing "robust" statistical methods like RANSAC or Huber regression are designed to handle random noise or outliers; they often fail against sophisticated adversarial "inliers"—poisoned points that look like legitimate data but are mathematically engineered to pull the regression line in the wrong direction.

Attack Methodologies

The authors tackle the problem from both the offensive and defensive sides, proposing two primary attack vectors:

  1. Optimization-based Attack (OptP): This is a "white-box" attack formulated as a bilevel optimization problem. The attacker seeks to find poisoning points $(x, y)$ that maximize the model's error on a clean validation set. Unlike previous work, this method jointly optimizes both the feature values ($x$) and the continuous response variable ($y$).
  2. Statistical-based Attack (StatP): A "black-box" attack that requires much less information. It samples points from the legitimate data's distribution but pushes the feature values to the boundaries (corners) and sets the response variables to extremes to maximize leverage.

The Defense: TRIM (Trimmed Regression)

To counter these attacks, the authors propose TRIM. Instead of trying to identify and remove "bad" points, TRIM focuses on finding the "best" subset of data. It works through an iterative process:

  • Initialization: Start with a model trained on a random subset.
  • Residual Calculation: Calculate the residuals (the distance between the actual data and the model's prediction) for all points.
  • Trimming: Select the $n$ points with the lowest residuals and retrain the model on only those points.
  • Convergence: This process repeats until the model converges.
Figure 2: The TRIM defense in action, showing how the regression line iteratively adjusts to ignore poisoned points (red) and align with the clean data distribution (blue).

By focusing on the points that fit the model best, TRIM effectively ignores the high-residual noise introduced by an attacker. The authors provide a formal proof that TRIM converges and an upper bound on how much an attacker can possibly skew the model when TRIM is active.

Experimental Evaluation

The researchers evaluated their methods on three realistic datasets: Health Care (Warfarin dosage), Loan Assessment (interest rates), and House Pricing.

Key Results

  • Attack Potency: The OptP attack was devastating. In the health care case study, it caused 75% of patients' predicted dosages to change by an average of 93%. For 10% of patients, the dosage changed by a staggering 359%, which could have fatal real-world consequences.
  • Defense Resilience: TRIM proved remarkably robust. While traditional methods like Huber regression and RANSAC performed poorly against adversarial data, TRIM consistently achieved Mean Squared Errors (MSE) within 1% of the unpoisoned model's error.
  • Efficiency: Despite its iterative nature, TRIM is extremely fast. On the house pricing dataset, it took an average of just 0.02 seconds to run, making it significantly faster than many existing robust statistics methods.

Conclusion and Future Work

This work demonstrates that regression models are highly susceptible to poisoning, especially when an attacker can optimize the continuous response variable. However, the TRIM defense offers a principled and efficient way to maintain model integrity. Future work is needed to explore "integrity attacks" (targeting specific individuals) and to determine if these techniques translate to non-linear models like deep neural networks.

Summary updated

BibTeX
@inproceedings{jagielski2018manipulating,
  author = {Matthew Jagielski and Alina Oprea and Battista Biggio and Chang Liu and Cristina Nita-Rotaru and Bo Li},
  title = {{Manipulating Machine Learning: Poisoning Attacks and Countermeasures for Regression Learning}},
  booktitle = {IEEE Symposium on Security and Privacy},
  year = {2018},
  doi = {10.1109/sp.2018.00057},
}
Figure