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

What is the difference between FGSM and BIM in the codes?(/FGSM seems to be an iterative method according to the codes) #69

Closed
chenweixin107 opened this issue Feb 4, 2021 · 1 comment

Comments

@chenweixin107
Copy link

I know that theoretically, FGSM is a one-step attack while BIM is an iterative attack.
BUT in the file /adversarialbox/attacks/gradient_method.py, the definition of Class FastGradientSignMethodTargetedAttack refers to (epsilon_steps=100,steps=10) while Class IterativeLeastLikelyClassMethodAttack refers to (steps=1000,epsilon_steps=1000).
And I wonder how to imply that FGSM is a one-step attack with (epsilon_steps=100,steps=10),instead of (epsilon_steps=1,steps=1)?
THX!

@chenweixin107
Copy link
Author

In the file gradient.py, there is a definition of Class FGSMSATTACK at the bottom which is the implementation of the one-step method--FGSM. However, the very first implementation of FGSM is actually an iterative version.

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

1 participant