Neural-Guided Deductive Search for Real-Time Program Synthesis from Examples

By Ashwin K. Vijayakumar, Abhishek Mohta, Oleksandr Polozov, Dhruv Batra, Prateek Jain, Sumit Gulwani. 2018

178 citations recorded by the source corpus.

Synthesizing user-intended programs from a small number of input-output examples is a challenging problem with several important applications like spreadsheet manipulation, data wrangling and code refactoring. Existing synthesis systems either completely rely on deductive logic techniques that are extensively hand-engineered or on purely statistical models that need massive amounts of data, and in general fail to provide real-time synthesis on challenging benchmarks. In this work, we propose Neural Guided Deductive Search (NGDS), a hybrid synthesis technique that combines the best of both symbolic logic techniques and statistical models. Thus, it produces programs that satisfy the provided specifications by construction and generalize well on unseen examples, similar to data-driven systems. Our technique effectively utilizes the deductive search framework to reduce the learning problem of the neural component to a simple supervised learning setup. Further, this allows us to both train on sparingly available real-world data and still leverage powerful recurrent neural network encoders. We demonstrate the effectiveness of our method by evaluating on real-world customer scenarios by synthesizing accurate programs with up to 12x speed-up compared to state-of-the-art systems.

Subfields: Artificial Intelligence, Hardware and Architecture, Information Systems

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. Yoshua Bengio
  4. Quoc V. Le
  5. Josh Tenenbaum
  6. Sergey Levine
  7. Mohit Bansal
  8. Jianfeng Gao

In Hardware and Architecture

  1. Swarat Chaudhuri
  2. Rishabh Singh
  3. Dawn Song
  4. Armando Solar-Lezama
  5. Charles Sutton
  6. Josh Tenenbaum
  7. Xinyun Chen
  8. Kevin Ellis

In Information Systems

  1. Charles Sutton
  2. Miltiadis Allamanis
  3. Uri Alon
  4. Rishabh Singh
  5. Koushik Sen
  6. Marc Brockschmidt
  7. Swarat Chaudhuri
  8. Eran Yahav

Citations in the corpus