Code Monkey home page Code Monkey logo

ag-x09 / defensive-approximation Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 2.36 MB

Implementation of our proposed defense strategy against adversarial attacks "Defensive Approximation (DA)"

Jupyter Notebook 87.03% Python 12.97%
approximate-computing approximate-multipliers adversarial-machine-learning adversarial-attacks defense-methods defensive-approximation approximate-convolution-layer approximate-fully-connected-layer approximate-cnn

defensive-approximation's Introduction

Defensive-Approximation

Implementation of our proposed defense strategy against adversarial attacks "Defensive Approximation (DA)"

A Pytorch code for our paper. It includes the implementation of:

  • Our proposed approximate multiplier (Ax-FPM)
  • Approximate convolution layer
  • Approximate fully connected layer
  • Tutorials on how to implement approximate CNN models

Note: for faster computation of convolution layers, we recommend using the Joblib Parallel tool (commented code in the approximate convolution layer) and Multiple Core CPU.

If you find this code useful in your research, please cite:

@inproceedings{10.1145/3445814.3446747,
author = {Guesmi, Amira and Alouani, Ihsen and Khasawneh, Khaled N. and Baklouti, Mouna and Frikha, Tarek and Abid, Mohamed and Abu-Ghazaleh, Nael},
title = {Defensive Approximation: Securing CNNs Using Approximate Computing},
year = {2021},
isbn = {9781450383172},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3445814.3446747},
doi = {10.1145/3445814.3446747},
booktitle = {Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems},
pages = {990โ€“1003},
numpages = {14},
keywords = {Deep neural network, adversarial example, approximate computing, security},
location = {Virtual, USA},
series = {ASPLOS 2021}}

defensive-approximation's People

Contributors

amiraguesmi-mls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.