COSET:神经程序嵌入的评估基准
COSET: A Benchmark for Evaluating Neural Program Embeddings
摘要:
神经程序嵌入可以帮助分析大型软件,由于其有限的可扩展性,这对于传统的基于逻辑的程序分析来说是一个挑战。最近机器学习在这一领域的进展的一个关键焦点是对程序语义建模,而不仅仅是语法。不幸的是,评估这些进步并不明显,因为程序语义并不适合直接的度量。在本文中,我们介绍了一个称为COSET的基准测试框架,用于标准化神经程序嵌入的评估。COSET由源代码格式的各种程序数据集组成,由人类专家根据感兴趣的程序属性进行标记。COSET中包含的一套程序转换是一个新颖之处。当应用于基础数据集时,这些转换可以模拟由于优化和重构而对程序代码的自然更改,并且可以用作分类错误的“调试”工具。我们对四个主要模型进行了初步研究:TreeLSTM,门控图神经网络(GGNN),AST-Path神经网络(APNN)和DYPRO。我们发现,COSET是有用的,在确定每个模型的优势和局限性,并在查明特定的语法和语义特征的程序,构成挑战。
英文摘要:
Neural program embedding can be helpful in analyzing large software, a task that is challenging for traditional logic-based program analyses due to their limited scalability. A key focus of recent machine-learning advances in this area is on modeling program semantics instead of just syntax. Unfortunately evaluating such advances is not obvious, as program semantics does not lend itself to straightforward metrics. In this paper, we introduce a benchmarking framework called COSET for standardizing the evaluation of neural program embeddings. COSET consists of a diverse dataset of programs in source-code format, labeled by human experts according to a number of program properties of interest. A point of novelty is a suite of program transformations included in COSET. These transformations when applied to the base dataset can simulate natural changes to program code due to optimization and refactoring and can serve as a "debugging" tool for classification mistakes. We conducted a pilot study on four prominent models: TreeLSTM, gated graph neural network (GGNN), AST-Path neural network (APNN), and DYPRO. We found that COSET is useful in identifying the strengths and limitations of each model and in pinpointing specific syntactic and semantic characteristics of programs that pose challenges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。