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

Really slow attacks with demo code #1

Open
renebidart opened this issue Oct 24, 2018 · 3 comments
Open

Really slow attacks with demo code #1

renebidart opened this issue Oct 24, 2018 · 3 comments

Comments

@renebidart
Copy link

I'm trying to run the demo in attacks.ipynb, but it is really slow, taking over 30 minutes to run the PointwiseAttack.

I'm using GPU and running the classification was quite fast, but I'm wondering if I may be doing something wrong, or is it normally like this?

Thanks

@wielandbrendel
Copy link
Member

@lukas-schott Could you take a look?

@jaks19
Copy link

jaks19 commented Nov 21, 2018

I am not using GPU but I am also thinking something might be wrong on my end if after 20min I still did not get the adversarial example.

Edit: got it after about 20 hours (just one example). Would be cool to know if this is normal time taken.

@lukas-schott
Copy link
Member

Yes, the pointwise attack is quite slow ~30 min / adversarial on a Titan X.

I implemented some speedups: switched to an attack which requires less iterations and changed the default model to an approximation of the ABS model (n_iter=10 instead of n_iter=50). It should now take ~1-5 min to create an adversarials on a GPU with the provided code.

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

4 participants