fra31 / auto-attack

Code relative to "Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks"
https://arxiv.org/abs/2003.01690
MIT License
639 stars 111 forks source link

About `n_iter`, to align with others #106

Closed userElaina closed 2 months ago

userElaina commented 3 months ago

Hi! Thank you for your work and code!

In this algorithm, the number of iterations is "free". To align with other algorithms (like PGD, CW), I want to modify the number of iterations in this algorithm.

Is there any guide for that?

Or, I tried editing n_iter=xxx directly in autoattack/autoattack.py (commit d2551ea in my fork). Will this seriously break the algorithm?

ScarlettChan commented 3 months ago

您好,您的邮件已收到!

fra31 commented 3 months ago

Hi,

your solution should work fine. If you (largely) change the number of queries in Square Attack, you might want to set resc_schedule=True. Please note the performance might vary if you significantly reduce the number of iterations (especially for the black-box Square Attack).

userElaina commented 3 months ago

OK, thank you for your reply.

ScarlettChan commented 2 months ago

您好,您的邮件已收到!