Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step size for snow and fog attacks #4

Open
hugemicrobe opened this issue May 20, 2020 · 1 comment
Open

Step size for snow and fog attacks #4

hugemicrobe opened this issue May 20, 2020 · 1 comment

Comments

@hugemicrobe
Copy link

In the paper, it's mentioned that step_size = bound / sqrt(iterations). But based on the output files, e.g.

analysis/calibrations/imagenet-100/fog.out
analysis/calibrations/imagenet-100/snow.out

The step sizes seem to be a constant 0.002236 no matter what bound is used. Are these the expected setup?

@yi-sun
Copy link
Collaborator

yi-sun commented Jun 16, 2020

Thanks for your interest in our work. Yes, this was an oversight in our paper. For Fog, Gabor, and Snow, the step size should be sqrt(0.001 / steps), since distortion size is controlled differently for these attacks. In particular, a perturbation is generated by optimizing parameters in a latent space of fixed size, scaled by distortion size epsilon, and then added to the original image. This means that the step_size should be independent of epsilon in this case. We have corrected this in the updated version of our paper at: https://arxiv.org/abs/1908.08016.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants