[Paper Review] Gradient Masking Causes CLEVER to Overestimate Adversarial Perturbation Size
This paper demonstrates that CLEVER, a method proposed to estimate lower bounds on adversarial robustness, fails due to gradient masking—commonly caused by numerical precision limits in digital systems. Even when models are not robust, CLEVER overestimates their robustness because it cannot detect non-Lipschitz behavior induced by finite-precision computation, rendering it ineffective as a reliable robustness metric.
A key problem in research on adversarial examples is that vulnerability to adversarial examples is usually measured by running attack algorithms. Because the attack algorithms are not optimal, the attack algorithms are prone to overestimating the size of perturbation needed to fool the target model. In other words, the attack-based methodology provides an upper-bound on the size of a perturbation that will fool the model, but security guarantees require a lower bound. CLEVER is a proposed scoring method to estimate a lower bound. Unfortunately, an estimate of a bound is not a bound. In this report, we show that gradient masking, a common problem that causes attack methodologies to provide only a very loose upper bound, causes CLEVER to overestimate the size of perturbation needed to fool the model. In other words, CLEVER does not resolve the key problem with the attack-based methodology, because it fails to provide a lower bound.
Motivation & Objective
- To investigate whether CLEVER, a proposed method for estimating lower bounds on adversarial robustness, reliably measures model vulnerability.
- To identify how gradient masking—especially due to finite-precision computation—distorts CLEVER’s estimates.
- To demonstrate that CLEVER can incorrectly conclude a model is robust when it is not, due to numerical artifacts in gradient observation.
- To show that CLEVER inherits the same fundamental flaw as attack-based methods: it cannot provide a true lower bound on adversarial perturbation size.
Proposed method
- Proposes a theoretical counterexample using a neural network with a quantized input function (staircase function) that has zero gradient almost everywhere, causing CLEVER to observe no gradient and infer constant behavior.
- Introduces a Lipschitz-continuous approximation of the staircase function using linear ramps of width δ, which preserves model behavior but makes gradient observation increasingly unlikely as δ → 0.
- Analyzes the impact of finite-precision computation on CLEVER, showing that numerical saturation (e.g., sigmoid units rounding to zero) can mask gradients and mislead CLEVER into overestimating robustness.
- Demonstrates that CLEVER lacks detection mechanisms for when its underlying assumptions (Lipschitz continuity) are violated in practice due to numerical errors.
- Uses measure-theoretic reasoning to show that with high probability, CLEVER will observe zero gradient on such approximated functions, leading to false robustness estimates.
- Argues that CLEVER is vulnerable to the same gradient masking issues as attack-based methods, undermining its role as a reliable lower-bound estimator.
Experimental results
Research questions
- RQ1Can CLEVER reliably estimate a lower bound on the size of adversarial perturbations required to fool a model?
- RQ2How does gradient masking due to finite-precision computation affect CLEVER’s estimation of model robustness?
- RQ3Does CLEVER fail to detect non-Lipschitz behavior introduced by numerical approximations in digital systems?
- RQ4Can a model with high true vulnerability be incorrectly assessed as robust by CLEVER due to gradient masking?
- RQ5To what extent does CLEVER inherit the limitations of attack-based robustness evaluation methods?
Key findings
- CLEVER can overestimate model robustness by concluding a model is constant when it is not, due to observing zero gradients in regions where the true gradient is large.
- Even with unlimited precision, CLEVER fails on non-Lipschitz functions like staircase mappings, which can be approximated by Lipschitz-continuous functions with arbitrarily small gradient observation probability.
- In practice, finite-precision computation causes CLEVER to misestimate robustness due to numerical saturation of activation functions, such as sigmoid units rounding gradients to zero.
- The probability of observing a non-zero gradient in CLEVER’s sampling drops to near zero as the width δ of the Lipschitz approximation decreases, leading to false robustness conclusions.
- CLEVER lacks mechanisms to detect when its assumptions are violated by numerical artifacts, leading to silent failures where high scores do not reflect actual robustness.
- Because CLEVER is vulnerable to the same gradient masking issues as attack-based methods, it fails to provide a valid lower bound on adversarial perturbation size.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.