Abstract
Deep Neural Networks (DNNs) are increasingly deployed in safety-critical applications, yet they remain vulnerable to adversarial perturbations. Existing robustness verification methods often struggle with a trade-off between computational scalability and precision. This paper introduces DeepPAC, a novel framework that bridges this gap by learning a "Probably Approximately Correct" (PAC) affine surrogate model of a DNN's local behavior. By solving a scenario optimization problem, DeepPAC provides a scalable, behavior-aware estimate of the local robustness radius. Our evaluation across MNIST, CIFAR-10, and ImageNet demonstrates that DeepPAC offers significantly tighter bounds than existing statistical methods and scales to massive architectures like ResNet50.
Introduction
The deployment of DNNs in domains such as autonomous driving requires rigorous safety guarantees. A primary concern is local robustness: the ability of a model to maintain its prediction under small, adversarial perturbations of an input. Current verification techniques generally fall into three categories: formal verification, which is precise but computationally prohibitive for large models; statistical methods, which are scalable but often overly optimistic; and adversarial attacks, which provide upper bounds but no safety guarantees. DeepPAC aims to provide a middle ground—a scalable method that remains aware of the model's internal behavior.
Methods
The core of DeepPAC is the learning of a PAC affine surrogate model. Instead of treating the DNN as a black box, DeepPAC approximates its local score function with a linear model that is "Probably Approximately Correct." This approach exploits the fact that DNNs using ReLU activations are piecewise linear and often behave like flat planes locally.
The workflow consists of three main stages:
- Sampling: The input space around a target image is randomly sampled.
- Learning via Scenario Optimization: A Linear Programming (LP) problem is solved to find an affine model that stays within a margin $\lambda$ of the true DNN scores for a high percentage of samples.
- Analysing: The simplicity of the affine model allows for trivial calculation of its maximum value, which, combined with the margin, determines the PAC-robustness of the original DNN.
To handle high-dimensional inputs like those in ImageNet, DeepPAC employs Stepwise Splitting and Focused Learning. These techniques iteratively refine the surrogate model on the most influential input dimensions (e.g., specific pixels), ensuring the analysis remains tractable for models with millions of parameters.
Results
DeepPAC was evaluated on 20 DNN models across MNIST, CIFAR-10, and ImageNet. A key finding is its superior precision compared to state-of-the-art statistical tools like PROVERO. While PROVERO often overestimates robustness by significant margins, DeepPAC provides much tighter and more realistic radii.
Furthermore, DeepPAC demonstrates remarkable scalability. It successfully analyzed ResNet50 on ImageNet, a model with approximately 37 million hidden neurons, which is currently beyond the reach of most formal verification tools like ERAN. The results consistently fall between the strict lower bounds of formal methods and the upper bounds of adversarial attacks, indicating a high degree of accuracy in estimating the ground truth robustness.
Conclusion
DeepPAC offers a practical and scalable approach to DNN robustness analysis by leveraging PAC learning and affine approximations. While it provides probabilistic rather than absolute guarantees, its precision and ability to handle large-scale models make it a valuable tool for safety-critical AI development. Future work will explore more complex surrogate models, such as quadratic functions, to further improve approximation accuracy in highly non-linear regions.
Summary updated