arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.04327cs.AIcs.LG
收藏

深度API程序员:学习使用API编程

Deep API Programmer: Learning to Program with APIs

MIT(麻省理工学院);Microsoft Research(微软研究院)

Surya Bhupatiraju, Rishabh Singh, Abdel-rahman Mohamed, Pushmeet Kohli

摘要:

我们提出了DAPIP,一个通过示例编程的系统,它学习使用API进行编程以执行数据转换任务。我们设计了一种特定于域的语言(DSL),允许任意连接API输出和常量字符串。DSL由三个API家族组成:基于正则表达式的API、查找API和转换API。然后,我们提出了一种新的神经合成算法,以搜索与给定的一组示例相一致的DSL中的程序。搜索算法使用最近推出的神经架构来编码输入输出的例子,并在DSL中的程序搜索建模。我们表明,在合成和真实世界的基准测试中,合成算法的性能优于合成程序的基线方法。

英文摘要:

We present DAPIP, a Programming-By-Example system that learns to program with APIs to perform data transformation tasks. We design a domain-specific language (DSL) that allows for arbitrary concatenations of API outputs and constant strings. The DSL consists of three family of APIs: regular expression-based APIs, lookup APIs, and transformation APIs. We then present a novel neural synthesis algorithm to search for programs in the DSL that are consistent with a given set of examples. The search algorithm uses recently introduced neural architectures to encode input-output examples and to model the program search in the DSL. We show that synthesis algorithm outperforms baseline methods for synthesizing programs on both synthetic and real-world benchmarks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑