Learning to Infer Program Sketches

Maxwell Nye, Luke Hewitt, Joshua Tenenbaum, Armando Solar-Lezama
2/17/2019
cs.AIcs.LG

Official code: mtensor/neural_sketch (24 stars, Python, last commit 2020-03-04).

Abstract

Our goal is to build systems which write code automatically from the kinds of specifications humans can most easily provide, such as examples and natural language instruction. The key idea of this work is that a flexible combination of pattern recognition and explicit reasoning can be used to solve these complex programming problems.

Show full abstract

We propose a method for dynamically integrating these types of information. Our novel intermediate representation and training algorithm allow a program synthesis system to learn, without direct supervision, when to rely on pattern recognition and when to perform symbolic search. Our model matches the memorization and generalization performance of neural synthesis and symbolic search, respectively, and achieves state-of-the-art performance on a dataset of simple English description-to-code programming problems.

View on arXivView PDF

Code Implementations(1)

neural sketch project, currently in generative regex, list transformation (deepcoder), and text editing (robustfill) domains

2411Python, ShellJul 12, 20186 years ago

Similar Papers

Cite this paper

@article{nye2019learning,
  title  = {Learning to Infer Program Sketches},
  author = {Maxwell Nye and Luke Hewitt and Joshua Tenenbaum and Armando Solar-Lezama},
  year   = {2019},
  eprint = {1902.06349},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.06349}
}

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/1902.06349.svg)](https://codeofpaper.com/paper/1902.06349)

Discussion