NEURODIFF: Scalable Differential Verification of Neural Networks using Fine-Grained Approximation
Brandon Paulsen, Jingbo Wang, Jiawei Wang, Chao Wang
Abstract
As neural networks make their way into safety-critical systems, where misbehavior can lead to catastrophes, there is a growing interest in certifying the equivalence of two structurally similar neural networks - a problem known as differential verification. For example, compression techniques are often used in practice for deploying trained neural networks on computationally- and energy-constrained devices, which raises the question of how faithfully the compressed network mimics the original network. Unfortunately, existing methods either focus on verifying a single network or rely on loose approximations to prove the equivalence of two networks. Due to overly conservative approximation, differential verification lacks scalability in terms of both accuracy and computational cost. To overcome these problems, we propose NeuroDiff, a symbolic and fine-grained approximation technique that drastically increases the accuracy of differential verification on feed-forward ReLU networks while achieving many orders-of-magnitude speedup. NeuroDiff has two key contributions. The first one is new convex approximations that more accurately bound the difference of two networks under all possible inputs. The second one is judicious use of symbolic variables to represent neurons whose difference bounds have accumulated significant error. We find that these two techniques are complementary, i.e., when combined, the benefit is greater than the sum of their individual benefits. We have evaluated NeuroDiff on a variety of differential verification tasks. Our results show that NeuroDiff is up to 1000X faster and 5X more accurate than the state-of-the-art tool.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers17
- QVIP: An ILP-based Formal Verification Approach for Quantized Neural NetworksYedi Zhang, Zhe Zhao, Guangke Chen, Fu Song et al.ASE 2022 · 21 citations
- Incremental Verification of Neural NetworksShubham Ugare, Debangshu Banerjee, Sasa Misailovic, Gagandeep SinghPLDI 2023 · 19 citations
- QEBVerif: Quantization Error Bound Verification of Neural NetworksYedi Zhang, Fu Song, Jun SunCAV 2023 · 17 citations
- Shared Certificates for Neural Network VerificationMarc Fischer, Christian Sprecher, Dimitar I. Dimitrov, Gagandeep Singh et al.CAV 2022 · 15 citations
- Towards Practical Robustness Analysis for DNNs based on PAC-Model LearningRenjue Li, Pengfei Yang, Cheng-Chao Huang, Youcheng Sun et al.ICSE 2022 · 13 citations
Builds on5
- 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
- Automatically Evading Classifiers: A Case Study on PDF Malware ClassifiersWeilin Xu, Yanjun Qi, David EvansNDSS 2016 · 249 citations
- Quantitative Verification of Neural Networks and Its Security ApplicationsTeodora Baluta, Shiqi Shen, Shweta Shinde, Kuldeep S. Meel et al.CCS 2019 · 115 citations
Related papers
- ReluDiff: differential verification of deep neural networksBrandon Paulsen, Jingbo Wang, Chao WangICSE 2020 · 47 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
- Tightening Robustness Verification of Convolutional Neural Networks with Fine-Grained Linear ApproximationYiting Wu, Min ZhangAAAI 2021 · 23 citations
- Convex Hull Approximation for Activation FunctionsZhongkui Ma, Zihan Wang, Guangdong BaiOOPSLA 2025 · 2 citations
- Provably Tightest Linear Approximation for Robustness Verification of Sigmoid-like Neural NetworksZhaodi Zhang, Yiting Wu, Si Liu, Jing Liu et al.ASE 2022 · 11 citations
