QVIP: An ILP-based Formal Verification Approach for Quantized Neural Networks
Yedi Zhang, Zhe Zhao, Guangke Chen, Fu Song, Min Zhang, Taolue Chen, Jun Sun
Abstract
Deep learning has become a promising programming paradigm in software development, owing to its surprising performance in solving many challenging tasks. Deep neural networks (DNNs) are increasingly being deployed in practice, but are limited on resource-constrained devices owing to their demand for computational power. Quantization has emerged as a promising technique to reduce the size of DNNs with comparable accuracy as their floating-point numbered counterparts. The resulting quantized neural networks (QNNs) can be implemented energy-efficiently. Similar to their floating-point numbered counterparts, quality assurance techniques for QNNs, such as testing and formal verification, are essential but are currently less explored. In this work, we propose a novel and efficient formal verification approach for QNNs. In particular, we are the first to propose an encoding that reduces the verification problem of QNNs into the solving of integer linear constraints, which can be solved using off-the-shelf solvers. Our encoding is both sound and complete. We demonstrate the application of our approach on local robustness verification and maximum robustness radius computation. We implement our approach in a prototype tool QVIP and conduct a thorough evaluation. Experimental results on QNNs with different quantization bits confirm the effectiveness and efficiency of our approach, e.g., two orders of magnitude faster and able to solve more verification tasks in the same time limit than the state-of-the-art methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Training Verification-Friendly Neural Networks via Neuron Behavior Consistency cites Who is Real Bob? Adversarial Attacks on Speaker Recognition Systems
- Training Verification-Friendly Neural Networks via Neuron Behavior Consistency cites QEBVerif: Quantization Error Bound Verification of Neural Networks
- Training Verification-Friendly Neural Networks via Neuron Behavior Consistency cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
- Who is Real Bob? Adversarial Attacks on Speaker Recognition Systems cites Towards Evaluating the Robustness of Neural Networks
- QEBVerif: Quantization Error Bound Verification of Neural Networks cites Towards Evaluating the Robustness of Neural Networks
- QEBVerif: Quantization Error Bound Verification of Neural Networks cites Who is Real Bob? Adversarial Attacks on Speaker Recognition Systems
- QEBVerif: Quantization Error Bound Verification of Neural Networks cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
- QEBVerif: Quantization Error Bound Verification of Neural Networks cites Formal Security Analysis of Neural Networks using Symbolic Intervals
- QEBVerif: Quantization Error Bound Verification of Neural Networks cites Verification of Deep Convolutional Neural Networks Using ImageStars
- AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation cites Towards Evaluating the Robustness of Neural Networks
- Certified Quantization Strategy Synthesis for Neural Networks cites QEBVerif: Quantization Error Bound Verification of Neural Networks
- Certified Quantization Strategy Synthesis for Neural Networks cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
- Quantization with Guaranteed Floating-Point Neural Network Classifications cites Verification of Bit-Flip Attacks against Quantized Neural Networks
- Formal Security Analysis of Neural Networks using Symbolic Intervals cites Towards Evaluating the Robustness of Neural Networks
- Formal Security Analysis of Neural Networks using Symbolic Intervals cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
- Verification of Bit-Flip Attacks against Quantized Neural Networks cites Who is Real Bob? Adversarial Attacks on Speaker Recognition Systems
- Verification of Bit-Flip Attacks against Quantized Neural Networks cites QEBVerif: Quantization Error Bound Verification of Neural Networks
- Verification of Bit-Flip Attacks against Quantized Neural Networks cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
- Verification of Bit-Flip Attacks against Quantized Neural Networks cites Certified Quantization Strategy Synthesis for Neural Networks
- Verification of Bit-Flip Attacks against Quantized Neural Networks cites Formal Security Analysis of Neural Networks using Symbolic Intervals
- Verification of Bit-Flip Attacks against Quantized Neural Networks cites Verification of Deep Convolutional Neural Networks Using ImageStars
- Verification of Deep Convolutional Neural Networks Using ImageStars cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
- Verification of Deep Convolutional Neural Networks Using ImageStars cites Formal Security Analysis of Neural Networks using Symbolic Intervals
Cited by top-tier papers7
- QEBVerif: Quantization Error Bound Verification of Neural NetworksYedi Zhang, Fu Song, Jun SunCAV 2023 · 17 citations
- Certified Quantization Strategy Synthesis for Neural NetworksYedi Zhang, Guangke Chen, Fu Song, Jun Sun et al.FM 2024 · 4 citations
- Verification of Bit-Flip Attacks against Quantized Neural NetworksYedi Zhang, Lei Huang, Pengfei Gao, Fu Song et al.OOPSLA 2025 · 4 citations
- Training Verification-Friendly Neural Networks via Neuron Behavior ConsistencyZongxin Liu, Zhe Zhao, Fu Song, Jun Sun et al.AAAI 2025 · 1 citation
- Quantization with Guaranteed Floating-Point Neural Network ClassificationsAnan Kabaha, Dana Drachsler-CohenOOPSLA 2025 · 1 citation
Builds on14
- Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
- AI2: Safety and Robustness Certification of Neural Networks with Abstract InterpretationTimon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov et al.S&P 2018 · 987 citations
- Formal Security Analysis of Neural Networks using Symbolic IntervalsShiqi Wang, Kexin Pei, Justin Whitehouse, Junfeng Yang et al.USENIX Security 2018 · 523 citations
- Who is Real Bob? Adversarial Attacks on Speaker Recognition SystemsGuangke Chen, Sen Chen, Lingling Fan, Xiaoning Du et al.S&P 2021 · 239 citations
- Verification of Deep Convolutional Neural Networks Using ImageStarsHoang-Dung Tran, Stanley Bak, Weiming Xiang, Taylor T. JohnsonCAV 2020 · 122 citations
Related papers
- BDD4BNN: A BDD-Based Quantitative Analysis Framework for Binarized Neural NetworksYedi Zhang, Zhe Zhao, Guangke Chen, Fu Song et al.CAV 2021 · 26 citations
- Towards Certificated Model Robustness Against Weight PerturbationsTsui-Wei Weng, Pu Zhao, Sijia Liu, Pin-Yu Chen et al.AAAI 2020 · 33 citations
- VNN: Verification-Friendly Neural Networks with Hard Robustness GuaranteesAnahita Baninajjar, Ahmed Rezine, Amir AminifarICML 2024 · 2 citations
- Scalable Quantitative Verification For Deep Neural NetworksTeodora Baluta, Zheng Leong Chua, Kuldeep S. Meel, Prateek SaxenaICSE 2021 · 39 citations
- A Tale of Two Approximations: Tightening Over-Approximation for DNN Robustness Verification via Under-ApproximationZhiyi Xue, Si Liu, Zhaodi Zhang, Yiting Wu et al.ISSTA 2023 · 5 citations
