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

度量程序合成

Metric Program Synthesis

John Feser, Isil Dillig, Armando Solar-Lezama

摘要:

我们提出了一种新的域不可知的合成技术,从输入输出的例子生成程序。我们的方法,称为度量程序合成,放宽了众所周知的观测等价性的想法(广泛用于自下而上枚举合成)到一个较弱的观测相似性的概念,减少合成器需要探索的搜索空间的目标。我们的方法聚类程序到等价类的距离度量的基础上,并构造一个版本空间,competencies表示“近似正确”的程序。然后,给定一个“足够接近”的程序从这个版本空间采样,我们的方法使用的距离引导修复算法找到一个程序,完全匹配给定的输入输出的例子。我们已经实现了我们提出的度量程序合成技术中的一个工具,称为SyMetric和评估它在三个不同的领域考虑在以前的工作。我们的评估表明,SyMetric优于其他使用观测等效性的领域不可知合成器,并且它实现了与针对这些领域设计或训练的特定领域合成器竞争的结果。

英文摘要:

We present a new domain-agnostic synthesis technique for generating programs from input-output examples. Our method, called metric program synthesis, relaxes the well-known observational equivalence idea (used widely in bottom-up enumerative synthesis) into a weaker notion of observational similarity, with the goal of reducing the search space that the synthesizer needs to explore. Our method clusters programs into equivalence classes based on a distance metric and constructs a version space that compactly represents "approximately correct" programs. Then, given a "close enough" program sampled from this version space, our approach uses a distance-guided repair algorithm to find a program that exactly matches the given input-output examples. We have implemented our proposed metric program synthesis technique in a tool called SyMetric and evaluate it in three different domains considered in prior work. Our evaluation shows that SyMetric outperforms other domain-agnostic synthesizers that use observational equivalence and that it achieves results competitive with domain-specific synthesizers that are either designed for or trained on those domains.

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

↑