Program Synthesis and Semantic Parsing with Learned Code Idioms

By Richard Shin, Miltiadis Allamanis, Marc Brockschmidt, Oleksandr Polozov. 2019

92 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Josh Tenenbaum
  2. Mohit Bansal
  3. Percy Liang
  4. Swarat Chaudhuri
  5. Rishabh Singh
  6. Omer Levy
  7. Uri Alon
  8. Graham Neubig

In Information Systems

  1. Rishabh Singh
  2. Uri Alon
  3. Eran Yahav
  4. Armando Solar-Lezama
  5. Swarat Chaudhuri
  6. Josh Tenenbaum
  7. Alexey Svyatkovskiy
  8. Neel Sundaresan

In Natural Language Processing

  1. Josh Tenenbaum
  2. Swarat Chaudhuri
  3. Uri Alon
  4. Eran Yahav
  5. Rishabh Singh
  6. Omer Levy
  7. Oleksandr Polozov
  8. Armando Solar-Lezama

In Code Generation & Program Synthesis

  1. Swarat Chaudhuri
  2. Armando Solar-Lezama
  3. Rishabh Singh
  4. Josh Tenenbaum
  5. Uri Alon
  6. Oleksandr Polozov
  7. Kevin Ellis
  8. Eran Yahav

Citations in the corpus