De-Pois: An Attack-Agnostic Defense against Data Poisoning Attacks

Jian Chen, Xuxin Zhang, Rui Zhang, Chen Wang, Ling Liu

Abstract

Machine learning techniques are potentially vulnerable to data poisoning attacks, where sophisticated attackers disrupt the learning procedure by injecting malicious samples into the training dataset. Existing defenses are largely attack-specific. We propose De-Pois, an attack-agnostic defense that trains a mimic model to imitate the behavior of a target model trained on clean samples. Using Generative Adversarial Networks (GANs) for data augmentation and mimic model construction, De-Pois distinguishes poisoned samples by comparing prediction differences. Evaluations across diverse datasets and four attack types demonstrate that De-Pois is effective and efficient, achieving an average accuracy and F1-score over 0.9.

Introduction

Machine learning models are increasingly deployed in security-critical domains such as autonomous driving and biometric identification. However, these models are susceptible to data poisoning attacks, where an adversary injects malicious samples into the training set to manipulate the model's eventual behavior. For example, a self-driving car might be tricked into misinterpreting a 'Stop' sign as a 'Speed Limit' sign due to poisoned training data.

Decision boundary shifts under poisoning attacks.

The current defensive landscape is often a game of 'whack-a-mole,' as most existing defenses are attack-specific. They may stop 'label-flipping' but fail against 'clean-label' attacks where labels appear correct but features are subtly corrupted. There is a critical need for general-purpose, attack-agnostic defenses that can protect models regardless of the specific poisoning strategy employed.

Proposed Methodology: De-Pois

De-Pois is built on the fundamental intuition that poisoned samples are designed to shift a model's decision boundary away from where it would reside if trained only on clean data. The system operates in three main stages:

The De-Pois framework architecture including synthetic data generation and mimic model construction.
  1. Synthetic Data Generation: Defenders typically have access only to a small 'trusted' clean dataset ($S_t$). De-Pois utilizes a conditional GAN (cGAN) paired with a novel authenticator (e.g., a CNN for images or a LASSO module for regression) to augment this small set into a large, diverse synthetic dataset. The authenticator ensures the generated data maintains high fidelity and functional utility.
  2. Mimic Model Construction: Using the augmented data, De-Pois trains a 'mimic model' via a conditional Wasserstein GAN with Gradient Penalty (WGAN-GP). The goal is to simulate the behavior of a target model that has never encountered poisoned data.
  3. Poisoned Data Recognition: The potentially poisoned training set is fed into the mimic model. De-Pois calculates the 'prediction difference' for each sample. By analyzing the distribution of these differences using z-scores and confidence intervals, it flags samples that deviate significantly from expected 'clean' behavior as poisoned.

Experimental Evaluation

The authors evaluated De-Pois across four diverse datasets representing different ML tasks: MNIST and CIFAR-10 (image classification), Fourclass (binary classification), and House Pricing (regression).

Key Results

  • High Detection Performance: De-Pois achieved an average Accuracy and F1-score exceeding 0.9 across all tested attack types, including TCL, pGAN, LF, and R-attacks.
  • Superiority over Specialized Defenses: In many scenarios, De-Pois outperformed attack-specific defenses. For instance, against pGAN-attacks on CIFAR-10, De-Pois showed a 15% improvement in accuracy over the 'Certified Defense' (CD) method.
  • Robustness to Small Data: The system remains effective even when the trusted clean dataset is as small as 5% of the total training set.
  • Versatility: Unlike many defenses limited to classification, De-Pois proved highly effective for regression tasks, maintaining high recall on the House Pricing dataset even as poisoning rates increased.

Conclusion and Future Work

De-Pois provides a robust, attack-agnostic shield against data poisoning by creating a 'gold standard' behavior model. While highly effective, its performance depends on the integrity of the initial trusted dataset (minimum ~5%). Future research will focus on optimizing the computational overhead of training the GAN components and investigating adaptive attackers who might attempt to specifically mimic the mimic model's behavior to evade detection.

Summary updated

Abstract

Machine learning techniques have been widely applied to various applications. However, they are potentially vulnerable to data poisoning attacks, where sophisticated attackers can disrupt the learning procedure by injecting a fraction of malicious samples into the training dataset. Existing defense techniques against poisoning attacks are largely attack-specific: they are designed for one specific type of attacks but do not work for other types, mainly due to the distinct principles they follow. Yet few general defense strategies have been developed. In this paper, we propose De-Pois, an attack-agnostic defense against poisoning attacks. The key idea of De-Pois is to train a mimic model the purpose of which is to imitate the behavior of the target model trained by clean samples. We take advantage of Generative Adversarial Networks (GANs) to facilitate informative training data augmentation as well as the mimic model construction. By comparing the prediction differences between the mimic model and the target model, De-Pois is thus able to distinguish the poisoned samples from clean ones, without explicit knowledge of any ML algorithms or types of poisoning attacks. We implement four types of poisoning attacks and evaluate De-Pois with five typical defense methods on different realistic datasets. The results demonstrate that De-Pois is effective and efficient for detecting poisoned data against all the four types of poisoning attacks, with both the accuracy and F1-score over 0.9 on average.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10De-PoisDetection time0.108 sPoison Detection · samples=1000 · hardware=NVIDIA GeForce GTX 1060 6GB · timing-condition=after obtaining the mimic model
Source quote
L602: For CIFAR-10 dataset, De-Pois takes 0.108 seconds for detecting 1,000 images, while CD needs less time than De-Pois. For Fourclass and House Pricing datasets, De-Pois also takes the longest time. This is mainly due to the extra loading time of the mimic model of De-Pois. It is also noticed that the run-time overhead is largely affected by the dataset size where De-Pois spends longer time on CIFAR-10 dataset.
BibTeX
@article{chen2021de,
  author = {Jian Chen and Xuxin Zhang and Rui Zhang and Chen Wang and Ling Liu},
  title = {{De-Pois: An Attack-Agnostic Defense against Data Poisoning Attacks}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2021},
  doi = {10.1109/tifs.2021.3080522},
}
Figure