Adversarial AI Lab

Image Attacks Lab

FGSM, PGD, DeepFool, C&W, BIM and the adversarial patch: tiny changes that flip a model's decision.

  • 3Experiments
  • 5Lessons

The experiments use 8×8 handwritten-digit images and small models trained in this project; they do not replace testing your production model. The numbers are real and computed in your browser, but do not generalise automatically to larger models.

Lessons

Attack

FGSM: Fast Gradient Sign Method

A one-step attack that moves every pixel by ε in the direction that raises the loss.

Read the lesson
Attack

PGD: Projected Gradient Descent

Repeats small FGSM steps and projects back onto the ε-ball after each, usually from a random start.

Read the lesson
Attack

DeepFool: nearest decision boundary

Finds the smallest (L2) change that crosses the decision boundary by repeatedly linearising it.

Read the lesson
Attack

Carlini & Wagner (C&W) attack

Solves an optimisation that balances a small perturbation against fooling the model, using logits not probabilities.

Read the lesson
Attack

Adversarial 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

Experiments

My saved experiments