arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.02781cs.LGcs.AI
收藏

QEBVerif:神经网络的量化误差界限验证

QEBVerif: Quantization Error Bound Verification of Neural Networks

ShanghaiTech University(上海科技大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Automotive Software Innovation Center(汽车软件创新中心);Singapore Management University(新加坡管理大学)

Yedi Zhang, Fu Song, Jun Sun

AI总结:

本文提出名为QEBVerif的量化误差界限验证方法,结合差分可达性分析与混合整数线性规划,对权重和激活张量均量化的神经网络进行可靠且完备的验证。

摘要:

为了缓解在边缘设备上部署深度神经网络(DNNs)的实际约束,量化被广泛认为是一种有前景的技术。它通过将DNN的权重和/或激活张量量化为低比特宽度的定点数,从而降低对计算能力和存储空间的资源需求,最终得到量化神经网络(QNNs)。尽管经验表明该方法会引入微小的精度损失,但DNN的关键验证属性一旦经过量化可能会变得无效。现有的验证方法要么关注于单个神经网络(DNN或QNN),要么关注于部分量化的量化误差界限。在本研究中,我们提出了一种名为QEBVerif的量化误差界限验证方法,其中权重和激活张量均被量化。QEBVerif包含两部分,即差分可达性分析(DRA)和基于混合整数线性规划(MILP)的验证方法。DRA在DNN及其量化对应网络之间逐层执行差异分析,以高效地计算出紧密的量化误差区间。如果DRA无法证明误差界限,则我们将该验证问题编码为等价的MILP问题,并可通过现成的求解器求解。因此,QEBVerif是可靠的、完备的,且具有合理的效率。我们实现了QEBVerif并进行了大量实验,展示了其有效性和效率。

英文摘要:

To alleviate the practical constraints for deploying deep neural networks (DNNs) on edge devices, quantization is widely regarded as one promising technique. It reduces the resource requirements for computational power and storage space by quantizing the weights and/or activation tensors of a DNN into lower bit-width fixed-point numbers, resulting in quantized neural networks (QNNs). While it has been empirically shown to introduce minor accuracy loss, critical verified properties of a DNN might become invalid once quantized. Existing verification methods focus on either individual neural networks (DNNs or QNNs) or quantization error bound for partial quantization. In this work, we propose a quantization error bound verification method, named QEBVerif, where both weights and activation tensors are quantized. QEBVerif consists of two parts, i.e., a differential reachability analysis (DRA) and a mixed-integer linear programming (MILP) based verification method. DRA performs difference analysis between the DNN and its quantized counterpart layer-by-layer to compute a tight quantization error interval efficiently. If DRA fails to prove the error bound, then we encode the verification problem into an equivalent MILP problem which can be solved by off-the-shelf solvers. Thus, QEBVerif is sound, complete, and reasonably efficient. We implement QEBVerif and conduct extensive experiments, showing its effectiveness and efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑