Adversarial AI Lab

Adversarial AI Lab

Learn how AI models are fooled and how they are protected, through interactive experiments that run in your browser with real numbers: image attacks, poisoning, evasion, defense, privacy, backdoors and robustness evaluation.

  • 8Labs
  • 30Experiments
  • 25Lessons
  • 36Verified references

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.

The labs

Image Attacks Lab

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

Experiments
3
Lessons
5
Open the lab

Defense Lab

Adversarial training, preprocessing, detection, distillation, randomized smoothing and formal certificates.

Experiments
5
Lessons
5
Open the lab

LLM Red Teaming Lab

A transparent rule-based simulator for prompt injection, disclosure and tool misuse. It is not a real language model.

Experiments
3
Lessons
2
Open the lab

Model Privacy Lab

Membership inference, model inversion and differential privacy (DP-SGD) with a real ε accountant.

Experiments
3
Lessons
3
Open the lab

Models used

ModelSupportNote
Softmax regressionBrowserLinear model on 8×8 digits (64 inputs), trained in this project.
MLP (ReLU)BrowserA 64-48-10 ReLU network.
MLP (tanh)BrowserA 64-48-10 tanh network.
Small CNNBrowserA small convolutional network on 8×8 inputs.
Adversarially trained MLPBrowserAn MLP trained with PGD (Madry) for comparison.
ResNetNot supportedNot supported in the browser; needs the optional Python engine and licensed weights. Untested.
MobileNetNot supportedNot supported in the browser; needs the optional engine. Untested.
EfficientNetNot supportedNot supported in the browser; needs the optional engine. Untested.
Vision TransformerNot supportedNot supported in the browser; needs the optional engine. Untested.