Skip to main content
QUICK REVIEW

[Paper Review] Efficient Exact Verification of Binarized Neural Networks

Kai Jia, Martin Rinard|arXiv (Cornell University)|May 7, 2020
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper proposes EEV, a system for efficient and exact verification of Binarized Neural Networks (BNNs) using a novel SAT solver that natively handles reified cardinality constraints in BNN encodings. By training BNNs with balanced sparsity and low cardinality bounds, EEV achieves exact verification up to 1,000 times faster than real-valued networks while maintaining comparable verifiable accuracy on MNIST and CIFAR10.

ABSTRACT

Concerned with the reliability of neural networks, researchers have developed verification techniques to prove their robustness. Most verifiers work with real-valued networks. 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.

Motivation & Objective

  • To address the scalability and floating-point error issues in exact verification of real-valued neural networks.
  • To enable exact and efficient verification of binarized neural networks (BNNs) by leveraging their discrete nature.
  • To develop a SAT solver optimized for reified cardinality constraints arising in BNN encodings.
  • To train BNNs that are more amenable to exact verification through balanced layer-wise sparsity and low cardinality bounds.
  • To demonstrate the first exact verification of nontrivial convolutional BNNs for L-infinity robustness on MNIST and CIFAR10.

Proposed method

  • Designing a novel SAT solver that natively supports reified cardinality constraints, which are common in BNN encodings.
  • Introducing training strategies that induce balanced layer-wise sparsity and low cardinality bounds to improve solver efficiency.
  • Adopting adaptive gradient cancellation during training to enhance the robustness and verifiability of BNNs.
  • Encoding BNNs into Boolean satisfiability problems using reified cardinality constraints for exact verification.
  • Using the SAT solver to perform complete and sound verification of L-infinity bounded adversarial robustness.
  • Validating the approach on convolutional BNNs trained on MNIST and CIFAR10 with exact verification of robustness.

Experimental results

Research questions

  • RQ1Can BNNs be verified exactly and efficiently using SAT-based methods, avoiding floating-point errors present in real-valued network verifiers?
  • RQ2How does the performance of exact verification for BNNs compare to that of real-valued networks in terms of speed and verifiable accuracy?
  • RQ3What training techniques can make BNNs more amenable to efficient and exact verification?
  • RQ4Can reified cardinality constraints in BNN encodings be natively handled by a SAT solver to improve verification performance?
  • RQ5What level of verifiable robustness can be achieved for nontrivial convolutional BNNs on standard datasets like MNIST and CIFAR10?

Key findings

  • EEV achieves exact verification of BNNs hundreds to thousands of times faster than exact verification of real-valued networks with the same architectures.
  • The system delivers comparable verifiable accuracy to real-valued networks on MNIST and CIFAR10, indicating that BNNs maintain robustness under exact verification.
  • The novel SAT solver significantly accelerates verification by natively handling reified cardinality constraints in BNN encodings.
  • Training BNNs with balanced layer-wise sparsity and low cardinality bounds improves verification efficiency without sacrificing robustness.
  • EEV demonstrates the first exact verification of L-infinity bounded adversarial robustness for nontrivial convolutional BNNs on MNIST and CIFAR10.
  • Adaptive gradient cancellation during training contributes to improved verifiability and robustness of the resulting BNNs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.