acceptodds
Published as a conference paper at NeurIPS 2026

Property-Guided LLM Program Synthesis for Planning

André G. Pereira, Augusto B. Corrêa, Jendrik Seipp

Abstract

LLMs have shown impressive success in program synthesis, discovering programs that surpass previously known solutions. However, these approaches rely on simple numeric scores to signal program quality, such as the value of the solution or the number of passed tests. Because such a score offers no guidance on why a program failed, the system must generate and evaluate many candidates per problem in the hope that some succeed, increasing both LLM inference and evaluation costs. We study a different approach: property-guided LLM program synthesis. Instead of scoring programs after evaluation, we check whether a candidate satisfies a formally defined property. When the property is violated, we stop the evaluation early and provide the LLM with a concrete counterexample showing exactly how the program failed. This feedback drastically reduces both the number of program generations and the evaluation cost, and can guide the LLM to generate stronger programs. We evaluate this approach on PDDL planning domains, asking the LLM to synthesize direct heuristic functions: every state reachable by strictly improving transitions has a strictly improving successor. A heuristic with this property leads hill-climbing search directly to a goal state. A counterexample-guided repair loop generates one candidate program, checks the property over a training set, and returns the first case that violates the property. We evaluate our approach on ten planning domains with an out-of-distribution test set. The synthesized heuristics are effectively direct on virtually all test tasks, and compared to the best prior generation method our approach generates seven times fewer programs per domain on average, solves more tasks without using search, and requires several orders of magnitude less computation to evaluate candidates. Whenever a problem admits a verifiable property, property-guided LLM program synthesis can reduce synthesis and evaluation cost while improving program quality.

Keywords:
Paris

Reviews

Among:
Shape:
123456this paper, Bottom 1%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.33 over 3 reviews, above 0% of the others.
Reviewer_gJ4EOpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper introduces a technique of synthesizing heuristic functions for planning leveraging LLMs and validation / verification feedbacks on a given property. The verifier focuses on checking the direct property of heuristic functions, where a state must have at least one successor state with a better heuristic score. The LLM is initially prompted to generate a heuristic function and the verifier checks the direct property given the synthesized function and the task, and it reports concrete counter-examples when finding a property violation. The counter-example will be used to construct repair prompts for the LLM for iterative refinement. The evaluation shows that the proposed technique incurs lower inference-time cost and can solve more tasks than the baseline approaches.

Strengths and weaknesses

Strengths

  • The proposed approach combines classic technique (CEGIS) with LLM-based synthesizer for planning. The approach is grounded with a well-studied program synthesis approach.
  • Having a formally defined property and a verifier that checks it guards the LLM-based synthesis. The counter-example provides effective feedbacks to the LLMs, making the refinement loop converge faster.
  • The evaluation shows that the proposed approach can solve many more out-of-distribution tasks with synthesized and validated heuristic functions

Weaknesses

  • There are previous works on LLM-based iterative program synthesis and verification (e.g., Lemur [1]) that formally describes the repair loop. The proposed technique is an instantiation of these approaches for a specific domain (i.e., planning). The verification in the proposed technique is tied to a specific property.
  • The experiments did not report the time to get the first validated heuristic. This makes it unclear whether the proposed technique is applicable for time-sensitive applications.
  • The evaluations is only done with a strong frontier Gemini model. It does not show the performance on weaker models, which may not scale well on the iterative repair loops.

[1] Haoze Wu, Clark Barrett, & Nina Narodytska. (2024). Lemur: Integrating Large Language Models in Automated Program Verification.

Questions
  • Does the proposed technique assume certain structural property of the state transition system? For example, how does it support cyclic transition graphs, where the monotonicity of the heuristic function might need to be checked with respect to a certain ranking function of the cycles. Does the evaluation contain such cases?
  • Following on the previous question: the validation in the proposed method uses a DFS, but the paper does not describe how cycles are handled. Have you tried any symbolic approach for verification? For example, encoding both the task and heuristic functions as programs, making the check of the direct property as program specifications.
Limitations

yes

Paper formatting concerns

No major issue

Final justification

The paper proposes an LLM-based heuristic function synthesis technique that leverages verifier feedback. While the LLM-based code generation has been extensively studied, the application to planning domain and their formalization of the foundational theory adds unique values to the technique, and the author agreed to add more discussions to distinguish their position from the existing body of work. Therefore, I keep my score of 4.

Reviewer_HYQyOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The authors propose leveraging LLMs to extract direct heuristic functions which can help Pyperlan solve automated planning problems. Interestingly, their procedure involves providing counter-examples that can be exploited by the LLM to provide a better heuristic. Their evaluation is conducted considering several classing planning domains, and in particular the benchmark problems released in the IPC 2023 Learning Track. In this benchmark dataset, the training problems are significantly smaller than those in the test set.

Strengths and weaknesses

Strengths: *The paper presents an interesting contribution in an important field, such as the application of LLMs for automated planning. *The experimental evaluation is sound and extensive, and the performance is better than both baseline planning approaches, and a similar LLM-based approach for calculating heuristic functions (S&S by Correa et al.). *The experimental evaluation is conducted exploiting a standard benchmark (the IPC 2023 Learning Track), rather than a custom dataset. Importantly, this benchmark focuses on generalization capabilities, presenting small problems (with a few objects for each problem) in the training set, and bigger problems (with even hundreds of objects) in the test set. *Overall, the paper is clear in presenting both the automated planning and LLM aspects.

Weaknesses: *In their experimental evaluation, the authors consider only one LLM (Gemini 3.1 Pro), which limits the generalizability of the approach and the significance of the results. *Although the IPC 2023 Learning Track focuses on generalization, I think this contribution is not presented adequately in the paper. The authors present significant evidence for highlighting the differences between training and test problems in terms of size, but they do not do the same in terms of structure, simply stating that the problems “may differ significantly from training tasks”. Given the importance of these results, which can highlight how the LLM learns about the domain mechanics and the overall reasoning process, this analysis would be very useful. *Similarly, other problems such as data contamination, obfuscated tasks and evaluating LLMs on domains absent from the training data are relegated to the previous experiments conducted by Correa et al. and Chen et al. Considering that Correa et al. seem to present mostly qualitative results on these subjects, and that the approach by Chen et al. seem quite different (involving Reinforcement Learning, rather than simply generating the heuristic function), I think the authors should expand the discussion and the experimental evaluation on data contamination, obfuscated tasks and novel domains.

Questions

Q1. Why did the authors choose specifically Gemini 3.1 Pro in their experimental evaluation, and not consider other models? Q2. The authors state that their approach is inspired by CEGIS (Counterexample-guided inductive synthesis), from an external point of view other prompt engineering approaches (such as ReAct, or the works in [1], and [2]), perhaps mostly applied in code generation, seem quite similar. Can the authors please highlight their main contribution from this perspective? Q3. Can the authors please provide more information regarding the structural difference between training and test problems in the IPC 2023 Learning Track? Q4. Please answer Weakness 3.

[1] Zhibin Gou, Zhihong Shao, Yeyun Gong, Yelong Shen, Yujiu Yang, Nan Duan, and Weizhu Chen. Critic: Large language models can self-correct with tool-interactive critiquing, ICLR 2024 [2] Xinyun Chen, Maxwell Lin, Nathanael Schärli, and Denny Zhou. Teaching large language models to self-debug, ICLR 2024.

Limitations

yes

Paper formatting concerns

No concerns

Final justification

The additional experiments with GPT-5.5, Gemma 4 31B, and the three novel domains substantially address my concerns about model dependence, structural generalization, and data contamination. The distinction from self-correction methods is also clearer.

My remaining reservation is that applicability beyond planning is still argued rather than empirically demonstrated, so the broader claims should be moderated and the relation to CEGIS and verifier-guided repair clarified.

Reviewer_uaUPOpenReview ↗
Rating
1
Clarity
2
Confidence
4
Originality
1
Quality
1
Significance
1
Read review
Summary

The paper presents an LLM-based heuristic synthesis approach that works under the guidance of a direct property. Case studies with IPC benchmarks demonstrate its effectiveness and efficiency within out-of-distribution settings.

Strengths and weaknesses

Strengths

  • Counterexample guided heuristic generation pipeline for solvable cases.

Weakness

  • Limited novelty in LLM-based program synthesis, where this work intends to stand. However, it just addresses domain-specific programs that implement heuristics for planning, following a typical feedback paradigm with LLMs in the loop.
  • Limited novelty in LLM-based heuristic synthesis, because it assumes only solvable cases, for which direct heuristics exist anyway. Thus, it is not clear how this approach would perform for unsolvable cases, or more generally, for cases with unknown solvability.
  • Limited discussions with related work (especially those mentioned in the LLM-based heuristic generation, learning search control, and LLMs for planning parts) either theoretically or empirically.
  • Limited ablation studies, e.g., the contribution of wet DDA in comparison with DDA.
  • Overclaims or inconsistent claims: a) Lines 239 and 243 suggest this direct approach succeeds "without any search", but the validation subsection shows clearly the use of DFS in this approach; b) Line 348 indicates the synthesized heuristics are harder to interpret and verify, then how the qualitative analysis part interprets and verifies the outcomes for the two domains.
Questions

Additional questions:

  1. How about the training performance of this approach, in comparison with the baselines?
  2. Does the baseline [16] have to fix the budget of 25 candidates per domain? If not, the gains in inference and evaluation costs may be overstated.
  3. Please clarify the settings of both in-distribution and out-of-distribution scenarios, which lay the foundation for the generalizability of the synthesized heuristics.
Limitations

I would agree with the authors on the limitations discussed in this paper.

Paper formatting concerns

N/A

Final justification

My main concerns remain. The paper tends to overclaim its novelty and advantages, which should not be encouraged. My rating remains unchanged.

Comments on the paper

1 comment
Meta-review

The paper presents an architecture for synthesizing search guidance heuristics for PDDL planning through an LLM-based CEGIS-style loop.

The reviews pointed out:

  • Novelty and relation to prior works: CEGIS-style code generation has been heavily investigated in the past. The concrete contributions of this paper and the relation to those prior works had not been sufficiently clarified.
  • The text had a tendency to exaggerate/overclaim contributions and results.
  • The experimental evaluation was a bit shallow: only a single LLM, actually a frontier LLM, had been considered; important parameters (such as heuristic generation time) had not been reported; training/test set differences and the benchmark selection limited the generalizability of the results.

The rebuttal clarified most of those points.

There remain some concerns regarding novelty and the applicability of the developed method.

The CR should

  • Include the new empirical results (additional benchmarks, additional models, additional metrics).
  • Be more concrete on what are the contributions of this paper (primarily the application of the existing CEGIS-style code generation idea to a novel application context).
  • Discuss the relation to previous CEGIS-style works.
  • Significantly downtone statements regarding the generalizability of the architecture.
  • Discuss the requirements and limitations of the current method (such as solvability).

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.