GithubHelp home page GithubHelp logo

r320_vonenet's Introduction

FGSM_MNIST

We're trying to make model better which is robust against to adversarial images, especially made by FGSM. Yann LeCun's MNIST datasets are used.

We're inspired by this tutorial.

Fine-tune modeling

  1. train model with original MNIST datasets (learning rate == 0.001)
  2. get adversarial images of MNIST from trained model
  3. fine-tune model with adversarial images. learning rate is 0.0001 (it may be modified)
  4. validate with validation set 100 epochs each models
  5. results saved as a plot

A function named
generate_image_adversarial(args) is just interpretation of tensorflow code to pytorch code

Results

red line : accuracy of original MNIST imagess of fine-tuned model
blue line : accuracy of adversarial MNIST images of fine-tuned model

  1. Result of none VOneNet finetuned

    RubberDuck

  2. Result of VOneNet finetuned

    RubberDuck

fine-tunning harms None-VOneNet models's prediction of original data.

But VOnetNet models are robust to fine-tunning

Requirements

  • python 3.8+
  • pytorch 0.4.1+
  • numpy
  • tqdm

License

MIT License

trained model

Name Description
1-layer-linear-classifier really simple model
3-layer-linear-classifier add two layer to 1-layer simple model
Convnet simple convolutional model

Report

This browser does not support PDFs. Please download the PDF to view it: Download PDF.

Longer Motivation

  1. VOneNet maybe boosts performance. So we're considering how apply this model to VOneNet

r320_vonenet's People

Contributors

comeeasy avatar woosook0127 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

broiron

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.