Efficient Exact Verification of Binarized Neural Networks

Kai Jia, Martin Rinard
5/7/2020
cs.AIcs.CVcs.LG

Official code: jia-kai/eevbnn (14 stars, Python, last commit 2022-06-30).

Abstract

Concerned with the reliability of neural networks, researchers have developed verification techniques to prove their robustness. Most verifiers work with real-valued networks.

Show full abstract

Unfortunately, the exact (complete and sound) verifiers face scalability challenges and provide no correctness guarantees due to floating point errors. We argue that Binarized Neural Networks (BNNs) provide comparable robustness and allow exact and significantly more efficient verification. We present a new system, EEV, for efficient and exact verification of BNNs. EEV consists of two parts: (i) a novel SAT solver that speeds up BNN verification by natively handling the reified cardinality constraints arising in BNN encodings; and (ii) strategies to train solver-friendly robust BNNs by inducing balanced layer-wise sparsity and low cardinality bounds, and adaptively cancelling the gradients. We demonstrate the effectiveness of EEV by presenting the first exact verification results for L-inf-bounded adversarial robustness of nontrivial convolutional BNNs on the MNIST and CIFAR10 datasets. Compared to exact verification of real-valued networks of the same architectures on the same tasks, EEV verifies BNNs hundreds to thousands of times faster, while delivering comparable verifiable accuracy in most cases.

View on arXivView PDF

Code Implementations(1)

jia-kai/eevbnnOfficial100%

Code for the NeurIPS 2020 paper Efficient Exact Verification of Binarized Neural Networks

143Python, CythonOct 10, 20204 years ago

Similar Papers

Cite this paper

@article{jia2020efficient,
  title  = {Efficient Exact Verification of Binarized Neural Networks},
  author = {Kai Jia and Martin Rinard},
  year   = {2020},
  eprint = {2005.03597},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.03597}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.03597.svg)](https://codeofpaper.com/paper/2005.03597)

Discussion