01 — The principle
Pixel changes can alter the predicted category
An adversarial example is an input deliberately changed to fool a model. It may still look very similar to the original. Change can be limited by counting altered pixels (L0), measuring the overall difference between image values (L2), or bounding the maximum change in a pixel value (L∞).
A targeted attack seeks a particular answer; an untargeted attack seeks any error. In white-box conditions, the attacker knows the architecture and parameters. In black-box conditions, access is limited. An image made to fool one model can also fool another: adversarial transfer.
02 — Two methods
FGSM uses one step; PGD repeats adjustments
The Fast Gradient Sign Method, or FGSM, uses the gradient to identify how pixels can be changed to increase error. Its single step makes it a fast, inexpensive initial test.
Projected Gradient Descent, or PGD, makes repeated adjustments. After each one, it brings the image back within the permitted limits. This search generally finds stronger attacks and complements the first test.
03 — Learned cues
A predictive cue can still be fragile
A network may use textures or details that carry little meaning for a person but are useful in its training data. My cognitive science master’s dissertation at Grenoble INP examines high spatial frequencies, which correspond to fine image detail.
Different architectures can learn similar fragile cues, helping explain attack transfer. Average accuracy on familiar images therefore describes only part of the behavior that needs evaluation.
04 — Defenses and my simulations
A defense must face an attack that accounts for how it works
The dissertation compares four approaches: transforming an image before analysis, detecting attacks, making gradients difficult to exploit, and training on attacked images. Adversarial training adds attacked examples to the learning data, at an additional computational cost. Making gradients hard to use can hinder an attack without removing the vulnerability: an attack adapted to the defense may still succeed.
In the master’s dissertation simulations, inhibiting supposedly fragile neurons did not improve performance. Transfer from frequency-filtered adversarial examples increased accuracy against PGD on unfiltered images from about 13.6% to 59.1%. A limited dataset, no statistical test and the need for black-box evaluation restrict the result’s scope.