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

基于概率综合的黑盒元件建模

Modeling Black-Box Components with Probabilistic Synthesis

Bruce Collie, Jackson Woodruff, Michael F. P. O'Boyle

摘要:

本文关注的是黑盒预言的基础上合成程序:我们感兴趣的情况下,存在一个可执行的组件或库的实现,但其内部结构是未知的。我们只提供了一个API或函数签名,目的是合成一个具有等效行为的程序。为了解决这个问题,我们详细介绍了Presyn:一个程序合成器,设计用于与现有程序和编译器工具链进行灵活的互操作。Presyn使用高级命令式控制流结构和一对协作预测模型来有效地缩小潜在程序的空间。这些模型可以有效地训练小语料库的合成的例子。我们评估Presyn对五个领先的程序合成器收集的112个合成基准整理从以前的研究和现实世界的软件库。我们表明,Presyn能够合成更广泛的程序比他们每个人少的人力投入。我们展示了我们的方法的应用程序,以现实世界的代码和软件工程问题的两个案例研究:加速器库移植和检测重复的库重新实现。

英文摘要:

This paper is concerned with synthesizing programs based on black-box oracles: we are interested in the case where there exists an executable implementation of a component or library, but its internal structure is unknown. We are provided with just an API or function signature, and aim to synthesize a program with equivalent behavior. To attack this problem, we detail Presyn: a program synthesizer designed for flexible interoperation with existing programs and compiler toolchains. Presyn uses high-level imperative control-flow structures and a pair of cooperating predictive models to efficiently narrow the space of potential programs. These models can be trained effectively on small corpora of synthesized examples. We evaluate Presyn against five leading program synthesizers on a collection of 112 synthesis benchmarks collated from previous studies and real-world software libraries. We show that Presyn is able to synthesize a wider range of programs than each of them with less human input. We demonstrate the application of our approach to real-world code and software engineering problems with two case studies: accelerator library porting and detection of duplicated library reimplementations.

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

↑