Automatic Program Synthesis of Long Programs with a Learned Garbage Collector

09/12/2018
by   Amit Zohar, et al.
0

We consider the problem of generating automatic code given sample input-output pairs. We train a neural network to map from the current state and the outputs to the program's next statement. The neural network optimizes multiple tasks concurrently: the next operation out of a set of high level commands, the operands of the next statement, and which variables can be dropped from memory. Using our method we are able to create programs that are more than twice as long as existing state-of-the-art solutions, while improving the success rate for comparable lengths, and cutting the run-time by two orders of magnitude. Our code is publicly available at https://github.com/amitz25/PCCoder

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/14/2021

Learning to Combine Per-Example Solutions for Neural Program Synthesis

The goal of program synthesis from examples is to find a computer progra...
research
03/09/2023

Hierarchical Neural Program Synthesis

Program synthesis aims to automatically construct human-readable program...
research
12/09/2021

Towards Neural Functional Program Evaluation

This paper explores the capabilities of current transformer-based langua...
research
03/13/2023

Improved Tree Search for Automatic Program Synthesis

In the task of automatic program synthesis, one obtains pairs of matchin...
research
05/23/2023

Understanding Programs by Exploiting (Fuzzing) Test Cases

Semantic understanding of programs has attracted great attention in the ...
research
12/07/2020

SuperCoder: Program Learning Under Noisy Conditions From Superposition of States

We propose a new method of program learning in a Domain Specific Languag...
research
09/27/2021

Self-Replicating Neural Programs

In this work, a neural network is trained to replicate the code that tra...

Please sign up or login with your details

Forgot password? Click here to reset