arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.03243cs.AI
收藏

程序合成中典型实例的选择

Selecting Representative Examples for Program Synthesis

Massachusetts Institute of Technology(麻省理工学院)

Yewen Pu, Zachery Miranda, Armando Solar-Lezama, Leslie Pack Kaelbling

摘要:

程序合成是一类回归问题,其中人们以源代码程序的形式寻求解决方案,将输入精确地映射到其相应的输出。由于其精确和组合的性质,程序合成通常被公式化为约束满足问题,其中输入-输出示例被编码为约束并使用约束求解器来求解。这种公式化的一个关键挑战是可扩展性:虽然约束求解器可以很好地处理一些精心选择的示例,但大量的示例可能会在时间和内存方面产生显着的开销。我们描述了一种方法来发现一个子集的例子,这是小的和代表性的:该子集是迭代构造的,使用神经网络来预测未选择的例子的概率条件下,在子集中选择的例子,并greenly添加最不可能的例子。我们经验性地评估由我们的方法构建的子集的代表性,并证明这样的子集可以显着提高合成时间和稳定性。

英文摘要:

Program synthesis is a class of regression problems where one seeks a solution, in the form of a source-code program, mapping the inputs to their corresponding outputs exactly. Due to its precise and combinatorial nature, program synthesis is commonly formulated as a constraint satisfaction problem, where input-output examples are encoded as constraints and solved with a constraint solver. A key challenge of this formulation is scalability: while constraint solvers work well with a few well-chosen examples, a large set of examples can incur significant overhead in both time and memory. We describe a method to discover a subset of examples that is both small and representative: the subset is constructed iteratively, using a neural network to predict the probability of unchosen examples conditioned on the chosen examples in the subset, and greedily adding the least probable example. We empirically evaluate the representativeness of the subsets constructed by our method, and demonstrate such subsets can significantly improve synthesis time and stability.

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

↑