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

基于最佳优先自底向上搜索的程序综合

Program Synthesis with Best-First Bottom-Up Search

Department of Computing Science(计算科学系);Alberta Machine Intelligence Institute (Amii)(阿尔伯塔机器智能研究所(Amii));University of Alberta(阿尔伯塔大学)

Saqib Ameen, Levi H. S. Lelis

AI总结:

针对现有代价引导自底向上搜索算法存在信息丢失、无法实现最佳优先搜索的问题,提出Bee Search算法及新代价函数,在复杂DSL的程序综合任务上性能更优。

摘要:

代价引导的自底向上搜索(BUS)算法利用代价函数引导搜索,以求解程序综合任务。本文指出现有最先进的代价引导BUS算法存在一个共性问题:它们会丢失模型提供的有用信息,无法按照代价函数以最佳优先顺序执行搜索。我们提出了一种新颖的最佳优先自底向上搜索算法,将其命名为Bee Search,该算法不存在信息丢失问题,能够以最佳优先方式执行代价引导的自底向上综合。重要的是,Bee Search在程序生成层面实现最佳优先搜索,即它甚至不会在内存中创建代价比解程序更高的程序。它通过在程序代价的抽象空间中执行搜索,实现了生成层面的最佳优先排序。我们还提出了一种新的代价函数,能更好地利用现有代价模型提供的信息。在字符串操作和位向量任务上的实验结果表明,当采用更复杂的领域特定语言(DSLs)时,Bee Search的性能优于现有的代价引导BUS方法;在使用更简单的DSLs时,Bee Search与现有方法表现相当。此外,我们提出的新代价函数结合Bee Search,在字符串操作任务上的性能优于以往的代价函数。

英文摘要:

Cost-guided bottom-up search (BUS) algorithms use a cost function to guide the search to solve program synthesis tasks. In this paper, we show that current state-of-the-art cost-guided BUS algorithms suffer from a common problem: they can lose useful information given by the model and fail to perform the search in a best-first order according to a cost function. We introduce a novel best-first bottom-up search algorithm, which we call Bee Search, that does not suffer information loss and is able to perform cost-guided bottom-up synthesis in a best-first manner. Importantly, Bee Search performs best-first search with respect to the generation of programs, i.e., it does not even create in memory programs that are more expensive than the solution program. It attains best-first ordering with respect to generation by performing a search in an abstract space of program costs. We also introduce a new cost function that better uses the information provided by an existing cost model. Empirical results on string manipulation and bit-vector tasks show that Bee Search can outperform existing cost-guided BUS approaches when employing more complex domain-specific languages (DSLs); Bee Search and previous approaches perform equally well with simpler DSLs. Furthermore, our new cost function with Bee Search outperforms previous cost functions on string manipulation tasks.

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

↑