一句话:首次将量化神经网络验证编码为整数线性约束,提出可靠且完备的QVIP方法,性能显著优于现有方法。
深度神经网络在资源受限设备上常需量化,形成量化神经网络(QNN),但其质量保证(如测试与形式化验证)仍较少研究。本文提出QVIP,一种面向QNN的高效形式化验证方法。核心创新是首次将QNN验证问题编码为整数线性约束(ILP)的求解,并证明该编码既可靠又完备,可借助现成求解器完成。作者将该方法应用于局部鲁棒性验证与最大鲁棒半径计算,并实现原型工具QVIP。实验在不同量化位宽的QNN上进行,结果表明其有效且高效:相比当前最优方法,速度提升约两个数量级,并在相同时间限制内解决更多验证任务。
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.
@inproceedings{paperbot7331,
title = {QVIP: An ILP-based Formal Verification Approach for Quantized Neural Networks},
author = {Yedi Zhang and Zhe Zhao and Guangke Chen and Fu Song and Min Zhang and Taolue Chen and Jun Sun},
booktitle = {ASE},
year = {2022},
doi = {10.1145/3551349.3556916}
}