Giter VIP home page Giter VIP logo

causaladv's Introduction

CausalAdv:Adversarial Robustness through the lens of causality

Link to the Paper: Arxiv

Deep Neural Networks, though seemingly accurate, can be easily fooled by small, intentional changes in the input data called adversarial attacks.This highlights the need for robust models that maintain accuracy even under such attacks. Thus, the paper attempts to train the model on such adversarial examples in order to become resistant/robust against such manipulations in the data.

  • Tried running the code locally, added reqs and a README file as well.

Prerequisites

  • Python 3.10
  • GPU
  • Install necessary packages using pip install -r requirements.txt

  • Run the Following command:
python causaladv_utils.py

and

python causaladv.py
  • Initially, comment out lines 214-250 in causaladv.py, and uncomment line 213 (run the model from scratch) to obtain cifar10-adam_13-best.pth.
  • After model is trained, comment out line 213 and uncomment lines 214-250 to check model robustness.
  • In case of a CPU machine, run on Google Colab with runtime type: T4 GPU

causaladv's People

Contributors

siddhi-lipare avatar yonggangzhangustc avatar

Stargazers

Tom Marty avatar sunparu13 avatar  avatar  avatar  avatar Yichao Cai avatar OedoSoldier avatar Fuwa avatar lovelave avatar  avatar futawaseda avatar Canyu Chen avatar Chen Yao avatar Preben Monteiro Ness avatar Kanghoon Yoon avatar 范曹耘 avatar AlfaRomeo avatar  avatar Xingrui Yu avatar Sui Libin avatar Wenhao Ding avatar Polaris avatar Zhuo Huang avatar Zhuowei Chen avatar Kaiwen Yang avatar yellowtown avatar  avatar  avatar Zhanke Zhou avatar Anfeng He avatar Dixing (Dex) Xu avatar  avatar Wei Huang avatar  avatar Chengchao Xu avatar JiweiYang avatar Jianing Zhu avatar Andrew Chan avatar  avatar Zhenheng TANG 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.