基于SMT的模型检验的量化神经网络
Verifying Quantized Neural Networks using SMT-Based Model Checking
摘要:
人工神经网络(ANN)正被部署用于越来越多的安全关键型应用,包括自动驾驶汽车和医疗诊断。然而,由于其黑箱性质和对对抗攻击的明显脆弱性,人们对它们的可靠性提出了担忧。当人工神经网络部署在受限系统上时,这些问题被放大,这限制了数学运算的精度,从而引入了额外的量化误差。在这里,我们开发和评估一种新的符号验证框架,使用软件模型检验(SMC)和可满足性模理论(SMT)检查人工神经网络中的漏洞。更具体地说,我们提出了几个人工神经网络相关的优化SMC,包括通过区间分析,切片不变的推理,表达式简化,和离散化的非线性激活函数。有了这个验证框架,我们可以提供正式保证的安全行为的人工神经网络实现在浮点和定点运算。在这方面,我们的验证方法能够验证和产生对抗的例子,$52$测试用例跨越图像分类和一般的机器学习应用。此外,对于中小型ANN,我们的方法在几分钟内完成了大部分验证运行。此外,与大多数最先进的方法相比,我们的方法不限于关于激活函数和非量化表示的特定选择。我们的实验表明,我们的方法可以分析更大的ANN实现,并大大减少了验证时间相比,使用SMT解决的最先进的技术。
英文摘要:
Artificial Neural Networks (ANNs) are being deployed for an increasing number of safety-critical applications, including autonomous cars and medical diagnosis. However, concerns about their reliability have been raised due to their black-box nature and apparent fragility to adversarial attacks. These concerns are amplified when ANNs are deployed on restricted system, which limit the precision of mathematical operations and thus introduce additional quantization errors. Here, we develop and evaluate a novel symbolic verification framework using software model checking (SMC) and satisfiability modulo theories (SMT) to check for vulnerabilities in ANNs. More specifically, we propose several ANN-related optimizations for SMC, including invariant inference via interval analysis, slicing, expression simplifications, and discretization of non-linear activation functions. With this verification framework, we can provide formal guarantees on the safe behavior of ANNs implemented both in floating- and fixed-point arithmetic. In this regard, our verification approach was able to verify and produce adversarial examples for $52$ test cases spanning image classification and general machine learning applications. Furthermore, for small- to medium-sized ANN, our approach completes most of its verification runs in minutes. Moreover, in contrast to most state-of-the-art methods, our approach is not restricted to specific choices regarding activation functions and non-quantized representations. Our experiments show that our approach can analyze larger ANN implementations and substantially reduce the verification time compared to state-of-the-art techniques that use SMT solving.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。