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 a novel, unsupervised defense against data poisoning attacks on machine learning classifiers. By employing a Bayesian Information Criterion (BIC)-based mixture model, the defense effectively identifies and removes poisoned samples from the training data without prior knowledge of the attack or requiring clean validation sets, significantly improving classifier robustness.

What Problem Does This Paper Address?

Machine learning models are increasingly vulnerable to data poisoning (DP) attacks, where malicious actors inject carefully crafted "poisoned" samples into the training data to degrade the classifier's performance. This is particularly challenging in "embedded" DP scenarios where poisoned samples are an unknown subset of the training data, and there's no clean validation set available to help detect them. Existing defenses often rely on specific attack types, require clean data, or are tailored to particular classifiers, leaving a gap for a general, robust, and unsupervised solution. This paper aims to fill that gap by proposing a defense that can handle complex, embedded DP attacks across various classifier architectures.

Methods

The core of the proposed defense lies in an unsupervised approach that leverages mixture modeling and the Bayesian Information Criterion (BIC).

  • Mixture Modeling: For each class, the authors model the data distribution using a mixture of probability density functions. This is particularly effective because poisoned samples, often designed to be atypical, tend to be better explained by the mixture model of a different class than their assigned one.
  • Bayesian Information Criterion (BIC): BIC is used as a principled criterion for model selection and anomaly detection. It balances the goodness of fit (log-likelihood) with model complexity. The authors hypothesize that mitigating data poisoning will improve the BIC score, as poisoned components will either be removed or revised to better fit the data.
  • Iterative Sanitization: The defense iteratively identifies and "sanitizes" poisoned components and samples. This involves:
  • Estimating mixture models for each class.
  • Assessing the BIC cost reduction achieved by either removing a component or revising its samples (re-assigning them to the class they best explain).
  • Performing these updates in a locally optimal fashion, always choosing the change that yields the greatest BIC reduction.
  • This process continues until the BIC cost converges.
  • Finally, samples that have been re-assigned to a different class are considered poisoned and removed from the training set.

This approach is novel because it's the first to formulate a BIC-based defense for unsupervised anomaly detection and DP attack mitigation in this challenging embedded scenario.

Datasets

The paper evaluates the proposed defense on several benchmark datasets:

  • TREC 2005 spam corpus: Used for binary classification experiments.
  • 20-Newsgroups (20NG): Used for multi-class text classification.
  • MNIST: A dataset of handwritten digit images.
  • CIFAR10: A dataset of small color images.
  • STL10: Another dataset of color images, often used for unsupervised learning.

The authors also describe how they simulate poisoning attacks by injecting real samples from one class into the training set of another, mislabeling them.

Key Insights and Ideas

  • Poisoned samples are "outliers" in a multi-class sense: The core insight is that poisoned samples, even if they appear somewhat normal for their assigned (incorrect) class, are often better explained by the mixture model of their true class. This allows the mixture model to effectively "catch" them.
  • BIC as a unified objective for anomaly detection and model selection: The BIC criterion elegantly serves a dual purpose: it helps select appropriate mixture model complexity and simultaneously flags components/samples that, when removed or revised, lead to a better overall model fit according to BIC.
  • Unsupervised and adaptive defense: The defense doesn't need to know the attack type or which classes are poisoned. It adapts by analyzing the data's structure and identifying deviations from what a clean model would predict, as measured by BIC.
  • Robustness to embedded attacks: The method is specifically designed for the challenging scenario where poisoned data is mixed in without the defender's knowledge, making it highly practical.

Key Results

The proposed BIC-based defense (BIC-D) demonstrated strong performance across various classifiers (SVM, Logistic Regression, LSTM, ResNet) and datasets:

  • Improved Test Accuracy: In most scenarios, BIC-D significantly restored test classification accuracy, often bringing it close to the clean baseline, even under strong attacks where other defenses faltered. For instance, on TREC05, it surpassed other defenses, maintaining high accuracy even with attack strengths of 5000.
  • High True Positive Rate (TPR): The defense was effective at detecting poisoned samples, achieving high TPRs across different datasets and attack strengths.
  • Low False Positive Rate (FPR): While some false positives (clean samples misidentified as poisoned) were observed, they were generally low, and the paper argues that removing these ambiguous samples can sometimes even slightly improve accuracy.
  • Superiority over other defenses: BIC-D consistently outperformed or matched other state-of-the-art defenses like KNN-D, GS-D, and SVD-D, especially in more challenging attack scenarios. It was particularly robust when only one class was poisoned.
  • Computational Efficiency: While not as fast as KNN-D, the defense's computational cost was comparable to DNN training time, making it practical for real-world applications.

Limitations and Future Work

  • Local Optimality: The optimization process for minimizing BIC is locally optimal, meaning it might not find the absolute global minimum. However, the authors show it leads to a robust solution.
  • Ambiguous Samples: The defense may falsely remove a few clean samples that are genuinely ambiguous and well-explained by multiple classes. The paper notes that this is a consequence of BIC being "efficacious" to remove them and can sometimes slightly increase accuracy.
  • Hyperparameter Tuning (for comparison methods): The paper highlights that other methods like KNN-D and SVD-D are highly sensitive to hyperparameter choices, which are difficult to tune without a clean validation set—a scenario this defense avoids.
  • Future Work: The paper suggests that the BIC-based approach could be extended to other types of adversarial attacks beyond data poisoning. Further exploration into optimizing the BIC minimization process for global optimality could also be a direction.

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