自然Source Code的结构生成模型
Structured Generative Models of Natural Source Code
摘要:
我们研究自然源代码(NSC)的生成模型的构建问题,即由人类编写和理解的源代码。我们的主要贡献是描述一个家庭的生成模型NSC有三个关键属性:第一,他们将顺序和层次结构。其次,我们学习源代码元素的分布式表示。最后,它们与编译器紧密集成,这允许在将结构构建到模型中时利用编译器逻辑和抽象。我们还开发了一个扩展,包括更复杂的结构,细化模型如何根据当前范围内的变量生成标识符令牌。我们的模型可以有效地学习,我们的经验表明,包括适当的结构大大提高了模型,生成测试程序的概率来衡量。
英文摘要:
We study the problem of building generative models of natural source code (NSC); that is, source code written and understood by humans. Our primary contribution is to describe a family of generative models for NSC that have three key properties: First, they incorporate both sequential and hierarchical structure. Second, we learn a distributed representation of source code elements. Finally, they integrate closely with a compiler, which allows leveraging compiler logic and abstractions when building structure into the model. We also develop an extension that includes more complex structure, refining how the model generates identifier tokens based on what variables are currently in scope. Our models can be learned efficiently, and we show empirically that including appropriate structure greatly improves the models, measured by the probability of generating test programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。