Giter VIP home page Giter VIP logo

Comments (3)

huanzhang12 avatar huanzhang12 commented on July 2, 2024

@JacksonZyy Can you provide an exact command and config file so we can try to replicate the problem?

from alpha-beta-crown.

JacksonZyy avatar JacksonZyy commented on July 2, 2024

Hi,

I used the previous version of your system like 3 months ago.
The execution command is:

conda activate alpha-beta-crown
cd complete_verifier
python robustness_verifier.py --config exp_configs/mnist_conv_small.yaml

where I simply modified your original robustness_verifier.py

  1. to load_model_onnx() (as defined in util.py), as I used the onnx model from ERAN website
  2. Only select the first 100 images from the ERAN dataset instead of all of them

The .ymal file is updated to be

general:
  mode: verified-acc
model:
  name: mnist_conv_small
  path: models/eran/mnist_convSmallRELU__Point.onnx
data:
  dataset: MNIST_ERAN
  std: [0.30810001492500305]
  mean: [0.1307000070810318]
specification:
  epsilon: 0.11
attack:
  pgd_restarts: 100
solver:
  beta-crown:
    batch_size: 2048
    iteration: 20
bab:
  timeout: 2000
  branching:
    reduceop: max

The system printout gives me:

number of correctly classified examples: 100
incorrectly classified idx (total 0): []
attack success idx (total 16): [6, 8, 9, 11, 18, 20, 24, 33, 38, 61, 62, 65, 66, 73, 78, 92]
attack_success rate: 0.16
verification success idx (total 39): [0, 1, 2, 3, 5, 10, 13, 14, 17, 23, 25, 27, 28, 30, 31, 32, 34, 37, 39, 51, 56, 57, 60, 64, 67, 68, 70, 71, 74, 75, 79, 81, 82, 85, 86, 88, 90, 91, 97]
verification failure idx (total 0): []
final verified acc: 84.0%[100]
verifier is called on 39 examples.
total verified: 84
mean time [total:100]: 2.4678870487213134
mean time [cnt:39] (excluding attack success): 5.120762268702189
mean time [cnt:55] (including attack success): 4.487067361311479

from alpha-beta-crown.

JacksonZyy avatar JacksonZyy commented on July 2, 2024

The timeout works fine with the new system, even though the version before Sep release doesn't work

from alpha-beta-crown.

Related Issues (20)

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.