Git Product home page Git Product logo

Comments (6)

dtsip avatar dtsip commented on July 18, 2024

You are right, since valid pixel values are from 0 to 1, we clip the perturbation to that range at every step.

The value 8 that you are referring to corresponds to the CIFAR10 dataset where valid pixel values are from 0 to 255. So 8 is actually quite small.

Let me know if that does not make sense.

from mnist_challenge.

sjyjytu avatar sjyjytu commented on July 18, 2024

okay, thank you very much!

from mnist_challenge.

syf-fgnb avatar syf-fgnb commented on July 18, 2024

So why do you use epsilon=8/255 for CIFAR10 but epsilon=0.3 for MNIST rather than use epsilon=8/255 for both datasets? Does 0.3 for MNIST means 0.3/255? If not, why do you use such large epsilon (0.3>>8/255) on MNIST?

Please forgive me for such a stupid question. I'm a greenhand in this area.

from mnist_challenge.

dtsip avatar dtsip commented on July 18, 2024

We do use a different epsilon for each dataset---for MNIST we use 0.3/1 and for CIFAR10 8/255. The reason is that these datasets are quite different so the epsilon values that we can be robust to are also different. Specifically, MNIST consists of black-and-white images, so a perturbation of 0.3 cannot change a white pixel to black and vice-versa (which is why we are able to learn robust classifiers after all). In contrast, for CIFAR10, pixels lie in a wider range of values, while the image is 3-dimensional (RGB). As a result, the perturbation needed to actually change the class of an image is much smaller (in Figure 8 of https://arxiv.org/abs/1805.12152 you can see how perturbations of 0.125/1 on CIFAR10 completely change the content of the image).

from mnist_challenge.

syf-fgnb avatar syf-fgnb commented on July 18, 2024

I get it. Thank you very much!

from mnist_challenge.

Related Issues (16)

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.