ICLR 2019poster227 citations

Generative Code Modeling with Graphs

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

Abstract

Generative models forsource 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. Our model generates code by interleaving 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.

Generative ModelSource CodeGraph Learning
BibTeX
@inproceedings{
brockschmidt2018generative,
title={Generative Code Modeling with Graphs},
author={Marc Brockschmidt and Miltiadis Allamanis and Alexander L. Gaunt and Oleksandr Polozov},
booktitle={International Conference on Learning Representations},
year={2019},
url={https://openreview.net/forum?id=Bke4KsA5FX},
}
Generative Code Modeling with Graphs · ICLR 2019