Program Synthesis with Best-First Bottom-Up Search

被引:0
作者
Ameen, Saqib [1 ]
Lelis, Levi H. S. [1 ]
机构
[1] Univ Alberta, Alberta Machine Intelligence Inst Amii, Dept Comp Sci, Edmonton, AB, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:1275 / 1310
页数:36
相关论文
共 50 条
[41]   Programming by sketching for bit-streaming programs [J].
Solar-Lezama, A ;
Rabbah, R ;
Bodík, R ;
Ebcioglu, K .
ACM SIGPLAN NOTICES, 2005, 40 (06) :281-294
[42]  
Solar-Lezama A, 2006, ACM SIGPLAN NOTICES, V41, P404, DOI 10.1145/1168917.1168907
[43]  
Solar-Lezama A, 2009, LECT NOTES COMPUT SC, V5904, P4, DOI 10.1007/978-3-642-10672-9_3
[44]   METHODOLOGY FOR LISP PROGRAM CONSTRUCTION FROM EXAMPLES [J].
SUMMERS, PD .
JOURNAL OF THE ACM, 1977, 24 (01) :161-175
[45]   TRANSIT: Specifying Protocols with Concolic Snippets [J].
Udupa, Abhishek ;
Raghavan, Arun ;
Deshmukh, Jyotirmoy V. ;
Mador-Haim, Sela ;
Martin, Milo M. K. ;
Alur, Rajeev .
ACM SIGPLAN NOTICES, 2013, 48 (06) :287-296
[46]  
Verma A, 2018, PR MACH LEARN RES, V80
[47]  
Waldinger RJ, 1969, P 1 INT JOINT C ARTI, P241
[48]  
Wang X., 2017, PROC ACM PROGRAM LAN, V2
[49]  
Warren H.S., 2013, Hacker's Delight
[50]  
Zohar A, 2019, Arxiv, DOI arXiv:1809.04682