Skip to content

Exploring compression based defenses against adversarial attacks.

Notifications You must be signed in to change notification settings

Aelvangunduz/adversarial_attacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Adversarial Attacks

Adversarial attacks are types of malicious attacks that are aimed at making machine learning classifiers misclassify. The phenomenon was discovered by Szegedy et al. in 2014, and it continued to attract the interest of researchers ever since.

In the context of image classification, these attacks are in the form of adding non-random noise to the images to be classified.

This repository explores the attacks and applies JPEG and JPEG2000 compression techniques as a defensive tool. Further defenses will be added in the future and this repository will be updated accordingly. Initial choice of JPEG and JPEG2000 compression is based on this work

To generate the attacks, Cleverhans library is used. Most of the code in this repository is modified from NIPS Adversarial Attacks Tutorial in the Cleverhans library.

The code in this repository mainly uses the following libraries:

Note that for some of the code in this repository to work, PIL must be built from source with JPEG2000 support. In order to do this, OpenJPEG library version 2.1+ is needed. The instructions to build these libraries for Linux systems is given in the PIL and OpenJPEG documentations respectively. If you don't want to use JPEG2000 compression you need to comment out or remove JPEG2000 compression in the code. If you don't want to use JPEG2000, you can use PIL out-of-the-box.

The code in this repository uses Tensorflow as the deep learning framework. The code explicitly specifies the use of an Nvidia GPU. However, it could also be made to use a CPU as described in Tensorflow documentation.

For any questions or comments, please send an e-mail or send a tweet.

About

Exploring compression based defenses against adversarial attacks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages