Secure Systems Group
Menu×

Wiki Home

Gradient masking

Definition

Gradient masking (also called obfuscated gradients) is a failure mode of adversarial defenses: the defense makes the model’s loss gradients flat, noisy, or unavailable, so gradient-based attacks stop finding adversarial examples, while the worst-case loss stays high. The model looks robust under the attacks used to evaluate it and remains vulnerable to attacks that do not need useful gradients. Telltale signs: transfer attacks succeed where white-box attacks fail, gradient-free attacks succeed where gradient-based ones fail, or a model appears more robust against a stronger threat model than a weaker one. Single-step adversarial training is a classic source of masking: the model learns to defeat the one gradient step it was trained against rather than to lower the worst-case loss.

Papers that use this concept

See also