arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.09943cs.LGcs.LOcs.SEstat.ML
收藏

NeuroDiff:基于细粒度近似的神经网络可扩展差分验证

NeuroDiff: Scalable Differential Verification of Neural Networks using Fine-Grained Approximation

University of Southern California(南加州大学)

Brandon Paulsen, Jingbo Wang, Jiawei Wang, Chao Wang

摘要:

随着神经网络进入安全关键系统,在这些系统中,不当行为可能导致灾难,证明两个结构相似的神经网络的等价性的兴趣越来越大。例如,压缩技术通常在实践中用于在计算和能量受限的设备上部署经训练的神经网络,这提出了压缩网络如何忠实地模仿原始网络的问题。不幸的是,现有的方法要么专注于验证单个网络,要么依赖于松散的近似来证明两个网络的等价性。由于过于保守的近似,差分验证在精度和计算成本方面缺乏可扩展性。为了克服这些问题,我们提出了NeuroDiff,这是一种符号化和细粒度的近似技术,可以大大提高差分验证的准确性,同时实现许多数量级的加速。NeuroDiff有两个关键贡献。第一个是新的凸近似,它可以更精确地约束两个网络在所有可能输入下的差异神经元。第二个是明智地使用符号变量来表示神经元的差异界积累了显着的错误。我们还发现这两种技术是互补的,即,合并后的福利大于其个人福利的总和。我们已经在各种差分验证任务上评估了NeuroDiff。我们的研究结果表明,NeuroDiff比最先进的工具快1000倍,准确度高5倍。

英文摘要:

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. 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 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 neurons 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 also 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.

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

↑