NSynC:计算的归一化综合
NSynC: Normalised Synthesis of Computation
AI总结:
提出NSynC方法,通过直接枚举语义而非语法来避免程序综合中的语义重复,实现8.93倍加速。
摘要:
归纳式程序综合算法在程序空间中搜索满足某个规范的程序。根据编程语言的语法进行枚举会导致搜索空间庞大,从而综合速度缓慢,这在很大程度上是由于语义重复造成的。综合器可能不得不评估并拒绝多个语义相同但语法不同的程序,浪费资源。为了避免这种重复,我们提出了NSynC,一种基于语义的综合方法。通过直接枚举目标语言的语义,我们保证每个候选程序在语义上是唯一的,并且每个候选的评估都是有意义的。具体来说,我们使用自顶向下、类型导向的综合算法,搜索带有和类型的简单类型lambda演算的范式空间。我们的初步结果显示,在合成基准测试套件上,与无限制算法相比,几何平均加速比为8.93倍。
英文摘要:
Inductive program synthesis algorithms search a space of programs to find one that meets some specification. Enumerating according to the syntax of a programming language leads to a large search space, and hence slow synthesis, due in large part to semantic duplication. A synthesiser may have to evaluate -- and reject -- multiple semantically identical but syntactically different programs, wasting resources. To avoid this duplication, we present NSynC, a synthesis-by-semantics approach. By enumerating the semantics of the target language directly, we guarantee that each candidate program is semantically unique and that each evaluation of a candidate is meaningful. Specifically, we search the space of normal forms for the simply-typed lambda calculus with sums using a top-down, type-directed synthesis algorithm. Our preliminary results show a geomean speedup of 8.93x on a synthetic benchmark suite over the unrestricted algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。