FGSM (Fast Gradient Sign Method) is a technique for creating inputs that make a model misclassify (adversarial examples) by adding small noise that is almost invisible to the human eye. It was proposed by Goodfellow, Shlens, and Szegedy in 2014 and presented at ICLR 2015.
The method takes only the "sign" of the gradient of the loss with respect to the input and shifts every pixel by the same amount in the direction that increases the loss.
Here, is the original input, is its label, is the model's weights, is the loss used for training (cross-entropy for classification), and is the gradient of the loss with respect to the input . is a function that returns for positive values and for negative values. is the upper bound on the size of the shift and is chosen by hand.
Computing the gradient takes only one pass of backpropagation, so, as the name says, adversarial examples can be created fast. The earlier method (the L-BFGS-based method of Szegedy et al., 2014) had to solve an optimization problem for each input and was slow.
In the paper, an image that GoogLeNet trained on ImageNet classified as "panda" with 57.7% confidence was classified as "gibbon" with 99.3% confidence after FGSM noise with was added, even though it looked unchanged. This corresponds to one brightness step of an 8-bit image.

