arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2202.09868cs.AIcs.LG
收藏

ExAIS:可执行AI语义

ExAIS: Executable AI Semantics

Singapore Management University(新加坡管理大学)

Richard Schumi, Jun Sun

摘要:

神经网络可以被认为是一种新的编程范例,即,复杂的“人工智能”系统不是通过程序员头脑中的(通常是非正式的)逻辑推理来构建越来越复杂的程序,而是通过用大数据优化通用神经网络模型来构建的。在这种新的范式中,TensorFlow和PyTorch等AI框架发挥了关键作用,这与传统程序的编译器一样重要。众所周知,缺乏用于程序设计语言(例如C)的适当语义,即,编译器的正确性规范导致了许多有问题的程序行为和安全问题。由于程序设计语言的高度复杂性及其快速发展,通常很难为编译器提供正确的规范,但我们有一个独特的机会,这次可以为神经网络(功能有限,其中大多数具有稳定的语义)做正确的规范。在这项工作中,我们报告了我们为TensorFlow等神经网络框架提供正确性规范的努力。我们在逻辑程序设计语言Prolog中指定了几乎所有TensorFlow层的语义。我们证明了有用的语义通过两个应用程序。一个是TensorFlow的模糊引擎,它具有强大的预言和生成有效神经网络的系统方法。另一种是模型验证方法,可以为TensorFlow模型提供一致的错误报告。

英文摘要:

Neural networks can be regarded as a new programming paradigm, i.e., instead of building ever-more complex programs through (often informal) logical reasoning in the programmers' mind, complex 'AI' systems are built by optimising generic neural network models with big data. In this new paradigm, AI frameworks such as TensorFlow and PyTorch play a key role, which is as essential as the compiler for traditional programs. It is known that the lack of a proper semantics for programming languages (such as C), i.e., a correctness specification for compilers, has contributed to many problematic program behaviours and security issues. While it is in general hard to have a correctness specification for compilers due to the high complexity of programming languages and their rapid evolution, we have a unique opportunity to do it right this time for neural networks (which have a limited set of functions, and most of them have stable semantics). In this work, we report our effort on providing a correctness specification of neural network frameworks such as TensorFlow. We specify the semantics of almost all TensorFlow layers in the logical programming language Prolog. We demonstrate the usefulness of the semantics through two applications. One is a fuzzing engine for TensorFlow, which features a strong oracle and a systematic way of generating valid neural networks. The other is a model validation approach which enables consistent bug reporting for TensorFlow models.

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

↑