arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.00989cs.AIcs.LG
收藏

通用源代码的神经符号执行

Neuro-Symbolic Execution of Generic Source Code

Iowa State University(爱荷华州立大学)

Yaojie Hu, Jin Tian

AI总结:

本文提出神经解释(NI)模型,首次以神经符号方式逐语句执行通用 Python 源代码,保留代码结构并支持缺失定义,在 Py150 数据集上实现无具体输入的白盒执行,用于变量误用定位与修复。

摘要:

一个 Python 程序能否由根据源代码组合而成的神经网络逐语句执行?我们形式化了神经符号执行问题,并引入了神经解释(Neural Interpretation,NI),这是第一个用于执行通用源代码且允许缺失定义的神经模型。NI 保留源代码结构,其中每个变量都有一个向量编码,每个函数执行一个神经网络。NI 是一种新颖的计算机神经模型,具有编译器架构,能够组装由源代码“编程”的神经层。NI 是第一个能够执行 Py150 数据集程序的神经模型,包括没有具体输入的库函数,并且可以使用灵活的代码理解目标进行训练。我们展示了在没有具体输入的情况下进行白盒执行,用于变量误用定位和修复。

英文摘要:

Can a Python program be executed statement-by-statement by neural networks composed according to the source code? We formulate the Neuro-Symbolic Execution Problem and introduce Neural Interpretation (NI), the first neural model for the execution of generic source code that allows missing definitions. NI preserves source code structure, where every variable has a vector encoding, and every function executes a neural network. NI is a novel neural model of computers with a compiler architecture that can assemble neural layers "programmed" by source code. NI is the first neural model capable of executing Py150 dataset programs, including library functions without concrete inputs, and it can be trained with flexible code understanding objectives. We demonstrate white-box execution without concrete inputs for variable misuse localization and repair.

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

↑