Measuring Neural Net Robustness with Constraints
Osbert Bastani, Yani Ioannou, Leonidas Lampropoulos, Dimitrios Vytiniotis, Aditya Nori, Antonio Criminisi
TL;DR
This work tackles the lack of objective robustness measures for neural networks by defining pointwise robustness and two complementary statistics—adversarial frequency and adversarial severity—both parameterized by a threshold ε. It develops a tractable framework by encoding network behavior as linear constraints and restricting the search to convex regions where the network is linear, allowing an LP-based approximation of the nearest adversarial example. Empirical results on MNIST and CIFAR-10 show that the proposed LP-based estimator yields more reliable robustness assessments than prior approaches and that robustness improvements via data augmentation may overfit to specific adversarial algorithms. The study demonstrates both the practical feasibility of measuring robustness at scale and the nuanced behavior of robustness across architectures, highlighting the challenge of significantly boosting resilience in large networks while providing a roadmap for more robust evaluation and training workflows.
Abstract
Despite having high accuracy, neural nets have been shown to be susceptible to adversarial examples, where a small perturbation to an input can cause it to become mislabeled. We propose metrics for measuring the robustness of a neural net and devise a novel algorithm for approximating these metrics based on an encoding of robustness as a linear program. We show how our metrics can be used to evaluate the robustness of deep neural nets with experiments on the MNIST and CIFAR-10 datasets. Our algorithm generates more informative estimates of robustness metrics compared to estimates based on existing algorithms. Furthermore, we show how existing approaches to improving robustness "overfit" to adversarial examples generated using a specific algorithm. Finally, we show that our techniques can be used to additionally improve neural net robustness both according to the metrics that we propose, but also according to previously proposed metrics.
