Provable Certificates for Adversarial Examples: Fitting a Ball in the Union of Polytopes

Matt Jordan, Justin Lewis, Alexandros G. Dimakis

Abstract

Deep neural networks are vulnerable to adversarial examples, necessitating robust verification methods. We present GeoCert, an algorithm that computes the exact distance to a network's decision boundary by treating the input space as a polyhedral complex. GeoCert provides anytime robustness certificates, offering valid lower bounds that tighten iteratively toward the exact value.

Introduction

The reliability of deep neural networks in safety-critical domains is often compromised by adversarial examples—minimal, often imperceptible perturbations that trigger misclassification. Establishing trust requires "provable certificates" of pointwise robustness: the minimum distance $\epsilon$ from a specific input $x_0$ to the nearest point where the model changes its prediction. While computing this exactly is an NP-complete problem, existing solutions are either computationally prohibitive (complete verifiers) or provide overly conservative bounds (incomplete verifiers). GeoCert bridges this gap by providing high-quality, tightening bounds within practical time constraints.

Methodology: A Geometric Approach

GeoCert's primary innovation lies in its geometric interpretation of ReLU-based neural networks.

Polyhedral Complexes

In networks using ReLU activations, the input space is partitioned into a collection of convex polytopes. Within each polytope, the network behaves as a simple linear function. The authors prove that these regions form a polyhedral complex—a specific geometric structure where polytopes meet only at their shared faces rather than overlapping arbitrarily.

Illustration of polyhedral complexes where polytopes meet at shared faces.

The GeoCert Algorithm

GeoCert frames the robustness problem as finding the largest $\ell_p$ ball centered at $x_0$ that fits within the union of polytopes associated with the correct classification. The algorithm performs a graph search over the facets of the polyhedral complex, starting from $x_0$ and moving outward.

The GeoCert algorithm and its iterative search process for finding the nearest decision boundary.

To optimize this search, GeoCert utilizes potential functions based on the network's Lipschitz constant, prioritizing directions more likely to contain the nearest decision boundary. Crucially, as the algorithm explores regions, the distance to the current "frontier" of unexplored regions serves as a provable lower bound that increases with every iteration, providing an "anytime" advantage over traditional solvers.

Experimental Evaluation

The researchers evaluated GeoCert using the MNIST dataset (handwritten digits) across two network architectures, 70NetBin and 40NetBin, for both binary and 10-class classification tasks.

Key Results

  • Exactness: GeoCert successfully computes the exact robustness for $\ell_2$ and $\ell_\infty$ norms, matching the results of heavy-duty Mixed Integer Programming (MIP) solvers.
  • Anytime Performance: In a head-to-head comparison with a 300-second time limit, GeoCert produced tighter lower bounds than both the incomplete "Fast-Lip" method and complete MIP solvers for all tested examples.
  • Adversarial Comparison: The authors showed that the "minimal" adversarial examples found by GeoCert were significantly closer to the original image (31.6% less distortion) than those found by popular attack methods like Carlini-Wagner.

Discussion and Insights

GeoCert shifts the paradigm from pure optimization to a structured graph search. While the theoretical number of polytopes could be exponential, empirical evidence suggests that for trained networks, the number of regions the algorithm needs to explore is surprisingly small.

However, scalability remains a challenge for high-dimensional models like ImageNet. Current implementations are also restricted to piecewise linear networks (e.g., ReLU). Future work will focus on optimizing search space pruning and extending the geometric framework to handle non-linear activations like Sigmoid or Tanh.

Conclusion

GeoCert provides a powerful framework for exact and anytime robustness verification. By leveraging the geometric structure of neural networks, it offers a practical path toward certifying the safety of deep learning models in real-world applications.

Summary updated

BibTeX
@inproceedings{jordan2019provable,
  author = {Matt Jordan and Justin Lewis and Alexandros G. Dimakis},
  title = {{Provable Certificates for Adversarial Examples: Fitting a Ball in the Union of Polytopes}},
  booktitle = {NeurIPS},
  year = {2019},
  url = {https://openreview.net/forum?id=J0OVlsDdioh},
}
Figure