Synthesizing Libraries of Programs with Auxiliary Functions

Published: 21 Apr 2024, Last Modified: 21 Apr 2024Accepted by TMLREveryoneRevisionsBibTeX
Abstract: A common approach to program synthesis is to use a learned function to guide the search for a program that satisfies the user's intent. In this paper, we propose a method that offers search guidance, through a domain-dependent auxiliary function, that can be orthogonal to the guidance previous functions provide. Our method, which we call Auxiliary-Based Library Learning (Aulile), searches for a solution in the program space using a base algorithm. If this search does not produce a solution, Aulile enhances the language with a library of programs discovered in the search that optimizes for the auxiliary function. Then, it repeats the search with this library-augmented language. This process is repeated until a solution is found or the system reaches a timeout. We evaluate Aulile in string manipulation tasks. Aulile improved, in some cases by a large margin, the performance of several base algorithms that use different search and learning strategies: Bus, Bustle, Crossbeam, and Bee Search. Our results suggest that Aulile offers an effective method of injecting domain knowledge into existing systems through a library learning scheme that optimizes for an auxiliary function.
Submission Length: Regular submission (no more than 12 pages of main content)
Video: https://youtu.be/SJAAMtyqqnE
Code: https://github.com/lelis-research/aulile
Assigned Action Editor: ~Danny_Tarlow1
Submission Number: 1669
Loading