arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.13040cs.NEcs.AIcs.SE
收藏

Iterative Genetic Improvement:标度随机程序合成

Iterative Genetic Improvement: Scaling Stochastic Program Synthesis

Michigan State University(密歇根州立大学);Beihang University(北京航空航天大学)

Yuan Yuan, Wolfgang Banzhaf

摘要:

程序合成旨在{ \it自动}从底层程序设计语言中找到满足给定规范的程序。虽然这有可能彻底改变计算,但如何有效地搜索程序的广阔空间是程序合成中尚未解决的挑战。在需要大型程序来求解的情况下,通常认为{ \it随机}搜索比其他类别的搜索技术具有优势。不幸的是,现有的随机程序合成器不能很好地满足这一期望,遭受的可扩展性问题。在这里,我们提出了一个新的框架随机程序合成,称为迭代遗传改进,以克服这个问题,一种技术的灵感来自实践的软件开发过程。迭代遗传改进算法的核心思想是先对参考程序进行遗传改进,然后用最优的程序迭代地替换参考程序,与传统的随机综合方法相比,迭代遗传改进算法能够以更稳健的方式逐步增加程序的复杂度。我们评估的方法上的两个程序合成域:列表操作和字符串转换。我们的实证结果表明,这种方法具有相当大的优势,几个代表性的随机程序合成器技术,无论是在可扩展性和解决方案的质量。

英文摘要:

Program synthesis aims to {\it automatically} find programs from an underlying programming language that satisfy a given specification. While this has the potential to revolutionize computing, how to search over the vast space of programs efficiently is an unsolved challenge in program synthesis. In cases where large programs are required for a solution, it is generally believed that {\it stochastic} search has advantages over other classes of search techniques. Unfortunately, existing stochastic program synthesizers do not meet this expectation very well, suffering from the scalability issue. Here we propose a new framework for stochastic program synthesis, called iterative genetic improvement to overcome this problem, a technique inspired by the practice of the software development process. The key idea of iterative genetic improvement is to apply genetic improvement to improve a current reference program, and then iteratively replace the reference program by the best program found. Compared to traditional stochastic synthesis approaches, iterative genetic improvement can build up the complexity of programs incrementally in a more robust way. We evaluate the approach on two program synthesis domains: list manipulation and string transformation. Our empirical results indicate that this method has considerable advantages over several representative stochastic program synthesizer techniques, both in terms of scalability and of solution quality.

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

↑