AutoPandas: neural-backed generators for program synthesis

By Rohan Bavishi, Caroline Lemieux, Roy Fox, Koushik Sen, Ion Stoica. 2019

93 citations recorded by the source corpus.

Developers nowadays have to contend with a growing number of APIs. While in the long-term they are very useful to developers, many modern APIs have an incredibly steep learning curve, due to their hundreds of functions handling many arguments, obscure documentation, and frequently changing semantics. For APIs that perform data transformations, novices can often provide an I/O example demonstrating the desired transformation, but may be stuck on how to translate it to the API. A programming-by-example synthesis engine that takes such I/O examples and directly produces programs in the target API could help such novices. Such an engine presents unique challenges due to the breadth of real-world APIs, and the often-complex constraints over function arguments. We present a generator-based synthesis approach to contend with these problems. This approach uses a program candidate generator, which encodes basic constraints on the space of programs. We introduce neural-backed operators which can be seamlessly integrated into the program generator. To improve the efficiency of the search, we simply use these operators at non-deterministic decision points, instead of relying on domain-specific heuristics. We implement this technique for the Python pandas library in AutoPandas. AutoPandas supports 119 pandas dataframe transformation functions. We evaluate AutoPandas on 26 real-world benchmarks and find it solves 17 of them.

Subfields: Information Systems, Software, Natural Language Processing, Code Generation & Program Synthesis, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Information Systems

  1. Rishabh Singh
  2. Xinyun Chen
  3. Denny Zhou
  4. Oleksandr Polozov
  5. Petros Maniatis
  6. Charles Sutton
  7. Luke S. Zettlemoyer
  8. Kensen Shi

In Software

  1. Rishabh Singh
  2. Xinyun Chen
  3. Denny Zhou
  4. Oleksandr Polozov
  5. Charles Sutton
  6. Luke S. Zettlemoyer
  7. Petros Maniatis
  8. Henryk Michalewski

In Natural Language Processing

  1. Luke S. Zettlemoyer
  2. Wen-tau Yih
  3. Graham Neubig
  4. Percy Liang
  5. Denny Zhou
  6. Xinyun Chen
  7. Charles Sutton
  8. Rishabh Singh

In Code Generation & Program Synthesis

  1. Rishabh Singh
  2. Oleksandr Polozov
  3. Charles Sutton
  4. Xinyun Chen
  5. Petros Maniatis
  6. Daniel Fried
  7. Kensen Shi
  8. Wen-tau Yih

In Signal Processing

  1. Xinyun Chen
  2. Wen-tau Yih
  3. Eric Wallace
  4. Sriram K. Rajamani
  5. Michele Catasta
  6. Luke S. Zettlemoyer
  7. Petros Maniatis
  8. Kensen Shi

Citations in the corpus