Giter Club home page Giter Club logo

mnist-adversarial-examples's Introduction

Generating adversarial examples for MNIST

Done as coursework for Mathematics in Action (2016) at the University of Edinburgh.
See the report for results.

Reproducing results from Goodfellow, Ian J., Jonathon Shlens, and Christian Szegedy. "Explaining and harnessing adversarial examples." arXiv preprint arXiv:1412.6572 (2014).

Code based on Theano tutorials: https://github.com/Newmu/Theano-Tutorials

MNIST data from Yann LeCun's website: http://yann.lecun.com/exdb/mnist/

Usage

  1. To train the simple neural network, set TRAINING to True. The weights are then saved with cPickle and for following runs can be loaded from file by setting TRAINING back to False.
  2. The magnitude of adversarial noise added can be set as the eps parameter.

Comments

One thing to point out from the report is that once the L1 and L2 regularization were added to the model, they were tested on the adversarial examples generated from the network without them. I realized this only after submitting. Hence the results in the report do not directly show how regularized network handles its own adversarial examples. By running it again it seems that the correct results are:

Dataset Epsilon Accuracy
l1+l2 adversarial 0.10 79.36%
l1+l2 adversarial 0.25 76.30%

But I did these hastily and they do sound like a very good improvement, so perhaps check them before believing them.

mnist-adversarial-examples's People

Contributors

robertlacok avatar

Stargazers

 avatar Yuqing Wang avatar Joseph P. Robinson avatar D.N avatar Leo avatar 星博's Github avatar

Watchers

 avatar  avatar

mnist-adversarial-examples's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.