Write, Execute, Assess: Program Synthesis with a REPL

By Kevin Ellis, Maxwell Nye, Yewen Pu, Felix Sosa, Josh Tenenbaum, Armando Solar-Lezama. 2019

187 citations recorded by the source corpus.

We present a neural program synthesis approach integrating components which write, execute, and assess code to navigate the search space of possible programs. We equip the search process with an interpreter or a read-eval-print-loop (REPL), which immediately executes partially written programs, exposing their semantics. The REPL addresses a basic challenge of program synthesis: tiny changes in syntax can lead to huge changes in semantics. We train a pair of models, a policy that proposes the new piece of code to write, and a value function that assesses the prospects of the code written so-far. At test time we can combine these models with a Sequential Monte Carlo algorithm. We apply our approach to two domains: synthesizing text editing programs and inferring 2D and 3D graphics programs.

Subfields: Artificial Intelligence, Control and Systems Engineering, 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. Graham Neubig
  2. Percy Liang
  3. Josh Tenenbaum
  4. Sergey Levine
  5. Quoc V. Le
  6. Mohit Bansal
  7. Luke S. Zettlemoyer
  8. Jianfeng Gao

In Control and Systems Engineering

  1. Joseph J. Lim
  2. Leslie Pack Kaelbling
  3. Tomas Lozano-Perez
  4. Armando Solar-Lezama
  5. Catherine Wong
  6. Bo Dai
  7. Graham Neubig
  8. Silvio Savarese

In Information Systems

  1. Charles Sutton
  2. Rishabh Singh
  3. Uri Alon
  4. Eran Yahav
  5. Graham Neubig
  6. Xinyun Chen
  7. Omer Levy
  8. Kensen Shi

In Natural Language Processing

  1. Graham Neubig
  2. Xinyun Chen
  3. Uri Alon
  4. Denny Zhou
  5. Charles Sutton
  6. Eran Yahav
  7. Josh Tenenbaum
  8. Rishabh Singh

In Code Generation & Program Synthesis

  1. Charles Sutton
  2. Rishabh Singh
  3. Augustus Odena
  4. Josh Tenenbaum
  5. Armando Solar-Lezama
  6. Uri Alon
  7. Maxwell Nye
  8. Eran Yahav

Citations in the corpus