Program Synthesis and Semantic Parsing with Learned Code Idioms

Richard Shin, Miltiadis Allamanis, Marc Brockschmidt, Oleksandr Polozov
6/26/2019
cs.LGcs.AIcs.CL

Official code: rshin/seq2struct (23 stars, Jupyter Notebook, MIT, last commit 2019-10-30).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

rshin/seq2structOfficial100%
MIT
2313Jupyter Notebook, PythonNov 30, 20187 years agoMIT

Similar Papers

Cite this paper

@article{shin2019program,
  title  = {Program Synthesis and Semantic Parsing with Learned Code Idioms},
  author = {Richard Shin and Miltiadis Allamanis and Marc Brockschmidt and Oleksandr Polozov},
  year   = {2019},
  eprint = {1906.10816},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.10816}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.10816.svg)](https://codeofpaper.com/paper/1906.10816)

Discussion