Gradient-Based Adversarial Attacks: FGSM and its Extensions
This page provides study materials on adversarial examples: inputs with small, carefully crafted perturbations that fool machine learning models, such as a panda image that a model confidently classifies as a gibbon. The lecture shows how the gradients used to train a model can be turned around to learn adversarial noise, introduces the Fast Gradient Sign Method (FGSM) and the intuition for why the sign of the gradient suffices, and extends it to the iterative attacks BIM and PGD. It closes with adversarial training as a defense.
Watch the Lecture
Download the Lecture Slides
đź“„ Click the image to download the slides (PDF).
Listen to the Podcast
Using the lecture notes, I made an AI-generated podcast with NotebookLM for auditory learners.
Find Additional Study Materials
Papers Covered in the Lecture
- Introduction of adversarial examples: Intriguing properties of neural networks
- FGSM: Explaining and harnessing adversarial examples
- BIM: Adversarial examples in the physical world
- PGD: Towards Deep Learning Models Resistant to Adversarial Attacks
Other Learning Materials
- Lecture by Ian Goodfellow, one of the pioneers of adversarial attacks
- Code of common attacks in Foolbox; the gradient-based attacks from the lecture build on this base class
Going Further
- Practical Black-Box Attacks against Machine Learning: the first paper to show how to craft adversarial examples with only black-box access
- Robust Physical-World Attacks on Deep Learning Visual Classification: robust physical-world adversarial examples, e.g. stickers on stop signs that get them misclassified
- Synthesizing Robust Adversarial Examples: the first physical adversarial objects, e.g. a 3D-printed turtle that is classified as a rifle
- “Real Attackers Don’t Compute Gradients”: Bridging the Gap Between Adversarial ML Research and Practice: connects new attacks in research with practice, i.e., developers and the systems in which models are embedded