Certified Quantization Strategy Synthesis for Neural Networks
Authors:
Open Access
- 11 September 2024
- book chapter
- Published by Springer Nature
- p. 343-362
Abstract
Quantization plays an important role in deploying neural networks on embedded, real-time systems with limited computing and storage resources (e.g., edge devices). It significantly reduces the model storage cost and improves inference efficiency by using fewer bits to represent the parameters. However, it was recently shown that critical properties may be broken after quantization, such as robustness and backdoor-freeness. In this work, we introduce the first method for synthesizing quantization strategies that verifiably maintain desired properties after quantization, leveraging a key insight that quantization leads to a data distribution shift in each layer. We propose to compute the preimage for each layer based on which the preceding layer is quantized, ensuring that the quantized reachable region of the preceding layer remains within the preimage. To tackle the challenge of computing the exact preimage, we propose an MILP-based method to compute its under-approximation. We implement our method into a tool and demonstrate its effectiveness and efficiency by providing certified quantization that successfully preserves model robustness and backdoor-freeness.Keywords
This publication has 39 references indexed in Scilit:
- QNNRepair: Quantized Neural Network Repair2023
- QEBVerif: Quantization Error Bound Verification of Neural Networks2023
- On Neural Network Equivalence Checking Using SMT Solvers2022
- Verifying Neural Networks Against Backdoor Attacks2022
- DiffRNN: Differential Verification of Recurrent Neural Networks2021
- BDD4BNN: A BDD-Based Quantitative Analysis Framework for Binarized Neural Networks2021
- An SMT-Based Approach for Verifying Binarized Neural Networks2021
- Improving Neural Network Verification through Spurious Region Guided Refinement2021
- How Many Bits Does it Take to Quantize Your Neural Network?2020
- LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networks2018