A BIC-based Mixture Model Defense against Data Poisoning Attacks on Classifiers

Xi Li, David J. Miller, Zhen Xiang, George Kesidis

TL;DR

This paper introduces an unsupervised defense against "error-generic" data poisoning attacks that doesn't require a clean validation set—a rarity in the field. By using mixture models and the Bayesian Information Criterion (BIC), the system identifies and prunes "atypical" samples that are likely to be malicious, restoring classifier accuracy across various architectures from SVMs to Deep Neural Networks.

What Problem Does This Paper Address?

Machine learning models are notoriously sensitive to their training data. In a Data Poisoning (DP) attack, an adversary injects a small number of malicious samples into the training set to degrade the model's performance.

The authors focus on the most difficult version of this problem: the embedded scenario. In this case, the defender doesn't know if an attack has occurred, which classes are affected, or which samples are "poison." Most existing defenses "cheat" by assuming the defender has access to a small, guaranteed-clean validation set to tune their filters. In the real world, such a set is often unavailable. The challenge is to "sanitize" the training data using only the (potentially) dirty data itself.

Methods

The core idea is that poisoned samples are statistically "expensive." If an attacker labels a "Spam" email as "Ham" to confuse a filter, that sample will likely look like an outlier within the "Ham" distribution.

The authors propose a three-step BIC-based Mixture Model Defense:

  1. Mixture Modeling: They fit each class in the training set with a mixture model (Gaussian Mixture Models for images, Parsimonious Mixture Models for text). This allows the model to capture complex, multi-modal distributions.
  2. BIC as a Security Metric: They use the Bayesian Information Criterion (BIC), which balances how well a model fits the data against how complex the model is. The intuition is that poisoned samples either force the model to become overly complex (adding a "poisoned" component) or significantly hurt the data likelihood.
  3. Iterative Sanitization: The algorithm cycles through the mixture components. For each component, it tests three hypotheses: Is it clean? Should it be removed entirely? Or should it be "revised" (re-assigning some samples to other classes)? It chooses the action that minimizes the total BIC cost.

Unlike supervised defenses, this is entirely unsupervised. It doesn't need to see examples of "poison" beforehand; it simply looks for statistical inconsistencies.

Datasets

The authors evaluated their defense across a diverse range of benchmarks:

  • Text: TREC 2005 (spam detection) and 20-Newsgroups.
  • Images: MNIST (handwritten digits), CIFAR10 (objects), and STL10 (image recognition).
  • Classifiers: They tested the defense's "universality" by applying it to Linear SVMs, Logistic Regression, LSTMs, and ResNet architectures.

Key Insights and Ideas

  • Poisoning as a Model Selection Problem: The most elegant insight is treating anomaly detection as a model selection problem. If removing a group of samples makes the overall statistical model significantly "simpler" (lower BIC) without losing much fit, those samples are likely noise or poison.
  • The "Clean Reference" Fallacy: Previous BIC-based works assumed one class was clean and used it as a reference. This paper shows that if an attacker poisons both classes, those older defenses fail because they might sanitize the "cleaner" class to match the "dirtier" one. This new method treats all classes as potentially compromised.
  • Feature Collision: The paper highlights that effective attacks often rely on "feature collision"—making a sample from Class A look like Class B but keeping the Class A label. The mixture model approach is specifically designed to catch these "wolves in sheep's clothing."

Key Results

The proposed defense (BIC-D) consistently outperformed standard defenses like KNN-based sanitization, Gradient Shaping (GS), and SVD-based outlier detection.

  • Accuracy Recovery: On the TREC05 dataset, a strong attack dropped SVM accuracy from 95% to 75%. The BIC-D defense restored it to over 93%.
  • Robustness: In multi-class attacks (e.g., 20-Newsgroups), as the attack strength increased, other defenses (like KNN) saw their performance plummet, while BIC-D remained stable, dropping only about 5% from the clean baseline.
  • High Precision: The defense maintained a high True Positive Rate (TPR)—often identifying over 80-90% of poisoned samples—while keeping the False Positive Rate (FPR) very low (often <2%), meaning it rarely deleted legitimate data.

Limitations and Future Work

  • Ambiguous Samples: The authors acknowledge that the defense sometimes removes clean samples that sit right on the decision boundary. While this actually improved test accuracy in some cases (by removing noise), it represents a loss of legitimate data.
  • Computational Complexity: While more efficient than some robust statistics methods, the iterative EM (Expectation-Maximization) process for mixture models is slower than simple KNN filters. The authors note it is comparable to the time required to train a Deep Neural Network.
  • Adaptive Attackers: The paper assumes the attacker is unaware of the defense. A "defense-aware" attacker might try to craft poisoned samples that perfectly mimic the clean distribution's statistical properties, which would be much harder for a BIC-based approach to catch. Exploring these "stealthy" attacks is a suggested next step.

Summary updated

BibTeX
@inproceedings{li2021bic,
  author = {Xi Li and David J. Miller and Zhen Xiang and George Kesidis},
  title = {{A BIC-based Mixture Model Defense against Data Poisoning Attacks on Classifiers}},
  booktitle = {MLSP},
  year = {2021},
  doi = {10.1109/mlsp55844.2023.10286008},
}
Figure