Quantitative Programming by Examples

09/12/2019
by   Sumit Gulwani, et al.
0

Programming-by-Example (PBE) systems synthesize an intended program in some (relatively constrained) domain-specific language from a small number of input-output examples provided by the user. In this paper, we motivate and define the problem of quantitative PBE (qPBE) that relates to synthesizing an intended program over an underlying (real world) programming language that also minimizes a given quantitative cost function. We present a modular approach for solving qPBE that consists of three phases: intent disambiguation, global search, and local search. On two concrete objectives, namely program performance and size, our qPBE procedure achieves 1.53 X and 1.26 X improvement respectively over the baseline FlashFill PBE system, averaged over 701 benchmarks. Our detailed experiments validate the design of our procedure and show the value of combining global and local search for qPBE.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/14/2017

Deep API Programmer: Learning to Program with APIs

We present DAPIP, a Programming-By-Example system that learns to program...
research
07/10/2023

Can You Improve My Code? Optimizing Programs with Local Search

This paper introduces a local search method for improving an existing pr...
research
09/18/2019

Generating Local Search Neighborhood with Synthesized Logic Programs

Local Search meta-heuristics have been proven a viable approach to solve...
research
10/07/2009

A Local Search Modeling for Constrained Optimum Paths Problems (Extended Abstract)

Constrained Optimum Path (COP) problems appear in many real-life applica...
research
08/27/2018

A Systematic Approach to Programming

We show how to systematically implement a mental representation of an al...
research
04/03/2018

Neural-Guided Deductive Search for Real-Time Program Synthesis from Examples

Synthesizing user-intended programs from a small number of input-output ...
research
07/08/2023

Multi-Intent Detection in User Provided Annotations for Programming by Examples Systems

In mapping enterprise applications, data mapping remains a fundamental p...

Please sign up or login with your details

Forgot password? Click here to reset