Abstract
We propose a novel method for computing exact pointwise robustness of deep neural networks for all convex $\ell_p$ norms. Our algorithm, GeoCert, finds the largest $\ell_p$ ball centered at an input point $x_0$, within which the output class of a given neural network with ReLU nonlinearities remains unchanged. We relate the problem of computing pointwise robustness of these networks to that of computing the maximum norm ball with a fixed center that can be contained in a non-convex polytope. This is a challenging problem in general, however we show that there exists an efficient algorithm to compute this for polyhedral complices. Further we show that piecewise linear neural networks partition the input space into a polyhedral complex. Our algorithm has the ability to almost immediately output a nontrivial lower bound to the pointwise robustness which is iteratively improved until it ultimately becomes tight. We empirically show that our approach generates distance lower bounds that are tighter compared to prior work, under moderate time constraints.
Introduction
Deep neural networks are notoriously fragile; small, imperceptible perturbations, known as adversarial examples, can flip a model's prediction. To trust these models in safety-critical applications, we need provable certificates—a guarantee that for a given input $x_0$, no change within a certain distance (the "pointwise robustness") will alter the output.
Computing this exact distance is NP-complete for ReLU networks. Existing solutions generally fall into two camps: complete verifiers, which use heavy-duty optimization like Mixed Integer Programming (MIP) to find exact distances but are slow, and incomplete verifiers, which use relaxations to find "safe" lower bounds quickly but often produce bounds too loose for practical use. GeoCert bridges this gap by providing an algorithm that is both exact and useful under tight time constraints.
Methodology: The Geometry of Robustness
The core insight of GeoCert is that Piecewise Linear Neural Networks (PLNNs)—networks using ReLU, max-pooling, or skip connections—partition the input space into a polyhedral complex. Within each "pane" or polytope of this complex, the network behaves as a simple linear function.
GeoCert treats the polyhedral complex as a graph where each polytope is a node and the boundaries (facets) between them are edges. The algorithm performs a Dijkstra-style search outward from the original input $x_0$:
- Geometric Search: It starts in the polytope containing $x_0$.
- Priority Queue: It explores the "closest" facets first using a priority queue.
- Boundary Detection: The search continues until it hits a facet that represents a decision boundary where the classification changes.
- Anytime Bounds: Because it explores from the center outward, the distance to the closest unexplored facet serves as a valid, provable lower bound that increases as the search progresses.
Experimental Evaluation
The authors evaluated GeoCert using the MNIST dataset on fully connected ReLU networks ("70NetBin" and "40NetBin"). Key findings include:
- Exactness: GeoCert successfully computes exact pointwise robustness, matching results from state-of-the-art MIP solvers.
- Superior Bounds under Time Pressure: In experiments with a 300-second limit, GeoCert consistently produced tighter lower bounds than both the fast "Fast-Lip" method and MIP solvers.
- Efficiency: While MIP solvers may reach the final exact answer faster in some cases, GeoCert is significantly faster at providing high-quality intermediate lower bounds.
- Norm Agnostic: Unlike many specialized verifiers, GeoCert handles any convex $\ell_p$ norm by simply adjusting the distance calculation to the facets.
Conclusion
GeoCert introduces a powerful geometric perspective to neural network verification. By leveraging the polyhedral complex structure of PLNNs, it provides an "anytime" algorithm that offers immediate utility and eventual exactness. While scalability to very large, high-dimensional networks remains a challenge due to the exponential growth of linear regions, future work focusing on search space pruning and implementation optimization holds promise for wider application.
Summary updated