- Home
- Image Attacks Lab
- Data Poisoning Lab
- Evasion Attacks Lab
- Defense Lab
- LLM Red Teaming Lab
- Model Privacy Lab
- Backdoor / Trojan Lab
- Robustness Evaluation Lab
- My experiments
- Scientific references
- Glossary and FAQ
DeepFool: nearest decision boundary
Image Attacks Lab · Attack
Level 1: idea and analogy
The idea
Finds the smallest (L2) change that crosses the decision boundary by repeatedly linearising it.
Analogy
Measures the distance to the nearest wall of a room and moves perpendicular to it.
Level 2: how it works and when to use it
Steps
1) Linearise every class boundary. 2) Find the closest. 3) Move perpendicular to it with a small overshoot. 4) Repeat until the label flips.
When to use it
Measuring a per-image "robustness radius" and comparing models.
Strengths
Gives an estimate of the minimal distance to the boundary, a robustness measure without a fixed ε.
Level 3: mathematics, assumptions, limits
Mathematical form
r_i=\frac{|f_k(x_i)-f_{\hat k}(x_i)|}{\|\nabla f_k-\nabla f_{\hat k}\|_2^2}\,(\nabla f_k-\nabla f_{\hat k})Assumptions
A differentiable model; the L2 norm in the original version.
Limitations
Only an approximation (not necessarily the true minimum); cost grows with the number of classes.
Metrics
Mean ‖δ‖₂ over successful images, and iteration count.
Defenses
Adversarial training, smoothing and calibration.
Level 4: pitfalls and references for researchers
Common pitfalls
Treating the result as a proven lower bound (it is not); ignoring [0,1] clipping that changes the distance.
References
- Moosavi-Dezfooli, S.-M. et al. (2016). DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks. CVPR 2016. Link
