arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.08490cs.LGcs.PLstat.ML
收藏

基于图的生成式代码建模

Generative Code Modeling with Graphs

Microsoft Research(微软研究院)

Marc Brockschmidt, Miltiadis Allamanis, Alexander L. Gaunt, Oleksandr Polozov

摘要:

源代码的生成模型是一个有趣的结构化预测问题,需要对严格的语法和语义约束以及自然的、可能的程序进行推理。我们提出了一个新的模型,这个问题,使用一个图形来表示所生成的输出的中间状态。生成过程将语法驱动的扩展步骤与图形增强和神经消息传递步骤交织在一起。实验评估表明,我们的新模型可以生成语义上有意义的表达式,优于一系列强基线。

英文摘要:

Generative models for source code are an interesting structured prediction problem, requiring to reason about both hard syntactic and semantic constraints as well as about natural, likely programs. We present a novel model for this problem that uses a graph to represent the intermediate state of the generated output. The generative procedure interleaves grammar-driven expansion steps with graph augmentation and neural message passing steps. An experimental evaluation shows that our new model can generate semantically meaningful expressions, outperforming a range of strong baselines.

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

↑