arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1209.3811cs.AI
收藏

编程实例的文本特征

Textual Features for Programming by Example

University of California, San Diego(加州大学圣地亚哥分校);The Weizmann Institute of Science(魏茨曼科学研究所);Microsoft Research(微软研究院)

Aditya Krishna Menon, Omer Tamuz, Sumit Gulwani, Butler Lampson, Adam Tauman Kalai

摘要:

在示例编程中,系统试图从输入和输出示例中推断程序,通常通过搜索某些基本函数的组合。执行简单的蛮力搜索是不可行的,即使是轻微涉及的任务。我们注意到,这些例子本身经常提供一些线索,告诉我们要组合哪些函数,以及如何对结果程序进行排序。在我们感兴趣的文本处理领域,线索来自简单的文本特征:例如,如果输入和输出字符串的部分是彼此的排列,这表明排序可能很有用。我们描述了一个系统,学习这些线索的可靠性,允许更快的搜索和程序的原则性排名。在原型系统上的实验表明,这种学习方法可以有效地推理文本处理任务。

英文摘要:

In Programming by Example, a system attempts to infer a program from input and output examples, generally by searching for a composition of certain base functions. Performing a naive brute force search is infeasible for even mildly involved tasks. We note that the examples themselves often present clues as to which functions to compose, and how to rank the resulting programs. In text processing, which is our domain of interest, clues arise from simple textual features: for example, if parts of the input and output strings are permutations of one another, this suggests that sorting may be useful. We describe a system that learns the reliability of such clues, allowing for faster search and a principled ranking over programs. Experiments on a prototype of this system show that this learning scheme facilitates efficient inference on a range of text processing tasks.

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

↑