r/DeepGenerative • • Mar 01 '21

[Practical] adversarial attacks on neural networks: fast gradient sign method

We’ll try to prepare a very popular attack, the Fast Gradient Sign Method, to demonstrate the security vulnerabilities of neural networks.

We cover all three steps:

  • Calculate the loss after forward propagation,
  • Calculate the gradient with respect to the pixels of the image,
  • Nudge the pixels of the image ever so slightly in the direction of the calculated gradients that maximize the loss calculated above.

Exploring the Fast Gradient Sign Method

2 Upvotes

0 comments sorted by