Image Attacks Lab
FGSM, PGD, DeepFool, C&W, BIM and the adversarial patch: tiny changes that flip a model's decision.
- 3Experiments
- 5Lessons
Lessons
FGSM: Fast Gradient Sign Method
A one-step attack that moves every pixel by ε in the direction that raises the loss.
Read the lessonPGD: Projected Gradient Descent
Repeats small FGSM steps and projects back onto the ε-ball after each, usually from a random start.
Read the lessonDeepFool: nearest decision boundary
Finds the smallest (L2) change that crosses the decision boundary by repeatedly linearising it.
Read the lessonCarlini & Wagner (C&W) attack
Solves an optimisation that balances a small perturbation against fooling the model, using logits not probabilities.
Read the lessonAdversarial patch
A small visible patch pasted into any scene that pushes the model to a target class: "universal" rather than image-specific.
Read the lesson