Adversarial Detection and Correction by Matching Prediction Distributions

Giovanni Vacanti, Arnaud Van Looveren
2/21/2020
cs.LGstat.ML

Official code: SeldonIO/alibi-detect (2,554 stars, Jupyter Notebook, last commit 2025-12-11).

Abstract

We present a novel adversarial detection and correction method for machine learning classifiers.The detector consists of an autoencoder trained with a custom loss function based on the Kullback-Leibler divergence between the classifier predictions on the original and reconstructed instances.The method is unsupervised, easy to train and does not require any knowledge about the underlying attack. The detector almost completely neutralises powerful attacks like Carlini-Wagner or SLIDE on MNIST and Fashion-MNIST, and remains very effective on CIFAR-10 when the attack is granted full access to the classification model but not the defence.

Show full abstract

We show that our method is still able to detect the adversarial examples in the case of a white-box attack where the attacker has full knowledge of both the model and the defence and investigate the robustness of the attack. The method is very flexible and can also be used to detect common data corruptions and perturbations which negatively impact the model performance. We illustrate this capability on the CIFAR-10-C dataset.

View on arXivView PDF

Code Implementations(1)

Algorithms for outlier, adversarial and drift detection

2,554249Jupyter Notebook, PythonOct 7, 201911 months agoNOASSERTION
adversarialanomalyconcept-driftdata-driftdetection+8 more

Similar Papers

Cite this paper

@article{vacanti2020adversarial,
  title  = {Adversarial Detection and Correction by Matching Prediction Distributions},
  author = {Giovanni Vacanti and Arnaud Van Looveren},
  year   = {2020},
  eprint = {2002.09364},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.09364}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.09364.svg)](https://codeofpaper.com/paper/2002.09364)

Discussion