arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1409.5718cs.LGcs.NEcs.SE
收藏

用于程序设计语言处理的树结构卷积神经网络

Convolutional Neural Networks over Tree Structures for Programming Language Processing

Peking University(北京大学);Stanford University(斯坦福大学)

Lili Mou, Ge Li, Lu Zhang, Tao Wang, Zhi Jin

摘要:

程序设计语言处理(类似于自然语言处理)是软件工程领域的研究热点,也引起了人工智能界越来越多的关注。然而,不同于自然语言句子,程序包含丰富、明确和复杂的结构信息。因此,传统的NLP模型可能不适合程序。在本文中,我们提出了一种新的基于树的卷积神经网络(TBCNN)的程序设计语言处理,其中卷积核的设计程序的抽象语法树,以捕捉结构信息。TBCNN是一个通用的架构程序设计语言处理,我们的实验表明,它的有效性在两个不同的程序分析任务:根据功能分类程序,并检测某些模式的代码片段。TBCNN优于基线方法,包括几个NLP神经模型。

英文摘要:

Programming language processing (similar to natural language processing) is a hot research topic in the field of software engineering; it has also aroused growing interest in the artificial intelligence community. However, different from a natural language sentence, a program contains rich, explicit, and complicated structural information. Hence, traditional NLP models may be inappropriate for programs. In this paper, we propose a novel tree-based convolutional neural network (TBCNN) for programming language processing, in which a convolution kernel is designed over programs' abstract syntax trees to capture structural information. TBCNN is a generic architecture for programming language processing; our experiments show its effectiveness in two different program analysis tasks: classifying programs according to functionality, and detecting code snippets of certain patterns. TBCNN outperforms baseline methods, including several neural models for NLP.

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

↑