ViTViz: Vision Transformer Adversarial Attack & Attention Visualization Tool

Execute adversarial attacks and visualize how attention evolves

Select Model

Or choose a sample image:


Attack Configuration

Attack Type

PGD/MIM/TGR: iterative | FGSM: single-step | SAGA variants: gradient × attention

0 1
0 0.1
1 100

Attack Result

🎯
No attack executed yet
Configure the attack parameters above and click "Execute Full Analysis" to start. Results will appear here including prediction comparison, perturbation metrics, and attack success status.

Attention Evolution During the Attack

Compare the original image (left) with the attack iterations (right)

Visualization Controls

Mode
0 1
0 11
0 15

Select Attack Iteration to View

0 10

Overlay attention map on images

Original Image

Adversarial Image (Iteration)