Algebraic Robustness Verification of Neural Networks
Yulia Alexandr, Hao Duan, Guido Montúfar
TL;DR
The paper reframes robustness verification for neural networks as an algebraic distance-minimization problem onto the classifier's decision boundary and introduces the Euclidean Distance degree ($\mathrm{EDdegree}$) as an architecture-aware measure of verification complexity. It develops discriminants (the ED discriminant and the parameter discriminant) to classify test inputs and network parameters by problem hardness, and derives closed-form ED-degree formulas for shallow and certain deep architectures, along with expected real-ED-degree results (via Kac–Rice and NNGP frameworks). The authors also provide a practical, exact robustness certification pipeline based on numerical homotopy continuation, with an accompanying symbolic algorithm to compute discriminants and a publicly available implementation. This framework connects metric algebraic geometry with verification, enabling complexity-aware model design and principled certification beyond traditional relaxations. The approach has potential to guide architecture selection and regularization to reduce verification burden while offering provable guarantees through exact algebraic certificates.
Abstract
We formulate formal robustness verification of neural networks as an algebraic optimization problem. We leverage the Euclidean Distance (ED) degree, which is the generic number of complex critical points of the distance minimization problem to a classifier's decision boundary, as an architecture-dependent measure of the intrinsic complexity of robustness verification. To make this notion operational, we define the associated ED discriminant, which characterizes input points at which the number of real critical points changes, distinguishing test instances that are easier or harder to verify. We provide an explicit algorithm for computing this discriminant. We further introduce the parameter discriminant of a neural network, identifying parameters where the ED degree drops and the decision boundary exhibits reduced algebraic complexity. We derive closed-form expressions for the ED degree for several classes of neural architectures, as well as formulas for the expected number of real critical points in the infinite-width limit. Finally, we present an exact robustness certification algorithm based on numerical homotopy continuation, establishing a concrete link between metric algebraic geometry and neural network verification.
