Program Synthesis Through Reinforcement Learning Guided Tree Search
Preprint
Abstract
Program Synthesis is the task of generating a program from a provided specification. Traditionally, this has been treated as a search problem by the programming languages (PL) community and more recently as a supervised learning problem by the machine learning community. Here, we propose a third approach, representing the task of synthesizing a given program as a Markov decision process solvable via reinforcement learning(RL). From observations about the states of partial programs, we attempt to find a program that is optimal over a provided reward metric on pairs of programs and states. We instantiate this approach on a subset of the RISC-V assembly language operating on floating point numbers, and as an optimization inspired by search-based techniques from the PL community, we combine RL with a priority search tree. We evaluate this instantiation and demonstrate the effectiveness of our combined method compared to a variety of baselines, including a pure RL ablation and a state of the art Markov chain Monte Carlo search method on this task.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Program SynthesisFoundations and Trends® in Programming Languages, 2017
- Component-based synthesis of table consolidation and transformation tasks from examples2017
- Deep Reinforcement Learning with Double Q-LearningProceedings of the AAAI Conference on Artificial Intelligence, 2016
- Optimizing synthesis with metasketchesACM SIGPLAN Notices, 2016
- The RISC-V Instruction Set Manual. Volume 1: User-Level ISA, Version 2.02014
- Stochastic superoptimizationACM SIGPLAN Notices, 2013
- A Combined Analytical and Search-Based Approach for the Inductive Synthesis of Functional ProgramsKI - Künstliche Intelligenz, 2010
- Long Short-Term MemoryNeural Computation, 1997