English

Program Synthesis and Semantic Parsing with Learned Code Idioms

Machine Learning 2019-11-06 v4 Artificial Intelligence Computation and Language Programming Languages Machine Learning

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.

Keywords

Cite

@article{arxiv.1906.10816,
  title  = {Program Synthesis and Semantic Parsing with Learned Code Idioms},
  author = {Richard Shin and Miltiadis Allamanis and Marc Brockschmidt and Oleksandr Polozov},
  journal= {arXiv preprint arXiv:1906.10816},
  year   = {2019}
}

Comments

33rd Conference on Neural Information Processing Systems (NeurIPS) 2019. 13 pages total, 9 pages of main text

R2 v1 2026-06-23T10:03:40.617Z