Git Product home page Git Product logo

adversarial_ecoc_lwta's Introduction

Local Competition and Stochasticity for Adversarial Robustness

This repository contains the implementation code for "Local Competition and Stochasticity for Adversarial Robustness".

Considered Attacks and architectures

We consider the PGD, CW, BSA, additive uniform noise attacks, while we evaluate the confidence of the predictions of the model to a randomly constructed input. See the paper Error Correcting Output Codes Improve Probability Estimation and Adversarial Robustness of Deep Neural Networks for an analysis of the considered architectures for both standard and ensemble models.

Requirements

Use the provided yaml file to create a conda environment

conda env create -f adver_lwta.yml

Additionally install the bleeding edge version of the cleverhans package via

pip install git+https://github.com/tensorflow/cleverhans.git#egg=cleverhans

Run Commands

To train a model or multiple models, modify the train_model_auto.py file, thats is set the respective if statements for each model to True and run

python train_model_auto.py

To attack the trained models use

python attack_model_auto.py

References

We have used code from here and here

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.