Attack small models with FGSM, PGD and C&W, and try poisoning, backdoors, defense, privacy and robustness evaluation in your browser, with real numbers.
- 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
Randomized smoothing and certified robustness
Defense Lab · Defense
Level 1: idea and analogy
The idea
Turns any classifier into a smoothed one by voting under Gaussian noise, and proves an L2 radius in which the label cannot change.
Analogy
Ask hundreds of noisy "witnesses" and take the majority; a landslide majority survives a small change.
Level 2: how it works and when to use it
Steps
1) Train with noise σ. 2) Pick the top class from n0 samples. 3) Compute the Clopper–Pearson lower bound on pA from n samples. 4) Radius = σΦ⁻¹(pA) or abstain.
When to use it
When a guarantee is needed rather than an empirical test.
Strengths
A mathematical guarantee that scales to large architectures (in the original paper).
Level 3: mathematics, assumptions, limits
Mathematical form
g(x)=\arg\max_c\Pr_{\epsilon\sim\mathcal N(0,\sigma^2I)}[f(x+\epsilon)=c],\quad R=\sigma\,\Phi^{-1}(\underline{p_A})Assumptions
Independent samples; the certificate is probabilistic (failure ≤ α) and concerns the smoothed classifier.
Limitations
High inference cost (many samples), a small L2 radius compared with human perception, and abstention on many images.
Metrics
Certified accuracy at radius r, abstention rate and mean radius.
Defenses
Noise training, combined with adversarial training.
Level 4: pitfalls and references for researchers
Common pitfalls
Confusing "certified" with "correct"; forgetting that the guarantee is L2 not L∞; using few samples that weaken the bound.
References
- Cohen, J. M.; Rosenfeld, E.; Kolter, J. Z. (2019). Certified Adversarial Robustness via Randomized Smoothing. ICML 2019. Link
