Adversarial AI Lab

Attack small models with FGSM, PGD and C&W, and try poisoning, backdoors, defense, privacy and robustness evaluation in your browser, with real numbers.

30interactive experiments

Adversarial AI Lab

Backdoor / Trojan Lab

Trigger visualisation, Neural Cleanse detection, and pruning / fine-tuning mitigation.

  • 4Experiments
  • 3Lessons

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

backdoor

Backdoor attack (BadNets)

A small trigger t is stamped on some samples and labelled with a target class; the model learns to follow the trigger while clean accuracy stays normal.

Read the lesson
backdoor

Detection with Neural Cleanse

Reverse-engineers, for each class, the smallest trigger that turns any image into it; a class with a much smaller trigger is suspect.

Read the lesson
backdoor

Mitigation by fine-pruning

Prunes neurons dormant on clean data (which may carry the backdoor) then fine-tunes on a few clean samples.

Read the lesson

Experiments

My saved experiments