Guiding Enumerative Program Synthesis with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Pre-trained Large Language Models (LLMs) are beginning to dominate the discourse around automatic code generation with natural language specifications. In contrast, the best-performing synthesizers in the domain of formal synthesis with precise logical specifications are still based on enumerative algorithms. In this paper, we evaluate the abilities of LLMs to solve formal synthesis benchmarks by carefully crafting a library of prompts for the domain. When one-shot synthesis fails, we propose a novel enumerative synthesis algorithm, which integrates calls to an LLM into a weighted probabilistic search. This allows the synthesizer to provide the LLM with information about the progress of the enumerator, and the LLM to provide the enumerator with syntactic guidance in an iterative loop. We evaluate our techniques on benchmarks from the Syntax-Guided Synthesis (SyGuS) competition. We find that GPT-3.5 as a stand-alone tool for formal synthesis is easily outperformed by state-of-the-art formal synthesis algorithms, but our approach integrating the LLM into an enumerative synthesis algorithm shows significant performance gains over both the LLM and the enumerative synthesizer alone and the winning SyGuS competition tool.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 23 of its 45 references that are in the map. First posted on arXiv 6 Mar 2024.
Builds on
23 of 45 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2022LLM-Planner: Few-Shot Grounded Planning for Embodied Agents with Large Language Modelscited by 459
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
- 2016DeepCoder: Learning to Write Programscited by 145
- 2023Large Language Models Understand and Can be Enhanced by Emotional Stimulicited by 143
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 134
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
11 more
- 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
- 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
- 2023Lemur: Integrating Large Language Models in Automated Program Verificationcited by 49
- 2023Finding Inductive Loop Invariants using Large Language Modelscited by 35
- 2017Program Synthesis using Conflict-Driven Learningcited by 26
- 2015A Theory of Formal Synthesis via Inductive Learningcited by 17
- 2016Using SyGuS to Synthesize Reactive Motion Planscited by 3
- 2023Reinforcement Learning and Data-Generation for Syntax-Guided Synthesiscited by 3
- 2020Grammar Filtering For Syntax-Guided Synthesiscited by 2
- 2015Using Program Synthesis for Program Analysiscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 2.
9 papers.
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Taskscited by 9
- 2025An LLM-enabled Multi-Agent Autonomous Mechatronics Design Frameworkcited by 4
- 2025RAG-Verus: Repository-Level Program Verification with LLMs using Retrieval Augmented Generationcited by 3
- 2025Engineering Systems for Data Analysis Using Interactive Structured Inductive Programmingcited by 3
- 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversightcited by 2
- 2024EcoSearch: A Constant-Delay Best-First Search Algorithm for Program Synthesiscited by 0
- 2025On Integrating Large Language Models and Scenario-Based Programming for Improving Software Reliabilitycited by 0
- 2025AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolutioncited by 0
- 2026AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programscited by 0
- 2026AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programs24 Jun 2026
- 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversight11 Feb 2026
- 2025AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolution8 Dec 2025
- 2025On Integrating Large Language Models and Scenario-Based Programming for Improving Software Reliability11 Sep 2025
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Tasks26 May 2025
- 2025An LLM-enabled Multi-Agent Autonomous Mechatronics Design Framework20 Apr 2025
- 2025Engineering Systems for Data Analysis Using Interactive Structured Inductive Programming18 Mar 2025
- 2025RAG-Verus: Repository-Level Program Verification with LLMs using Retrieval Augmented Generation7 Feb 2025
- 2024EcoSearch: A Constant-Delay Best-First Search Algorithm for Program Synthesis23 Dec 2024