用于搜索综合中元语法矩阵的遗传算法
Genetic Algorithms for Searching a Matrix of Metagrammars for Synthesis
AI总结:
本文将语法引导综合中的句法模板空间建模为规则矩阵,提出用遗传算法等简单搜索方法在少量训练数据下搜索合适模板,提升求解器的基准解决数量与速度。
摘要:
语法引导的综合是程序综合中的一种范式,其中候选解的搜索空间受到以语法形式呈现的句法模板的约束。这些句法约束有两个用途:将语言限制在用户期望的空间内,同时使搜索空间对于综合器而言易于处理。如果给定一个编写良好的句法模板,这是一种极其有效的技术。然而,这高度依赖于用户提供这样的模板:过大的句法模板会导致更大的搜索空间和更慢的综合速度,而过小的句法模板可能不包含所需的解。在本工作中,我们将句法模板空间构建为一个规则矩阵,并展示如何利用遗传算法等简单搜索技术,在少量训练数据的情况下有效地搜索该矩阵,从而使最先进的综合求解器在已解决基准测试数量和求解时间两方面都得到改善。
英文摘要:
Syntax-guided synthesis is a paradigm in program synthesis in which the search space of candidate solutions is constrained by a syntactic template in the form of a grammar. These syntactic constraints serve two purposes: constraining the language to the space the user desires, but also rendering the search space tractable for the synthesizer. Given a well-written syntactic template, this is an extremely effective technique. However, this is highly dependent on the user providing such a template: a syntactic template that is too large results in a larger search space and slower synthesis, and a syntactic template that is too small may not contain the solution needed. In this work, we frame the space of syntactic templates as a matrix of rules, and demonstrate how this matrix can be searched effectively with little training data using simple search techniques such as genetic algorithms, giving improvements in both the number of benchmarks solved and solving time for the state-of-the-art synthesis solver.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。