F4 · Floor 4 · R&D Robotics Lab
Adversarial Examples: Blind Spot
A few pieces of tape turned a STOP sign into "SPEED 60". In this lesson you investigate the incident, reproduce the attack yourself, then fix it.
Adversarial Examples in brief
Adversarial examples are inputs changed slightly, often imperceptibly, so a model gets them wrong. Models learn statistical shortcuts, not human concepts, so small targeted changes to the right features can flip their decisions.
What you'll learn
- High test accuracy doesn't mean robust. A model can be 100% accurate and still fragile.
- With access to weights or gradients (white-box), attackers can compute the most effective changes. Black-box attackers can estimate them, or transfer attacks from a surrogate model.
- Hiding scores or adding preprocessing often only masks gradients, and adaptive attackers get around it.
- Adversarial training is the most dependable defense, but it raises the attacker's cost rather than making the model invulnerable.
- Physical-world attacks (stickers, patches, glasses) work against real perception systems, so safety-critical AI needs layered safeguards.
Why it matters
Researchers have fooled real road-sign classifiers with a few stickers, made people "invisible" to person detectors with printed patches, and tricked face recognition with specially patterned glasses frames.
FGSM, PGD and the robustness arms race
The classic Fast Gradient Sign Method nudges every pixel by ε in the direction of the loss gradient's sign. PGD repeats this in small steps, projecting back into the allowed perturbation set each time. Our tape attack is a discrete L0 cousin: change a few pixels by a lot rather than many pixels by a little.
Many published defenses were later broken by adaptive attacks. Careful evaluation (Carlini et al., "On Evaluating Adversarial Robustness") and benchmarks like RobustBench exist for that reason. Certified defenses such as randomized smoothing give provable guarantees within a radius.
For LLMs, the same idea shows up as optimised adversarial suffixes: strings of tokens that reliably jailbreak models and can transfer between models.