HackerPapers

arXiv:1801.03526cs.AI

Neural Program Synthesis with Priority Queue Training

Daniel A. Abolafia, Mohammad Norouzi, Jonathan Shen, Rui Zhao, Quoc V. Le

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

We consider the task of program synthesis in the presence of a reward function over the output of programs, where the goal is to find programs with maximal rewards. We employ an iterative optimization scheme, where we train an RNN on a dataset of K best programs from a priority queue of the generated programs so far. Then, we synthesize new programs and add them to the priority queue by sampling from the RNN. We benchmark our algorithm, called priority queue training (or PQT), against genetic algorithm and reinforcement learning baselines on a simple but expressive Turing complete programming language called BF. Our experimental results show that our simple PQT algorithm significantly outperforms the baselines. By adding a program length penalty to the reward function, we are able to synthesize short, human readable programs.

arXiv comments
Journal reference
DOI
Subjects
cs.AIArtificial Intelligence

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Feb 2019 to Feb 2019.

Comments linking this paper, per year.

Discussed in comments1 thread

    • > I wonder what the result would look like if this were applied to source code. IMHO a probabilistic algorithm for code completion could turn out interesting. Neural program synthesis is similar to what you describe, here's a sample paper: > We consider the task of program…

      xkapastelView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.