Scalable Verification of Quantized Neural Networks
Thomas A. Henzinger, Mathias Lechner, Dorde Zikelic
Abstract
Formal verification of neural networks is an active topic of research, and recent advances have significantly increased the size of the networks that verification tools can handle. However, most methods are designed for verification of an idealized model of the actual network which works over real arithmetic and ignores rounding imprecisions. This idealization is in stark contrast to network quantization, which is a technique that trades numerical precision for computational efficiency and is, therefore, often applied in practice. Neglecting rounding errors of such low-bit quantized neural networks has been shown to lead to wrong conclusions about the network's correctness. Thus, the desired approach for verifying quantized neural networks would be one that takes these rounding errors into account. In this paper, we show that verifying the bit-exact implementation of quantized neural networks with bit-vector specifications is PSPACE-hard, even though verifying idealized real-valued networks and satisfiability of bit-vector specifications alone are each in NP. Furthermore, we explore several practical heuristics toward closing the complexity gap between idealized and bit-exact verification. In particular, we propose three techniques for making SMT-based verification of quantized neural networks more scalable. Our experiments demonstrate that our proposed methods allow a speedup of up to three orders of magnitude over existing approaches.
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.
11 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
- QEBVerif: Quantization Error Bound Verification of Neural Networks cites BDD4BNN: A BDD-Based Quantitative Analysis Framework for Binarized Neural Networks
- 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 QVIP: An ILP-based Formal Verification Approach for Quantized Neural Networks
- Stability Verification in Stochastic Control Systems via Neural Network Supermartingales cites Infinite Time Horizon Safety of Bayesian Neural Networks
- QVIP: An ILP-based Formal Verification Approach for Quantized Neural Networks cites Formal Security Analysis of Neural Networks using Symbolic Intervals
- Neural termination analysis cites Stability Verification in Stochastic Control Systems via Neural Network Supermartingales
Cited by top-tier papers11
- BDD4BNN: A BDD-Based Quantitative Analysis Framework for Binarized Neural NetworksYedi Zhang, Zhe Zhao, Guangke Chen, Fu Song et al.CAV 2021 · 26 citations
- QVIP: An ILP-based Formal Verification Approach for Quantized Neural NetworksYedi Zhang, Zhe Zhao, Guangke Chen, Fu Song et al.ASE 2022 · 21 citations
- Infinite Time Horizon Safety of Bayesian Neural NetworksMathias Lechner, Dorde Zikelic, Krishnendu Chatterjee, Thomas A. HenzingerNeurIPS 2021 · 20 citations
- QEBVerif: Quantization Error Bound Verification of Neural NetworksYedi Zhang, Fu Song, Jun SunCAV 2023 · 17 citations
- Neural termination analysisMirco Giacobbe, Daniel Kroening, Julian ParsertFSE 2022 · 16 citations
Builds on2
- Formal Security Analysis of Neural Networks using Symbolic IntervalsShiqi Wang, Kexin Pei, Justin Whitehouse, Junfeng Yang et al.USENIX Security 2018 · 523 citations
- Stability Verification in Stochastic Control Systems via Neural Network SupermartingalesMathias Lechner, Dorde Zikelic, Krishnendu Chatterjee, Thomas A. HenzingerAAAI 2022 · 45 citations
Related papers
- Efficient Exact Verification of Binarized Neural NetworksKai Jia, Martin C. RinardNeurIPS 2020 · 70 citations
- Verification of Bit-Flip Attacks against Quantized Neural NetworksYedi Zhang, Lei Huang, Pengfei Gao, Fu Song et al.OOPSLA 2025 · 4 citations
- Quantization with Guaranteed Floating-Point Neural Network ClassificationsAnan Kabaha, Dana Drachsler-CohenOOPSLA 2025 · 1 citation
- Verifying Properties of Binary Neural Networks Using Sparse Polynomial OptimizationJianting Yang, Srecko Ðurasinovic, Jean B. Lasserre, Victor Magron et al.ICLR 2025
- SART: Sign-Absolute Reformulation Theory for Binary Variable Reduction in Neural Network VerificationJin Xu, Miaomiao Zhang, Bowen DuOOPSLA 2026
