NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Benchmarking the Effect of Poisoning Defenses on the Security and Bias of the Final Model

Nathalie Baracaldo, Kevin Eykholt, Farhan Ahmed, Yi Zhou, Shriti Priya, Taesung Lee, Swanand Kadhe, Yusong Tan, Sridevi Polavaram, Sterling Suggs, Yuyang Gao, David SlaterTSRML @ NeurIPS 2022

TL;DR

This paper investigates how common defenses against data poisoning attacks in machine learning can inadvertently introduce or exacerbate bias against certain data subgroups. By introducing a new fairness metric, Statistical Parity Difference (SPD), the authors reveal that many defenses achieve better security against poisoning at the cost of fairness, highlighting a critical trade-off that needs to be considered in model development.

What Problem Does This Paper Address?

Machine learning models are increasingly deployed in critical applications, making them targets for adversarial attacks. One such attack is "data poisoning," where an attacker subtly manipulates the training data to either degrade model performance or, more insidiously, create backdoors that can be exploited later. While various defenses exist to combat these attacks, this paper points out a critical, under-explored issue: these defenses might have unintended consequences on the model's fairness. Specifically, defenses designed to remove "suspicious" or "outlier" data points might inadvertently remove or penalize legitimate data samples from under-represented subgroups, leading to biased predictions. The paper aims to benchmark existing defenses not only for their security against poisoning but also for their impact on model fairness.

Methods

The core of this research involves a comprehensive benchmarking of several existing poisoning defense mechanisms. The authors evaluate these defenses using traditional security metrics like clean accuracy (performance on unpoisoned data) and attack success rate (how effectively poisoned samples are misclassified).

Crucially, they introduce a novel metric to quantify fairness: the Statistical Parity Difference (SPD). Borrowed from fairness literature, SPD measures the difference in misclassification rates between two distinct subgroups within a class. An |SPD| ≤ 0.1 is considered acceptable, indicating fair treatment, while larger values suggest bias.

The paper evaluates eight defenses and three baselines across two types of poisoning attacks (dirty-label and clean-label) and two different triggers. They also conduct experiments with alternative hyperparameters and on a different dataset to assess generalizability.

Datasets

The primary dataset used for training and evaluation is GTSRB (German Traffic Sign Recognition Benchmark). This dataset is noted for being unbalanced, making it a more realistic scenario for studying sub-population bias.

Additionally, the authors evaluate some defenses on the CIFAR-10 dataset to assess generalizability. For CIFAR-10, they use different triggers (copyright and watermark) and a different model architecture (ResNet-18).

Key Insights and Ideas

  • The Fairness-Security Trade-off: The most significant finding is that many defenses designed to improve robustness against poisoning attacks often lead to a decrease in fairness, particularly for under-represented benign sub-populations. This suggests a direct trade-off that practitioners must navigate.
  • Defenses Can Mistake Benign Outliers for Poison: Filtering-based defenses, in particular, might incorrectly identify naturally occurring, but rare, benign data samples as suspicious and remove them, thus harming fairness.
  • SPD as a Crucial Metric: The introduction and application of the SPD metric are key. It provides a quantitative way to measure the discriminatory impact of defenses, moving beyond just overall accuracy and attack success.
  • Data Augmentation as a Fairer Option: Data Augmentation techniques (like CutMix) appear to offer a better balance between security and fairness compared to many other defenses.
  • Attack Type Matters for Fairness: The impact of defenses on fairness can vary depending on the type of poisoning attack (e.g., dirty-label vs. clean-label).

Key Results

  • Security vs. Fairness: Many evaluated defenses achieved high robustness against poisoning attacks (low attack success rate) but exhibited higher |SPD| values, indicating bias. For instance, filtering and adversarial training-based defenses were consistently less fair than baselines.
  • Activation Defense: This defense showed high fairness on dirty-label attacks but significantly lower fairness on clean-label attacks.
  • Data Augmentation: Consistently demonstrated the highest fairness across different attacks and triggers.
  • Baselines: The "Undefended" and "Perfect Filter" baselines generally showed better fairness than most of the evaluated defenses.
  • GTSRB vs. CIFAR-10: On the unbalanced GTSRB dataset, biases were more pronounced. On the balanced CIFAR-10 dataset, most defenses exhibited low bias, suggesting that dataset balance plays a role in fairness outcomes.

Limitations and Future Work

  • Dataset Specificity: While experiments were conducted on GTSRB and CIFAR-10, the generalizability of these findings to other datasets and domains remains an area for further exploration.
  • Hyperparameter Sensitivity: The paper notes that alternative hyperparameters can affect fairness, and a deeper dive into this relationship could be beneficial.
  • Definition of Sub-populations: The method for identifying sub-populations (using BEAN regularization) is one approach; exploring other methods for defining and identifying these groups could yield different insights.
  • Recommendation for Evaluation: The authors strongly recommend that future evaluations of ML defenses incorporate fairness metrics like SPD to provide a more holistic understanding of their impact. This suggests that future work should focus on developing defenses that explicitly optimize for both security and fairness, rather than treating them as separate concerns.

Summary updated

BibTeX
@inproceedings{baracaldo2022benchmarking,
  author = {Nathalie Baracaldo and Kevin Eykholt and Farhan Ahmed and Yi Zhou and Shriti Priya and Taesung Lee and Swanand Kadhe and Yusong Tan and Sridevi Polavaram and Sterling Suggs and Yuyang Gao and David Slater},
  title = {{Benchmarking the Effect of Poisoning Defenses on the Security and Bias of the Final Model}},
  booktitle = {TSRML @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=PP3H72O_E2f},
}
Figure