Giter Site home page Giter Site logo

alessandrodepalma / expressive-losses Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 33 KB

Expressive Losses for Verified Robustness via Convex Combinations

Home Page: https://openreview.net/pdf?id=mzyZ4wzKlM

License: MIT License

Python 99.31% Shell 0.69%

expressive-losses's People

Contributors

alessandrodepalma avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

expressive-losses's Issues

Random Batch Norm Statistics?

Dear authors,

Congratulations on the publication!

As noted in the appendix F.2 and the comment below

# NOTE: when training, the bounding computation will use the batchnorm stats from the current clean batch

batch norm statistics are supposed to be set based on clean inputs. However,
model_ori.train()

here it sets the batch norm layers to train mode, followed by an evaluation of the model on the adversarial inputs.
adv_output = model(adv_data)

This means the adversarial inputs will reset the batch norm statistics.

In addition, it switches the batch norm layers to eval

model.eval()

before running PGD attack on it. This will change the network: the clean input is evaluated with batch statistics, while the attack is based on accumulated statistics, i.e., running mean and running var.

In conclusion, it seems that the network used for clean input (batch stat) is different from the attacked network (running stat), and the network used for IBP (running stat + adv stat) is different from both. Could you provide some explanations for this?

Best

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.