hendrycks / robustness

Corruption and Perturbation Robustness (ICLR 2019)
Apache License 2.0
1.02k stars 145 forks source link

What is fgsm function in corruptions.py file? #62

Open mirzaim opened 1 year ago

mirzaim commented 1 year ago

In the documentation of ImageNet-C Corruption Functions, There are 19 functions. But in the implementation, there is another function called fgsm that has a weird implementation. Anyone could explain it to me what is it?

Thanks.

kkaiwwana commented 1 month ago

fgsm stands for Fast-Gradient-Sign-Method, which is an optimization/updating method for white-box attack. It generates adversarail patterns based on gradient values (specifically, its sign, i.e. positive or negtive).

Hope you find it helpful if you still need it.