Skip to main content
QUICK REVIEW

[Paper Review] BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Exploration

Augustus Odena, Kensen Shi|arXiv (Cornell University)|Jul 28, 2020
Software Engineering ResearchComputer Science27 references5 citations
TL;DR

BUSTLE introduces a learning-guided, bottom-up program synthesis approach that uses a neural classifier to prioritize intermediate program values during search, leveraging executed results and property signatures for efficiency. It significantly reduces synthesis time and candidate exploration compared to baselines, even when trained on random programs and applied to human-written benchmarks.

ABSTRACT

Program synthesis is challenging largely because of the difficulty of search in a large space of programs. Human programmers routinely tackle the task of writing complex programs by writing sub-programs and then analyzing their intermediate results to compose them in appropriate ways. Motivated by this intuition, we present a new synthesis approach that leverages learning to guide a bottom-up search over programs. In particular, we train a model to prioritize compositions of intermediate values during search conditioned on a given set of input-output examples. This is a powerful combination because of several emergent properties. First, in bottom-up search, intermediate programs can be executed, providing semantic information to the neural network. Second, given the concrete values from those executions, we can exploit rich features based on recent work on property signatures. Finally, bottom-up search allows the system substantial flexibility in what order to generate the solution, allowing the synthesizer to build up a program from multiple smaller sub-programs. Overall, our empirical evaluation finds that the combination of learning and bottom-up search is remarkably effective, even with simple supervised learning approaches. We demonstrate the effectiveness of our technique on two datasets, one from the SyGuS competition and one of our own creation.

Motivation & Objective

  • To address the challenge of large search spaces in program synthesis by leveraging human-like bottom-up programming strategies.
  • To enable efficient learning-in-the-loop synthesis by using executable intermediate values as features for a neural model.
  • To reduce wall-clock time and candidate exploration in synthesis through fast, batched model inference and property signatures.
  • To bridge the distribution gap between synthetic training data and real human-written benchmarks in program synthesis.
  • To demonstrate that simple supervised learning on random programs can generalize effectively to complex, human-authored synthesis tasks.

Proposed method

  • BUSTLE performs bottom-up enumerative search over programs, executing partial programs to generate intermediate values for model input.
  • A neural classifier is trained to predict whether an intermediate value is part of a solution, using features derived from executed values.
  • Property signatures are used to featurize program inputs and outputs, enabling rich semantic representations for the model.
  • Model inference is batched across hundreds of intermediate values to reduce per-prediction overhead and improve efficiency.
  • The system integrates the model within the synthesis loop to guide search, prioritizing promising intermediate compositions.
  • Training data is generated via random program generation to simulate diverse intermediate expressions, despite distribution shift from human benchmarks.

Experimental results

Research questions

  • RQ1Can a learned model effectively prioritize intermediate program values in a bottom-up synthesis loop to reduce search space?
  • RQ2How does using executed intermediate values and property signatures improve model generalization across synthetic and human-written benchmarks?
  • RQ3To what extent can a simple supervised model trained on random programs generalize to real-world program synthesis tasks?
  • RQ4Does learning-in-the-loop with bottom-up search yield measurable wall-clock speedups compared to baseline synthesizers?
  • RQ5Can the combination of bottom-up search and model guidance outperform both traditional enumerative search and end-to-end neural generation methods?

Key findings

  • BUSTLE reduces the number of candidate programs explored by up to 90% compared to a baseline synthesizer without learning.
  • The model achieves strong generalization, with predictions skewing positively for sub-expressions that appear in actual solutions and negatively for others.
  • Wall-clock time is significantly reduced, with Bustle outperforming both the baseline and DeepCoder-style approaches on both synthetic and SyGuS benchmarks.
  • Despite being trained on random programs, the model generalizes effectively to human-written benchmarks, demonstrating robustness to distribution shift.
  • Batched model inference and property signatures enable efficient integration of learning into the synthesis loop, making the system practical for real-world use.
  • All but one benchmark solved by the baseline were also solved by Bustle, confirming that the model does not compromise completeness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.