Program Synthesis and Semantic Parsing with Learned Code Idioms
Abstract
Program synthesis of general-purpose source code from natural language specifications is challenging due to the need to reason about high-level patterns in the target program and low-level implementation details at the same time. In this work, we present Patois, a system that allows a neural program synthesizer to explicitly interleave high-level and low-level reasoning at every generation step. It accomplishes this by automatically mining common code idioms from a given corpus, incorporating them into the underlying language for neural synthesis, and training a tree-based neural synthesizer to use these idioms during code generation. We evaluate Patois on two complex semantic parsing datasets and show that using learned code idioms improves the synthesizer's accuracy.
Cite
Text
Shin et al. "Program Synthesis and Semantic Parsing with Learned Code Idioms." Neural Information Processing Systems, 2019.Markdown
[Shin et al. "Program Synthesis and Semantic Parsing with Learned Code Idioms." Neural Information Processing Systems, 2019.](https://mlanthology.org/neurips/2019/shin2019neurips-program/)BibTeX
@inproceedings{shin2019neurips-program,
title = {{Program Synthesis and Semantic Parsing with Learned Code Idioms}},
author = {Shin, Eui Chul and Allamanis, Miltiadis and Brockschmidt, Marc and Polozov, Alex},
booktitle = {Neural Information Processing Systems},
year = {2019},
pages = {10825-10835},
url = {https://mlanthology.org/neurips/2019/shin2019neurips-program/}
}