Influence Based Defense Against Data Poisoning Attacks in Online Learning

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

TL;DR

This paper introduces a novel defense mechanism for online machine learning models against data poisoning attacks. By combining a "slab" data sanitization technique with an "influence function" to identify and mitigate the impact of suspicious data points, the authors aim to minimize model degradation in sequential learning scenarios.

What Problem Does This Paper Address?

Machine learning models are increasingly used in applications that rely on data streams, where data arrives sequentially. This "online learning" setting is particularly vulnerable to data poisoning attacks. In such attacks, adversaries intentionally inject malicious data points into the training set to degrade the model's performance. While defenses exist for "offline" learning (where all data is available at once), the sequential nature of online learning presents unique challenges. Attackers can exploit the continuous arrival of data to subtly manipulate the model over time, and they can adapt their strategies based on the model's evolving state. Existing defenses often assume an offline setting, leaving online learners exposed.

Methods

The proposed defense mechanism is a two-pronged approach:

  1. Slab Defense: This is a pre-existing data sanitization technique. It works by projecting incoming data points onto a line between class centroids and then discarding points that fall too far from this line. This helps to filter out obvious outliers.
  2. Influence Function: This is the novel contribution. Drawing from robust statistics, the influence function quantifies how much a single training data point affects the learned model parameters. By calculating the influence of each data point, the defense can identify and down-weight or reject points that have an unusually large impact, even if they pass the initial slab sanitization. This is particularly useful for detecting more subtly crafted poisoned data.

The influence function is computed efficiently without retraining the model, making it suitable for online settings. The defense algorithm first applies the slab defense and then uses the influence function to further refine the data points considered for training.

Datasets

The authors evaluated their defense on six datasets:

  • Australian
  • Banknote
  • MNIST 1v7
  • Spambase
  • UCI Breast Cancer
  • Fashion MNIST (Bag versus Sandal)

These datasets vary in the number of features and the distribution of data for pre-training, training, and testing. The poisoning budget was computed relative to the training data.

Key Insights and Ideas

  • Online learning is a critical vulnerability: The sequential nature of data arrival in online learning makes it a prime target for sophisticated data poisoning attacks that can adapt over time.
  • Influence functions offer a powerful lens: Quantifying the impact of individual data points on model parameters is key to identifying subtle poisoning attempts that might evade simpler sanitization methods.
  • Combining defenses is effective: The synergy between a basic sanitization filter (slab defense) and a more sophisticated influence-based method provides a robust defense.
  • Clean data can be affected: A surprising finding is that minimizing the influence of poisoned points can sometimes lead to the modification or rejection of clean data points that happen to have high influence scores, potentially leading to information loss.

Key Results

The paper presents results comparing their proposed "Influence-based" defense (I) against the "Slab" defense (S) under two attack strategies: "Simplistic" and "Online."

  • General Performance: On average, the Slab and Influence-based methods showed similar performance for constant learning rates.
  • Optimal Learning Rate Advantage: For an optimal learning rate, the Influence-based method significantly outperformed the Slab defense on most datasets. For instance, on the MNIST dataset, the Influence defense was over 9% more accurate than Slab against the Simplistic attack and over 30% more accurate against the Online attack.
  • Attack Effectiveness: The Simplistic attack was observed to be more powerful than the Online attack, likely because it injects poisoned examples directly into the feasible set.
  • Trade-off: The defense mechanism, while effective, can sometimes lead to a drop in accuracy on clean data due to the influence-based modification of high-influence clean data points.

Limitations and Future Work

  • Information Loss: The authors acknowledge that minimizing influence can sometimes affect clean data points, leading to information loss and a potential decrease in accuracy.
  • Trade-offs: The defense involves a trade-off between minimizing the impact of poisoned data and potentially altering clean data.
  • Future Work: The paper suggests exploring the trade-offs further and potentially developing methods to better distinguish between high-influence clean data and high-influence poisoned data. The authors also mention that the objective function to minimize (influence) can affect clean data points.

Summary updated

BibTeX
@inproceedings{seetharaman2022influence,
  author = {Sanjay Seetharaman and Shubham Malaviya and Rosni K. Vasu and Manish Shukla and Sachin Lodha},
  title = {{Influence Based Defense Against Data Poisoning Attacks in Online Learning}},
  booktitle = {Comsnets},
  year = {2022},
  doi = {10.1109/comsnets53615.2022.9668557},
}
Figure