Skip to main content
QUICK REVIEW

[论文解读] Fully Automatic Neural Network Reduction for Formal Verification

Tobias Ladner, Matthias Althoff|arXiv (Cornell University)|May 3, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 3
一句话总结

该论文提出了一种完全自动化的、基于规格的神经网络压缩方法,在运行时验证过程中保守地合并输出相似的神经元,从而实现对大型神经网络的可扩展形式化验证。通过利用区间算法计算输出边界,并将神经元动态分组到基于容差的桶中,该方法可将网络压缩至原始大小的5%以下,同时在ReLU、Sigmoid和Tanh激活函数下保持形式化验证的保证。

ABSTRACT

Formal verification of neural networks is essential before their deployment in safety-critical applications. However, existing methods for formally verifying neural networks are not yet scalable enough to handle practical problems under strict time constraints. We address this challenge by introducing a fully automatic and sound reduction of neural networks using reachability analysis. The soundness ensures that the verification of the reduced network entails the verification of the original network. Our sound reduction approach is applicable to neural networks with any type of element-wise activation function, such as ReLU, sigmoid, and tanh. The network reduction is computed on the fly while simultaneously verifying the original network and its specification. All parameters are automatically tuned to minimize the network size without compromising verifiability. We further show the applicability of our approach to convolutional neural networks by explicitly exploiting similar neighboring pixels. Our evaluation shows that our approach reduces large neural networks to a fraction of the original number of neurons and thus shortens the verification time to a similar degree.

研究动机与目标

  • 为解决安全关键应用中形式化神经网络验证的可扩展性限制。
  • 开发一种保守的压缩技术,以保持原始网络的形式化验证保证。
  • 实现在验证过程中动态压缩,最大限度减少计算开销。
  • 支持广泛的激活函数,包括ReLU、Sigmoid和Tanh。
  • 基于输入特定的神经元相似性动态调整合并桶,提升压缩效率。

提出的方法

  • 该方法使用区间算法计算非线性层中神经元的输出边界,并向前投影至下一个非线性层。
  • 根据神经元的输出边界和用户定义的容差δ,将神经元分组到动态或静态合并桶中。
  • 同一桶内的神经元被合并为单个代表性神经元,保守地近似原始网络的行为。
  • 压缩过程在验证过程中动态构建,确保最小的运行时开销。
  • 该方法与现有验证引擎正交,可与基于集合的方法(如zonotopes、Taylor模型和多项式zonotopes)集成。
  • 动态桶的创建根据输入特定的神经元相似性自适应调整,尤其在图像数据中表现优异,因为相邻像素产生的输出具有相似性。

实验结果

研究问题

  • RQ1能否开发一种保守的神经网络压缩技术,以保持原始网络的形式化验证保证?
  • RQ2如何在不进行预处理或微调的情况下,在验证过程中动态执行神经元合并?
  • RQ3在保持多种激活函数下形式正确性的前提下,网络规模最多可压缩到何种程度?
  • RQ4基于输入特定输出相似性的动态分桶方法,相比静态方法在多大程度上提升了压缩效率?
  • RQ5该方法能否扩展至大型、高维网络,如图像分类中使用的网络(例如CIFAR-10、MNIST)?

主要发现

  • 所提出的方法在多个基准测试中(包括MNIST和CIFAR-10)将神经网络压缩至原始神经元数量的5%以下。
  • 当δ ≥ 0.01时,验证时间减少三倍或以上,85%的图像在原始时间的三分之一以内完成验证。
  • 动态合并桶的创建显著提升了压缩性能,尤其在图像网络中表现突出,因空间相邻的神经元输出相似。
  • 即使在大型网络上,该方法也实现了极高的压缩率,例如在Cifar2020基准中,最多可移除75%的神经元,同时保持正确性。
  • 输出集合的过度近似仅略有增加,因为其严格受合并过程中使用的容差δ限制。
  • 该方法在多种激活函数(包括ReLU、Sigmoid和Tanh)上均表现有效,并与多种验证引擎(如zonotopes和Taylor模型)兼容。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。