QEBVerif: Quantization Error Bound Verification of Neural Networks
Authors:
Open Access
- 18 July 2023
- book chapter
- Published by Springer Nature
- p. 413-437
Abstract
To alleviate the practical constraints for deploying deep neural networks (DNNs) on edge devices, quantization is widely regarded as one promising technique. It reduces the resource requirements for computational power and storage space by quantizing the weights and/or activation tensors of a DNN into lower bit-width fixed-point numbers, resulting in quantized neural networks (QNNs). While it has been empirically shown to introduce minor accuracy loss, critical verified properties of a DNN might become invalid once quantized. Existing verification methods focus on either individual neural networks (DNNs or QNNs) or quantization error bound for partial quantization. In this work, we propose a quantization error bound verification method, named , where both weights and activation tensors are quantized. consists of two parts, i.e., a differential reachability analysis (DRA) and a mixed-integer linear programming (MILP) based verification method. DRA performs difference analysis between the DNN and its quantized counterpart layer-by-layer to compute a tight quantization error interval efficiently. If DRA fails to prove the error bound, then we encode the verification problem into an equivalent MILP problem which can be solved by off-the-shelf solvers. Thus, is sound, complete, and reasonably efficient. We implement and conduct extensive experiments, showing its effectiveness and efficiency.Keywords
All Related Versions
This publication has 53 references indexed in Scilit:
- DeepXplore2017
- Formal Verification of Piece-Wise Linear Feed-Forward Neural Networks2017
- Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks2017
- Safety Verification of Deep Neural Networks2017
- Towards Evaluating the Robustness of Neural Networks2017
- Large-Scale Video Classification with Convolutional Neural Networks2014
- Deep Neural Networks for Acoustic Modeling in Speech Recognition: The Shared Views of Four Research GroupsIEEE Signal Processing Magazine, 2012
- An Abstraction-Refinement Approach to Verification of Artificial Neural Networks2010
- An efficient query learning algorithm for ordered binary decision diagramsInformation and Computation, 2005
- Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints1977