Reference. PRIMA: General and Precise Neural Network Certification via Scalable Convex Hull Approximations

Formal verification of neural networks is critical for their safe adoption in real-world applications. However, designing a precise and scalable verifier which can handle different activation functions, realistic network architectures and relevant specifications remains an open and difficult challenge. In this paper, we take a major step forward in addressing this challenge and present a new verification framework, called PRIMA. PRIMA is both (i) general: it handles any non-linear activation function, and (ii) precise: it computes precise convex abstractions involving multiple neurons via novel convex hull approximation algorithms that leverage concepts from computational geometry. The algorithms have polynomial complexity, yield fewer constraints, and minimize precision loss. We evaluate the effectiveness of PRIMA on a variety of challenging tasks from prior work. Our results show that PRIMA is significantly more precise than the state-of-the-art, verifying robustness to input perturbations for up to 20%, 30%, and 34% more images than existing work on ReLU-, Sigmoid-, and Tanh-based networks, respectively. Further, PRIMA enables, for the first time, the precise verification of a realistic neural network for autonomous driving within a few minutes.

Cite

Cite as @mullerPRIMAGeneralPrecise2022 (helia, typst) · \cite{mullerPRIMAGeneralPrecise2022} (LaTeX)
BibTeX
bibtex · 20 lines
@article{mullerPRIMAGeneralPrecise2022,
 title = {{{PRIMA}}: {{General}} and {{Precise Neural Network Certification}} via {{Scalable Convex Hull Approximations}}},
 author = {Müller, Mark Niklas and Makarchuk, Gleb and Singh, Gagandeep and Püschel, Markus and Vechev, Martin},
 date = {2022-01-16},
 doi = {10.1145/3498704},
 url = {http://arxiv.org/abs/2103.03638},
 urldate = {2024-02-09},
 journaltitle = {Proceedings of the ACM on Programming Languages},
 volume = {6},
 pages = {1--33},
 keywords = {Computer Science - Artificial Intelligence,Computer Science - Machine Learning},
 issue = {POPL},
 abstract = {Formal verification of neural networks is critical for their safe adoption in real-world applications. However, designing a precise and scalable verifier which can handle different activation functions, realistic network architectures and relevant specifications remains an open and difficult challenge. In this paper, we take a major step forward in addressing this challenge and present a new verification framework, called PRIMA. PRIMA is both (i) general: it handles any non-linear activation function, and (ii) precise: it computes precise convex abstractions involving multiple neurons via novel convex hull approximation algorithms that leverage concepts from computational geometry. The algorithms have polynomial complexity, yield fewer constraints, and minimize precision loss. We evaluate the effectiveness of PRIMA on a variety of challenging tasks from prior work. Our results show that PRIMA is significantly more precise than the state-of-the-art, verifying robustness to input perturbations for up to 20\%, 30\%, and 34\% more images than existing work on ReLU-, Sigmoid-, and Tanh-based networks, respectively. Further, PRIMA enables, for the first time, the precise verification of a realistic neural network for autonomous driving within a few minutes.},
 issn = {2475-1421},
 eprintclass = {cs},
 eprinttype = {arXiv},
 eprint = {2103.03638},
 shortjournal = {Proc. ACM Program. Lang.},
 shorttitle = {{{PRIMA}}}
}
hayagriva YAML (typst)
yaml · 26 lines
mullerPRIMAGeneralPrecise2022:
  type: article
  title:
    value: '{PRIMA}: {General} and {Precise Neural Network Certification} via {Scalable Convex Hull Approximations}'
    short: '{PRIMA}'
  author:
  - Müller, Mark Niklas
  - Makarchuk, Gleb
  - Singh, Gagandeep
  - Püschel, Markus
  - Vechev, Martin
  date: 2022-01-16
  page-range: 1-33
  url:
    value: http://arxiv.org/abs/2103.03638
    date: 2024-02-09
  serial-number:
    arxiv: '2103.03638'
    doi: 10.1145/3498704
    issn: 2475-1421
  abstract: 'Formal verification of neural networks is critical for their safe adoption in real-world applications. However, designing a precise and scalable verifier which can handle different activation functions, realistic network architectures and relevant specifications remains an open and difficult challenge. In this paper, we take a major step forward in addressing this challenge and present a new verification framework, called PRIMA. PRIMA is both (i) general: it handles any non-linear activation function, and (ii) precise: it computes precise convex abstractions involving multiple neurons via novel convex hull approximation algorithms that leverage concepts from computational geometry. The algorithms have polynomial complexity, yield fewer constraints, and minimize precision loss. We evaluate the effectiveness of PRIMA on a variety of challenging tasks from prior work. Our results show that PRIMA is significantly more precise than the state-of-the-art, verifying robustness to input perturbations for up to 20%, 30%, and 34% more images than existing work on ReLU-, Sigmoid-, and Tanh-based networks, respectively. Further, PRIMA enables, for the first time, the precise verification of a realistic neural network for autonomous driving within a few minutes.'
  parent:
    type: periodical
    title: Proceedings of the ACM on Programming Languages
    issue: POPL
    volume: 6
Cited by (1)

Architecture-Preserving Provable Repair of Deep Neural Networks taoArchitecturePreservingProvableRepair2023

Deep neural networks (DNNs) are becoming increasingly important components of software, and are considered the state-of-the-art solution for a number of problems, such as image recognition. However, DNNs are far from infallible, and incorrect behavior of DNNs can have disastrous real-world consequences. This paper addresses the problem of architecture-preserving V-polytope provable repair of DNNs. A V-polytope defines a convex bounded polytope using its vertex representation. V-polytope provable repair guarantees that the repaired DNN satisfies the given specification on the infinite set of points in the given V-polytope. An architecture-preserving repair only modifies the parameters of the DNN, without modifying its architecture. The repair has the flexibility to modify multiple layers of the DNN, and runs in polynomial time. It supports DNNs with activation functions that have some linear pieces, as well as fully-connected, convolutional, pooling and residual layers. To the best our knowledge, this is the first provable repair approach that has all of these features. We implement our approach in a tool called APRNN. Using MNIST, ImageNet, and ACAS Xu DNNs, we show that it has better efficiency, scalability, and generalization compared to PRDNN and REASSURE, prior provable repair methods that are not architecture preserving. CCS Concepts: • Computing methodologies → Neural networks; • Theory of computation → Linear programming; • Software and its engineering → Software post-development issues.
PDF · DOI · pldb
Cites 70 works (0 here)
External (70)
mullerPRIMAGeneralPrecise2022 reference entries/refs/mullerPRIMAGeneralPrecise2022/mullerPRIMAGeneralPrecise2022.hel