Coder Social home page Coder Social logo

shashankkotyan / representationmetrics Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 489 KB

This github repository contains the official code for the paper, "Representation Quality Explains Adversarial Attacks"

Home Page: https://arxiv.org/abs/1906.06627

License: MIT License

Python 99.70% Shell 0.30%
paper robustness adversarial-attacks representation deep-learning deep-neural-networks neural-network adversarial-machine-learning zero-shot-learning representational-metrics

representationmetrics's Introduction

Representation Metrics

This GitHub repository contains the official code for the paper,

Transferability of features for neural networks links to adversarial attacks and defences
Shashank Kotyan, Moe Matsuki and Danilo Vasconcellos Vargas
PLOS One (2022).

Citation

If this work helps your research and/or project in anyway, please cite:

@article{kotyan2022transferability,
  title={Transferability of features for neural networks links to adversarial attacks and defences},
  author={Kotyan, Shashank and Matsuki, Moe and Vargas, Danilo Vasconcellos},
  journal={PloS one},
  volume={17},
  number={4},
  pages={e0266060},
  year={2022},
  publisher={Public Library of Science San Francisco, CA USA}
}

Testing Environment

The code is tested on Ubuntu 18.04.3 with Python 3.7.4.

Getting Started

Requirements

To run the code in the tutorial locally, it is recommended,

  • a dedicated GPU suitable for running, and
  • install Anaconda.

The following python packages are required to run the code.

  • matplotlib==3.1.1
  • numpy==1.17.2
  • seaborn==0.9.0
  • tensorflow==2.1.0

Steps

  1. Clone the repository.
git clone https://github.com/shashankkotyan/RepresentationMetrics.git
cd ./RepresentationMetrics
  1. Create a virtual environment
conda create --name rm python=3.7.4
conda activate rm
  1. Install the python packages in requirements.txt if you don't have them already.
pip install -r ./requirements.txt
  1. Train and evaluate a normal or a Raw Zero-Shot classifier.
python -u code/run.py [ARGS] > run.txt

Arguments for run_model.py

TBD

Notes

  • To evaluate the DBI and AM metrics with the adversarial examples. Please generate the adversarial examples using the repository Dual Quality Assessment

Milestones

  • Tutorials
  • Addition of Comments in the Code
  • Cross Platform Compatibility
  • Description of Method in Readme File

License

Representation Metrics is licensed under the MIT license. Contributors agree to license their contributions under the MIT license.

Contributors and Acknowledgements

TBD

Reaching out

You can reach me at [email protected] or @shashankkotyan. If you tweet about Representation Metrics, please use the following tag #raw_zero_shot, and/or mention me (@shashankkotyan) in the tweet. For bug reports, questions, and suggestions, use Github issues.

representationmetrics's People

Contributors

shashankkotyan avatar

Stargazers

 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.