arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.01353cs.LOcs.AIcs.LG
收藏

将高级神经网络规范编译为VNN-LIB查询

Compiling High-Level Neural Network Specifications into VNN-LIB Queries

University of Western Australia(西澳大学);Heriot-Watt University(赫瑞-沃德大学);Well-Typed(Well-Typed公司);University of Strathclyde(斯特拉斯克莱德大学)

Matthew L. Daggitt, Wen Kokke, Robert Atkey

AI总结:

本文提出首个将高级神经网络规范编译为优化VNN-LIB查询的算法,支持更丰富的逻辑片段和多网络处理,实现性能渐近最优。

摘要:

传统软件的正式验证已被面向验证的语言如Dafny和F*所革命化,这些语言使开发人员能够编写高级规范,这些规范可以自动编译为低级SMT-LIB查询。相比之下,神经网络验证目前缺乏这样的基础设施,通常需要用户以接近低级VNN-LIB查询格式表达要求。这种差距依然存在,因为针对VNN-LIB相比针对SMT-LIB具有独特的算法挑战:VNN-LIB仅限于一个固定的有限变量集,代表网络的输入和输出,即使是最简单的神经网络规范也有极大量的变量。在本文中,我们提出了将高级神经网络规范编译为优化的VNN-LIB查询的第一个算法。我们的算法在数值上是稳健的,并支持比现有工具更丰富的逻辑片段,包括变量转换、一阶量词和涉及多个网络或多应用的同一网络的规范。我们在此算法内实现于Vehicle框架中,并证明其性能在基准规范上是渐近最优的。

英文摘要:

The formal verification of traditional software has been revolutionised by verification-orientated languages such as Dafny and F* which enable developers to write high-level specifications that are automatically compiled down to low-level SMT-LIB queries. In contrast, neural network verification currently lacks such infrastructure, often requiring users to express requirements in formats close to the low-level VNN-LIB query format. This gap persists because targeting VNN-LIB presents unique algorithmic challenges when compared to targeting SMT-LIB: VNN-LIB is restricted to a fixed finite set of variables representing the input and outputs of the network, and even toy neural network specifications have an extremely large number of variables. In this paper, we present the first algorithm for compiling high-level neural network specifications into optimised VNN-LIB queries. Our algorithm is numerically sound and supports a far rich logical fragment than existing tools, including transformations of variables, first-class quantifiers, and specifications involving multiple networks or multiple applications of the same network. We implement this algorithm within the Vehicle framework and demonstrate that its performance is asymptotically optimal for benchmark specifications.

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

↑