Giter VIP home page Giter VIP logo

aad's Introduction

Defending Evasion Attacks via Adversarially Adaptive Training

This code replicates the experiments in the paper "Defending Evasion Attacks via Adversarially Adaptive Training", published at IEEE Big Data 2022 (paper)

Dependencies

In this project, we use python 3.7.0 and dependencies:

Note: In order to avoid conflicts between the dependencies from other projects, we highly recommend using python virtual environment or Anaconda. The details can be found here: https://docs.python.org/3/tutorial/venv.html

Source code

Structure

To work on our source code, you might want to modify the following files:

  • models.py Models that we used in AAD experiments.
  • aad_cnn.py Functions to train adversarially adaptive model with MNIST dataset.
  • aad_nn.py Functions to train adversarially adaptive model with COMPAS dataset.

To run the code aad_cnn.py and aad_nn.py, use terminal with these arguments:

`--lmd` Lambda value

`--gamma` Gamma value

`--seed` random seed

`--batch_size` batch size

`--meta_batch` number of meta batchs

`--lr` learning rate

`--gpu_id` gpu id for pytorch to use if available

`--epochs` number of training steps

`--model_name` name of the model to be saved
  • data_processor.py Classes and functions to build training and test data that used in our scenarios.
  • LR_baseline.py, CNN_pre_baseline.py and CNN_dec_baseline.py LR and CNN baselines in our experiments.
  • test_white_box.py Test AAD model on white box scenario.

Note

Due to file size limitation, we only include the source code for this project. The input data for this repo can be generated following the instructions in "Reproducibility_supplementary"
The full source code + data can be downloaded at downloaded at https://tinyurl.com/yxt5e869

aad's People

Contributors

minhhao97vn avatar

Watchers

 avatar

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.