Verification of Binarized Neural Networks

10/09/2017
by   Chih-Hong Cheng, et al.
0

We study the problem of formal verification of Binarized Neural Networks (BNN), which have recently been proposed as a power-efficient alternative to more traditional learning networks. More precisely, given a trained BNN and a relation between possible inputs and outputs of this BNN, we develop verification procedures for establishing that the BNN indeed meets this specification for all possible inputs. For solving the verification problem of BNNs we build on well-known methods for hardware verification.The BNN verification problem is first encoded as a combinational miter. In a second step this miter is then transformed into a corresponding propositional satisfiability (SAT) problem. The main contributions of this paper are a number of essential optimizations for making this approach to BNN verification scalable. First, we provide a transformation on fully conntected BNNs for reducing the order of the number of bitwise operations in each layer of the BNN from quadratic to linear. Second, we are identifying redundant computations in a BNN based on optimal factoring techniques, and we provide transformations on BNNs for avoiding these multiple computations. We prove that the problem of optimal factoring is NP-hard, and we design efficient search procedures for generating approximate solutions of the optimal factoring problem. Third, we design a compositional verification procedure for analyzing each layer of a BNN separately, and for iteratively combining and refining local verification results. We experimentally demonstrate the scalability of our verification techniques to moderately-sized BNNs for embedded applications with thousands of neurons and inputs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/09/2017

Verification of Binarized Neural Networks via Inter-Neuron Factoring

We study the problem of formal verification of Binarized Neural Networks...
research
05/03/2023

Specification-Driven Neural Network Reduction for Scalable Formal Verification

Formal verification of neural networks is essential before their deploym...
research
04/09/2019

Towards Safety Verification of Direct Perception Neural Networks

We study the problem of safety verification of direct perception neural ...
research
09/15/2022

Neural Networks Reduction via Lumping

The increasing size of recently proposed Neural Networks makes it hard t...
research
02/02/2023

Provably Bounding Neural Network Preimages

Most work on the formal verification of neural networks has focused on b...
research
04/12/2019

Transforming opacity verification to nonblocking verification in modular systems

We consider the verification of current-state and K-step opacity for sys...
research
10/22/2021

On Enumerating Short Projected Models

Propositional model enumeration, or All-SAT, is the task to record all m...

Please sign up or login with your details

Forgot password? Click here to reset