Code Monkey home page Code Monkey logo

jumprelu's People

Contributors

erichson avatar tianjunz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

goosang-yu

jumprelu's Issues

How to reproduce the results in the paper

For reproducing the results in the paper, I tried to run the white box attack on AlexNet:

python attack_WhiteBox.py --eps 0.01 --test-batch-size 500 --arch AlexLike --resume cifar10_result/AlexLike_baseline.pkl --dataset cifar10 --iter 7 --iter_df 7 --runs 1 --jump  0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8

which is specified in the trian_protocol.md
However, when jump=0.4, I got results like (I have set iter_tr to 1000)

+--------------+------------+---------+--------------+----------+---------+
|              | Clean Data |  IFGSM  | DeepFool_inf | DeepFool |    TR   |
+--------------+------------+---------+--------------+----------+---------+
|  Accuracy:   |   0.8832   |  0.1293 |     0.0      |   0.0    |  0.0005 |
| Rel. Noise:  |    0.0     | 0.01453 |   0.06617    | 0.07672  | 0.01547 |
| Abs. Noise:  |    0.0     | 0.03598 |    0.1619    | 4.76095  | 0.99368 |
+--------------+------------+---------+--------------+----------+---------+

which is quite different from the result in the paper. From table 2(B) in the paper, the result should be something like:

                    Clean Data |  IFGSM  | DeepFool_inf | DeepFool |    TR   |
JumpReLU (Base)       87.52% |   18.56%  |  (9.80%) | (10.6%) |    (1.7%)   |

The accuracy of DeepFool_inf in the paper is 9.80%, however I got 0%.
Did I do anything wrong? How to correctly reproduce the result in the paper?

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.