论文标题

Neurodiff:使用细粒度近似的神经网络的可扩展差异验证

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

论文作者

Paulsen, Brandon, Wang, Jingbo, Wang, Jiawei, Wang, Chao

论文摘要

随着神经网络进入安全至关重要的系统,不当行为可能导致灾难,人们对证明两个结构相似的神经网络的等效性越来越兴趣。例如,压缩技术通常用于实践中,用于在计算和能量受限的设备上部署训练有素的神经网络,这提出了一个问题,即压缩网络模拟了原始网络的忠诚度。不幸的是,现有方法要么着重于验证单个网络,要么依靠松动的近似值来证明两个网络的等效性。由于过度保守的近似,差异验证在准确性和计算成本方面都缺乏可扩展性。为了克服这些问题,我们提出了一种神经介质,这是一种符号且细粒度的近似技术,可大大提高差分验证的准确性,同时达到许多速度的速度。 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.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源