
软件学报 ISSN 1000-9825, CODEN RUXUEW E-mail: jos@iscas.ac.cn
Journal of Software, [doi: 10.13328/j.cnki.jos.006585] http://www.jos.org.cn
©中国科学院软件研究所版权所有. Tel: +86-10-62562563
基于多路径回溯的神经网络验证方法
∗
郑
烨
1
,
施晓牧
1
,
刘嘉祥
1
1
(深圳大学 计算机与软件学院,广东 深圳 518060)
通讯作者: 刘嘉祥, E-mail: jiaxiang0924@gmail.com
摘 要: 基于线性抽象的符号传播方法在神经网络验证中具有重要地位.针对这类方法,本文提出多路径回溯的
概念.现有方法可看作仅使用单条回溯路径计算每个神经网络节点的上下界,是这一概念的特例.使用多条回溯路径
可以有效改善这类方法的精度.我们在数据集 ACAS Xu, MNIST 和 CIFAR10 上将多路径回溯方法与使用单条回溯
路径的 DeepPoly 进行定量比较,结果表明多路径回溯方法能够获得明显的精度提升,而仅引入较小的额外时间代
价.此外我们在数据集 MNIST 上将多路径回溯方法与使用全局优化的 Optimized LiRPA 比较,结果表明我们的方法
仍然具有精度优势.
关键词: 神经网络验证;符号传播;抽象解释;多路径回溯
中图法分类号: TP311
中文引用格式: 郑烨,施晓牧,刘嘉祥.基于多路径回溯的神经网络验证方法.软件学报. http://www.jos.org.cn/1000-9825/ 6585.htm
英文引用格式: Zheng Y, Liu JX, Shi XM. Multi-path Back-propagation for Neural Network Verification. Ruan Jian Xue Bao/Journal
of Software, 2022 (in Chinese). http://www.jos.org.cn/1000-9825/6585.htm
Multi-path Back-propagation for Neural Network Verification
ZHENG Ye
1
, SHI Xiao-Mu
1
, LIU Jia-Xiang
1
1
(College of Computer Science and Software Engineering, Shenzhen University, Shenzhen 518060, China)
Abstract: Symbolic propagation methods based on linear abstraction play a significant role in neural network verification. In this paper, we
propose the notion of multi-path back-propagation for these methods. Existing methods are viewed as using only a single back-propagation path
to calculate the upper and lower bounds of each node in a given neural network, being specific instances of our proposed notion. Leveraging
multiple back-propagation paths effectively improves the accuracy of this kind of method. For evaluation, we quantitatively compare our method
using multiple back-propagation paths with the state-of-the-art tool DeepPoly on benchmarks ACAS Xu, MNIST, and CIFAR10. The experiment
results show that our method achieves significant accuracy improvement while introducing only a low extra time cost. In addition, we compare
the multi-path back-propagation method with the Optimized LiRPA, which is based on global optimization, on the dataset MNIST. The results
show that our method still has an accuracy advantage.
Key words: neural network verification; symbolic propagation; abstract interpretation; multi-path back-propagation
神经网络已广泛应用于各种现实场景.过去难以处理的高维复杂问题,如图像分类,神经网络在一定程度上已经
可以达到人类的水平.随着硬件性能提升和算法的进步,神经网络模型甚至在一些问题上已经十分成熟,但同时其可
解释性
[1]
却十分有限.另一方面,由于自身不可避免的过拟合以及攻击技术的发展,使得无论来自于自然或人为影响,
神经网络都是极其不稳定的.因此,在一些安全攸关的应用场景下,神经网络的部署应用存在较强的局限性.比如对
于自动驾驶系统,路标的识别错误可能会导致灾难性的后果.若将神经网络应用于这样的场景,其鲁棒性必须有严格
的保证.
神经网络鲁棒性保障最直接的方法是使用足够多的测试用例来进行测试,但有限的测试用例并不能保证其绝
对安全性.如一张
像素的灰阶图片,若仅允许对任意像素值最大加
,产生的图片已多达
种,全部测试显
然不现实.面对这样的问题,神经网络的形式化验证受到了广泛关注,它能够为神经网络的安全性提供数学保证.
神经网络验证要处理的典型问题是网络的可达性质,即给定一个神经网络及输入范围,计算输入范围经过这个
网络能够到达的输出范围.在实际问题中,比如图像分类问题,这一性质通常和局部鲁棒性
[2]
联系在一起.局部鲁棒性
∗ 基金项目:深圳市高等院校稳定支持计划面上项目(项目编号 20200810045225001);国家自然科学基金青年基金项目(62002228);
深圳市科创委基础研究面上项目(JCYJ20210324094202008)
收稿时间: 2021-09-05; 修改时间: 2021-10-14; 采用时间: 2022-01-10; jos 在线出版时间: 2022-01-28
评论