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

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

TL;DR

De-Pois is a novel, "attack-agnostic" defense system that protects machine learning models from data poisoning by training a "mimic model" to recognize what clean data should look like. By using Generative Adversarial Networks (GANs) to expand a small set of trusted data, it can accurately flag malicious samples across various attack types—including classification and regression tasks—without needing prior knowledge of the specific attack strategy.

What Problem Does This Paper Address?

Machine learning models are increasingly used in security-critical domains like autonomous driving and biometric ID. However, they are highly susceptible to data poisoning attacks, where an adversary injects a small fraction of malicious samples into the training set to manipulate the model's eventual behavior (e.g., making a self-driving car misinterpret a "Stop" sign as a "Speed Limit" sign).

The current defensive landscape is a game of "whack-a-mole." Most existing defenses are attack-specific: they might stop "label-flipping" but fail against "clean-label" attacks where the labels look correct but the underlying features are subtly corrupted. There is a critical lack of general-purpose, attack-agnostic defenses that can protect models regardless of how the attacker crafts their poison.

Methods

The authors propose De-Pois, which operates on a fundamental intuition: poisoned samples are designed to shift a model's decision boundary away from where it would be if trained only on clean data.

The system works in three main stages:

  1. Synthetic Data Generation: Since defenders usually only have access to a tiny "trusted" clean dataset ($S_t$), De-Pois uses a conditional GAN (cGAN) paired with a novel "authenticator" to augment this small set into a large, diverse synthetic dataset. The authenticator acts as a supervisor, ensuring the generated data maintains high fidelity and variety.
  2. Mimic Model Construction: Using the augmented data, De-Pois trains a "mimic model" using a conditional Wasserstein GAN with Gradient Penalty (WGAN-GP). The goal of this mimic model is to simulate the behavior of a target model that has never seen 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 the expected "clean" behavior as poisoned.

Datasets

The authors evaluated De-Pois across four diverse datasets representing different ML tasks:

  • MNIST: Hand-written digit recognition (Image Classification).
  • CIFAR-10: General object classification (Image Classification).
  • Fourclass: A non-linearly separable binary classification benchmark.
  • House Pricing: Predicting sale prices (Regression).
  • CIFAR-100: Used for testing the system's limits on more complex data.

Key Insights and Ideas

  • The Power of Mimicry: Instead of trying to find "bugs" in the data, De-Pois creates a "gold standard" behavior model. If a sample makes the target model behave differently than the mimic model, that sample is likely poison.
  • Authenticator-Enhanced GANs: Standard GANs often suffer from "mode collapse" (producing limited varieties of data). By adding an authenticator (a CNN for images or a LASSO module for regression), the authors forced the GAN to produce data that is not just realistic, but also functionally useful for training.
  • Attack-Agnosticism: Because the defense relies on the difference between clean and poisoned behavior rather than specific statistical signatures of an attack, it remains effective against four very different attack types (TCL, pGAN, LF, and R-attacks).

Key Results

  • High Detection Accuracy: De-Pois achieved an average Accuracy and F1-score of over 0.9 across all tested attack types.
  • Outperforming Specialists: In many cases, De-Pois outperformed attack-specific defenses. For example, 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 that only work for classification, De-Pois proved highly effective for regression tasks (tested on the House Pricing dataset), maintaining high recall even as the poisoning rate increased.

Limitations and Future Work

  • Trusted Data Dependency: While De-Pois works with small trusted sets, its performance drops significantly if the trusted set is smaller than 5% or if the trusted set itself is "polluted" with poisoned samples.
  • Computational Overhead: Training GANs and mimic models is computationally expensive. While the detection phase is fast (0.108s for 1,000 CIFAR-10 images), the training phase for the defense components can take several minutes.
  • Complexity Scaling: Performance slightly degraded on more complex datasets like CIFAR-100. Future work could involve optimizing the mimic model architecture for high-dimensional, multi-class data.
  • Adaptive Attackers: The authors suggest future research should investigate "aware" attackers who might try to poison the data in a way that specifically mimics the mimic model's behavior.

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},
}

Loading related content...

Figure