Abstract
Evaluating the robustness of deep neural networks (DNNs) against adversarial attacks is a critical challenge in machine learning security. This paper presents two significant extensions to the CLEVER algorithm, a leading framework for estimating robustness bounds without requiring specific attack executions. By incorporating second-order Taylor expansions and Backward Pass Differentiable Approximation (BPDA), the authors improve the accuracy of robustness estimates for smooth networks and enable the evaluation of models employing gradient masking defenses. Experimental results on CIFAR-10 and ImageNet demonstrate that these extensions provide more refined bounds and successfully bypass obfuscated gradients to reveal a model's intrinsic security posture.
Introduction: The Challenge of Robustness Evaluation
Determining how a neural network behaves under adversarial perturbations typically involves two approaches: empirical attacks and formal verification. Empirical attacks, such as the Carlini-Wagner method, provide an upper bound on robustness by finding specific failure points. However, failing to find an attack does not guarantee safety. Conversely, formal verification offers a mathematical "gold standard" lower bound but is often computationally prohibitive for large-scale architectures like ImageNet.
The CLEVER score (Cross-Lipschitz Extreme Value for nEtwork Robustness) serves as a middle ground, using Extreme Value Theory (EVT) to estimate a lower bound on required distortion. Despite its utility, the original CLEVER algorithm relied solely on first-order gradient information and was susceptible to "gradient masking"—defensive techniques that hide gradients to thwart attacks without necessarily improving underlying robustness. This work addresses these limitations through second-order analysis and differentiable approximations.
Methodology
Second-Order CLEVER
The original CLEVER algorithm utilizes the local Lipschitz constant, representing the maximum rate of change of the gradient. This paper derives a new formal robustness guarantee for networks with twice-differentiable activation functions (e.g., tanh or sigmoid). By employing a second-order Taylor expansion, the authors use EVT to estimate the maximum subordinate norm of the Hessian matrix within a local region. This allows for a tighter, more refined estimate of the robustness bound $\epsilon$, particularly in regions where first-order approximations are overly conservative.
Handling Gradient Masking with BPDA
Gradient masking is a common defense strategy where non-differentiable components, such as JPEG compression or bit-depth reduction, are used to break gradient-based attacks. To counter this, the authors integrate Backward Pass Differentiable Approximation (BPDA). When CLEVER encounters a non-differentiable transformation $h(x)$, it treats it as an identity mapping during the backward pass. This enables the algorithm to "see through" the mask and evaluate the intrinsic robustness of the underlying model.
Experimental Results
Refined Bounds on CIFAR-10
The researchers evaluated the second-order extension on a 7-layer CNN with tanh activations using the CIFAR-10 dataset. The results indicate that second-order information provides a significantly more nuanced view of the loss landscape. For runner-up target classes, the second-order CLEVER score increased the estimated robustness bound for 82% of images compared to the first-order version, yielding an average improvement of 58%.
Scaling to ImageNet and Exposing Weak Defenses
To test scalability and the BPDA enhancement, the authors utilized a 121-layer DenseNet on ImageNet. The experiments confirmed that defenses like bit-depth reduction and JPEG compression do not materially increase a model's intrinsic robustness. As shown in the evaluation of various target classes, the robustness scores remained relatively stable or even decreased slightly when these transformations were applied, proving that CLEVER with BPDA can successfully bypass gradient masking to report true robustness levels.
Discussion and Conclusion
These extensions significantly broaden the applicability of the CLEVER algorithm. The second-order analysis provides tighter bounds for smooth networks, while BPDA ensures that robustness metrics remain reliable even in the presence of obfuscated gradients.
However, limitations remain. The second-order extension requires twice-differentiable functions, making it incompatible with standard ReLU networks unless smooth approximations like softplus are used. Additionally, while CLEVER is faster than formal verification, it remains an estimation based on sampling rather than a 100% mathematical guarantee. Future work may focus on reducing the computational cost of Hessian-related calculations to further scale these methods for even larger architectures.
Summary updated