[Paper Review] Deep Probabilistic Models to Detect Data Poisoning Attacks
This paper proposes two uncertainty-based methods to detect backdoor data poisoning attacks in deep neural networks: (1) probabilistic modeling of deep features using parametric distributions to estimate input uncertainty, and (2) Bayesian neural networks with mean-field variational inference to estimate model uncertainty. The deep feature approach achieves high AUPR (up to 99.96) in detecting poisoned samples, while Bayesian networks struggle when trained on poisoned data, highlighting the importance of clean validation data for uncertainty-based detection.
Data poisoning attacks compromise the integrity of machine-learning models by introducing malicious training samples to influence the results during test time. In this work, we investigate backdoor data poisoning attack on deep neural networks (DNNs) by inserting a backdoor pattern in the training images. The resulting attack will misclassify poisoned test samples while maintaining high accuracies for the clean test-set. We present two approaches for detection of such poisoned samples by quantifying the uncertainty estimates associated with the trained models. In the first approach, we model the outputs of the various layers (deep features) with parametric probability distributions learnt from the clean held-out dataset. At inference, the likelihoods of deep features w.r.t these distributions are calculated to derive uncertainty estimates. In the second approach, we use Bayesian deep neural networks trained with mean-field variational inference to estimate model uncertainty associated with the predictions. The uncertainty estimates from these methods are used to discriminate clean from the poisoned samples.
Motivation & Objective
- To address the threat of data poisoning attacks that compromise model integrity without degrading clean accuracy.
- To develop uncertainty-based detection mechanisms that flag poisoned inputs during inference.
- To evaluate whether uncertainty estimates from deep features or Bayesian neural networks can effectively distinguish poisoned from clean samples.
- To investigate the robustness of uncertainty estimation under varying poisoning rates and dataset characteristics.
Proposed method
- Fit parametric probability distributions (e.g., Gaussian) to deep features extracted from clean held-out validation data to model the feature space distribution.
- At inference, compute log-likelihood scores of test sample features against the fitted distributions; low scores indicate high anomaly likelihood.
- Train Bayesian neural networks using mean-field variational inference to approximate the posterior over network weights.
- Estimate model uncertainty via BALD (Bayesian Active Learning by Disagreement), which quantifies mutual information between weight posterior and prediction distribution.
- Use uncertainty scores as a discriminative signal: higher uncertainty for poisoned samples, lower for clean ones.
- Evaluate detection performance via AUPR in a binary classification setup between clean and poisoned samples.
Experimental results
Research questions
- RQ1Can uncertainty estimates derived from deep feature distributions effectively detect backdoor-poisoned inputs in DNNs?
- RQ2How does model uncertainty from Bayesian neural networks compare to feature-level uncertainty in detecting data poisoning attacks?
- RQ3Does the performance of uncertainty-based detection degrade with increasing poisoning rates in the training data?
- RQ4Can a model trained on poisoned data still produce reliable uncertainty estimates for poisoning detection?
- RQ5Is the combination of feature-level and model-level uncertainty more effective than either alone?
Key findings
- The DeepFeatures (DF) method achieved AUPR scores as high as 99.96 on MNIST and 91.87 on CIFAR-10 when detecting poisoned samples, significantly outperforming deterministic DNNs.
- On MNIST, the DF method reduced classification accuracy on poisoned samples to as low as 7.32% at 50% poisoning rate, indicating strong detection capability.
- Bayesian neural networks (BNNs) trained on poisoned data maintained high accuracy (over 90%) on both clean and poisoned sets, indicating poor detection performance due to model fitting to the poisoned distribution.
- BNNs showed better detection performance at low poisoning rates (e.g., 97.47% AUPR at 10% poisoning on MNIST), but performance degraded as poisoning increased.
- The DF method remained robust across poisoning rates because it used only clean data to fit feature distributions, providing a stable anchor for anomaly detection.
- The results demonstrate that uncertainty estimates from clean-anchored feature modeling are more effective than those from models trained on poisoned data, underscoring the need for clean validation data in detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.