Going Bananas! - 用 Origami 展开程序合成
Going Bananas! - Unfolding Program Synthesis with Origami
AI总结:
本文提出Origami程序合成技术,通过引入累积折叠、展开等递归方案解耦数据遍历与处理,在标准基准测试中表现优于HOTGP等算法,能稳定解决低成功率问题。
摘要:
使用输入输出示例自动创建计算机程序是一项具有挑战性的任务,尤其是在尝试合成需要循环或递归的计算机程序时。尽管递归的使用可以使算法描述更加简洁和声明式,但这一概念给程序合成算法带来了额外的障碍,例如非终止程序的创建和(试探性)评估。其中一个原因是,递归函数必须定义如何遍历(或生成)数据结构,同时还要定义如何处理它。在函数式编程中,递归方案的概念通过将重点放在后者上来解耦这两项任务。这也有助于避免程序合成过程中递归函数的一些陷阱,正如我们在之前介绍 Origami 技术的工作中所论述的那样。在之前的论文中,我们展示了该技术如何有效地找到需要折叠列表的程序的解决方案。在这项工作中,我们将其他递归方案纳入 Origami,例如累积折叠、展开,以及展开和折叠的组合。我们在标准 General Program Synthesis Benchmark Suite 1 的 29 个问题上评估了 Origami,与其他知名算法相比获得了良好的结果。总体而言,Origami 在 25% 的问题上取得了优于其前身(HOTGP)的最佳结果,并且与其他方法相比增幅更高。不仅如此,它还能持续找到许多算法报告成功率较低的问题的解决方案。
英文摘要:
Automatically creating a computer program using input-output examples can be a challenging task, especially when trying to synthesize computer programs that require loops or recursion. Even though the use of recursion can make the algorithmic description more succinct and declarative, this concept creates additional barriers to program synthesis algorithms such as the creation and the (tentative) evaluation of non-terminating programs. One reason is that the recursive function must define how to traverse (or generate) the data structure and, at the same time, how to process it. In functional programming, the concept of recursion schemes decouples these two tasks by putting a major focus on the latter. This can also help to avoid some of the pitfalls of recursive functions during program synthesis, as argued in a previous work where we introduced the Origami technique. In our previous paper, we showed how this technique was effective in finding solutions for programs that require folding lists. In this work, we incorporate other recursion schemes into Origami, such as accumulated folding, unfolding, and the combination of unfolding and folding. We evaluated Origami on the 29 problems of the standard General Program Synthesis Benchmark Suite 1, obtaining favorable results against other well-known algorithms. Overall, Origami achieves the best result in 25% more problems than its predecessor (HOTGP) and an even higher increase when compared to other approaches. Not only that, but it can also consistently find a solution to problems that many algorithms report a low success rate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。