Fast and Effective Robustness Certification

Gagandeep Singh, Timon Gehr, Matthew Mirman, Markus Püschel, Martin T. Vechev

The Challenge of Adversarial Fragility

Deep neural networks are notoriously fragile. Small, imperceptible perturbations to an input—known as adversarial attacks—can trick a high-performing model into making confident, incorrect predictions. To safely deploy these models in critical domains like autonomous driving or medical diagnosis, we need robustness certification: a mathematical guarantee that no perturbation within a specific range (e.g., an $L_\infty$ ball) can alter the model's output.

Existing certification methods face a "Goldilocks" problem:

  1. Complete verifiers (like SMT solvers) are perfectly precise but fail to scale to modern, large-scale networks.
  2. Incomplete verifiers scale better but are often too imprecise, failing to prove robustness even when the network is actually safe.

Furthermore, many existing tools only support ReLU activations and simple feedforward architectures, leaving networks with Sigmoid, Tanh, and Residual (ResNet) connections largely unsupported.

To bridge this gap, researchers introduce DeepZ, a new system for certifying the robustness of neural networks using the power of abstract interpretation. By introducing optimized, area-minimizing "transformers" for common activation functions, DeepZ achieves state-of-the-art precision and scalability.

Methodology: Abstract Interpretation with Zonotopes

DeepZ builds on the framework of Abstract Interpretation, specifically utilizing the Zonotope abstract domain.

  • The Zonotope Advantage: A zonotope is a centrally symmetric polytope that can represent sets of values. It is particularly effective for neural networks because it handles affine transformations (like matrix multiplications) exactly and efficiently.
  • Novel Abstract Transformers: The core contribution of DeepZ is the design of new "transformers" for non-linear functions (ReLU, Sigmoid, and Tanh). The authors treat the activation function as a geometry problem in a 2D input-output plane. They derive linear relaxations that minimize the area of the resulting zonotope projection. This minimization directly translates to tighter bounds and higher verification precision.
Area-minimizing linear relaxation for an S-shaped activation function (e.g., Sigmoid or Tanh).
  • Floating-Point Soundness: Unlike many theoretical verifiers, DeepZ is designed to be sound with respect to actual floating-point arithmetic. It accounts for rounding errors and non-associativity in computer math, ensuring that the "proof" holds up on real hardware.
  • Architectural Support: DeepZ is designed to handle not just standard feedforward layers, but also convolutional and residual (skip) connections.

Key Insights

  • Geometry as Precision: The precision of a verifier is intrinsically tied to the area of the abstract shape it produces. By mathematically finding the slope ($\lambda$) that minimizes the area of the zonotope projection for S-shaped functions and ReLUs, DeepZ creates a best-in-class approximation.
  • Point-wise Efficiency: These transformers are applied "point-wise" (per-neuron). This keeps the computational complexity linear relative to the number of noise symbols, allowing the tool to remain fast even as networks get deeper.

Key Results

The authors evaluated DeepZ using standard computer vision benchmarks, including MNIST and CIFAR10, testing a wide range of models from small fully connected networks to large CNNs and residual networks.

  • Unprecedented Scale: DeepZ successfully verified a network with 88,500 hidden units in an average of 133 seconds. For context, many competing tools struggle with networks a fraction of that size.
  • High Precision: On a large MNIST network under an $L_\infty$ attack ($\epsilon = 0.1$), DeepZ achieved a 97% verification accuracy.
  • Speedup: Compared to Fast-Lin (a previous state-of-the-art incomplete verifier), DeepZ is up to 2.5x faster while maintaining equal or better precision.
Comparison of verified robustness and verification time on an MNIST network. DeepZ matches the precision of Fast-Lin while being significantly faster.
  • Versatility: DeepZ is the first zonotope-based system to provide optimized support for Sigmoid and Tanh activations, which are common in many specialized neural architectures.

Limitations and Future Work

While DeepZ pushes the boundaries of scalable certification, it has a few limitations:

  • Incompleteness: DeepZ is still an "incomplete" verifier. If it fails to prove a network is robust, it doesn't necessarily mean an adversarial example exists; it might just mean the abstraction was too coarse.
  • Dependency on Training: The best certification results are achieved on networks that were already trained to be robust (e.g., via adversarial training). On standard, undefended networks, verifiable robustness drops significantly as the noise ($\epsilon$) increases.
  • Activation Scope: While it covers the most popular activations, introducing new or exotic activation functions would require the derivation of new area-minimal transformers to maintain DeepZ's performance edge.

Summary updated

BibTeX
@inproceedings{singh2018fast,
  author = {Gagandeep Singh and Timon Gehr and Matthew Mirman and Markus Püschel and Martin T. Vechev},
  title = {{Fast and Effective Robustness Certification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure