robustness icon indicating copy to clipboard operation
robustness copied to clipboard

What is fgsm function in corruptions.py file?

Open mirzaim opened this issue 2 years ago • 1 comments

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.

mirzaim avatar Apr 30 '23 11:04 mirzaim

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.

kkaiwwana avatar Sep 19 '24 07:09 kkaiwwana