HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis

Shraddha Barke, Emmanuel Anaya Gonzalez, Saketh Ram Kasibatla, Taylor Berg-Kirkpatrick, Nadia Polikarpova
2/3/2026

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Many structured prediction and reasoning tasks can be framed as program synthesis problems, where the goal is to generate a program in a 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{barke2026hysynth,
  title  = {HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis},
  author = {Shraddha Barke and Emmanuel Anaya Gonzalez and Saketh Ram Kasibatla and Taylor Berg-Kirkpatrick and Nadia Polikarpova},
  year   = {2026},
  eprint = {2405.15880},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.15880},
  url    = {https://arxiv.org/abs/2405.15880},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15880.svg)](https://codeofpaper.com/paper/2405.15880)

Discussion