HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis
Abstract
Many structured prediction and reasoning tasks can be framed as program synthesis problems, where the goal is to generate a program in a \emph{domain-specific language} (DSL) that transforms input data into the desired output. Unfortunately, purely neural approaches, such as large language models (LLMs), often fail to produce fully correct programs in unfamiliar DSLs, while purely symbolic methods based on combinatorial search scale poorly to complex problems. Motivated by these limitations, we introduce a hybrid approach, where LLM completions for a given task are used to learn a task-specific, context-free surrogate model, which is then used to guide program synthesis. We evaluate this hybrid approach on three domains, and show that it outperforms both unguided search and direct sampling from LLMs, as well as existing program synthesizers.
Cite
Text
Barke et al. "HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis." Neural Information Processing Systems, 2024. doi:10.52202/079017-0499Markdown
[Barke et al. "HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis." Neural Information Processing Systems, 2024.](https://mlanthology.org/neurips/2024/barke2024neurips-hysynth/) doi:10.52202/079017-0499BibTeX
@inproceedings{barke2024neurips-hysynth,
title = {{HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis}},
author = {Barke, Shraddha and Gonzalez, Emmanuel Anaya and Kasibatla, Saketh Ram and Berg-Kirkpatrick, Taylor and Polikarpova, Nadia},
booktitle = {Neural Information Processing Systems},
year = {2024},
doi = {10.52202/079017-0499},
url = {https://mlanthology.org/neurips/2024/barke2024neurips-hysynth/}
}