PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examples

Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, Nate Kushman
10/30/2017
cs.LG

Official code: microsoft/PixelDefend (27 stars, Python, MIT, last commit 2020-02-06).

Abstract

Adversarial perturbations of normal images are usually imperceptible to humans, but they can seriously confuse state-of-the-art machine learning models. What makes them so special in the eyes of image classifiers?

Show full abstract

In this paper, we show empirically that adversarial examples mainly lie in the low probability regions of the training distribution, regardless of attack types and targeted models. Using statistical hypothesis testing, we find that modern neural density models are surprisingly good at detecting imperceptible image perturbations. Based on this discovery, we devised PixelDefend, a new approach that purifies a maliciously perturbed image by moving it back towards the distribution seen in the training data. The purified image is then run through an unmodified classifier, making our method agnostic to both the classifier and the attacking method. As a result, PixelDefend can be used to protect already deployed models and be combined with other model-specific defenses. Experiments show that our method greatly improves resilience across a wide variety of state-of-the-art attacking methods, increasing accuracy on the strongest attack from 63% to 84% for Fashion MNIST and from 32% to 70% for CIFAR-10.

View on arXivView PDF

Code Implementations(1)

MIT

Source Code for ICRL 2018 Paper: PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examples

276PythonDec 16, 20196 years agoMIT

Similar Papers

Cite this paper

@article{song2017pixeldefend,
  title  = {PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examples},
  author = {Yang Song and Taesup Kim and Sebastian Nowozin and Stefano Ermon and Nate Kushman},
  year   = {2017},
  eprint = {1710.10766},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1710.10766}
}

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/1710.10766.svg)](https://codeofpaper.com/paper/1710.10766)

Discussion