Classical Planning with LLM-Generated Heuristics: Challenging the State of the Art with Python Code
Not on the map. Why?
Abstract (arXiv)
In recent years, large language models (LLMs) have shown remarkable capabilities in various artificial intelligence problems. However, they fail to plan reliably, even when prompted with a detailed definition of the planning task. Attempts to improve their planning capabilities, such as chain-of-thought prompting, fine-tuning, and explicit "reasoning" still yield incorrect plans and usually fail to generalize to larger tasks. In this paper, we show how to use LLMs to generate correct plans, even for out-of-distribution tasks of increasing size. For a given planning domain, we ask an LLM to generate several domain-dependent heuristic functions in the form of Python code, evaluate them on a set of training tasks within a greedy best-first search, and choose the strongest one. The resulting LLM-generated heuristics solve many more unseen test tasks than state-of-the-art domain-independent heuristics for classical planning. They are even competitive with the strongest learning algorithm for domain-dependent planning. These findings are especially remarkable given that our proof-of-concept implementation is based on an unoptimized Python planner and the baselines all build upon highly optimized C++ code. In some domains, the LLM-generated heuristics expand fewer states than the baselines, revealing that they are not only efficiently computable, but sometimes even more informative than the state-of-the-art heuristics. Overall, our results show that sampling a set of planning heuristic function programs can significantly improve the planning capabilities of LLMs.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 34 of its 92 references that are in the map. First posted on arXiv 24 Mar 2025.
Builds on
34 of 92 references.
References · 34
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2023LLM+P: Empowering Large Language Models with Optimal Planning Proficiencycited by 496
- 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 308
- 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 204
- 2023Generalized Planning in PDDL Domains with Pretrained Large Language Modelscited by 139
- 2024Chain of Thoughtlessness? An Analysis of CoT in Planningcited by 100
22 more
- 2025S*: Test Time Scaling for Code Generationcited by 95
- 2023Algorithm of Thoughts: Enhancing Exploration of Ideas in Large Language Modelscited by 92
- 2014The LAMA Planner: Guiding Cost-Based Anytime Planning with Landmarkscited by 86
- 2023On the Planning Abilities of Large Language Models (A Critical Investigation with a Proposed Benchmark)cited by 85
- 2019Learning Domain-Independent Planning Heuristics with Hypergraph Networkscited by 50
- 2021Learning General Optimal Policies with Graph Neural Networks: Expressive Power, Transparency, and Limitscited by 38
- 2025LLMs as Planning Formalizers: A Survey for Leveraging Large Language Models to Construct Automated Planning Modelscited by 38
- 2024Thought of Search: Planning with Language Models Through The Lens of Efficiencycited by 32
- 2023Learning Domain-Independent Heuristics for Grounded and Lifted Planningcited by 31
- 2022Learning Generalized Policies Without Supervision Using GNNscited by 22
- 2024NL2Plan: Robust LLM-Driven Planning from Minimal Text Descriptionscited by 22
- 2024Return to Tradition: Learning Reliable Heuristics with Classical Machine Learningcited by 19
- 2024Exploring and Benchmarking the Planning Capabilities of Large Language Modelscited by 19
- 2024Planning in Strawberry Fields: Evaluating and Improving the Planning and Scheduling Capabilities of LRM o1cited by 17
- 2025LLMs Can Plan Only If We Tell Themcited by 15
- 2022Learning Sketches for Decomposing Planning Problems into Subproblems of Bounded Width: Extended Versioncited by 12
- 2024Chasing Progress, Not Perfection: Revisiting Strategies for End-to-End LLM Plan Generationcited by 11
- 2025Successor-Generator Planning with LLM-generated Heuristicscited by 7
- 2023Generalized Planning as Heuristic Search: A new planning search-space that leverages pointers over objectscited by 6
- 2025Complex LLM Planning via Automated Heuristics Discoverycited by 6
- 2022Sampling from Pre-Images to Learn Heuristic Functions for Classical Planningcited by 3
- 2022Understanding Sample Generation Strategies for Learning Heuristic Functions in Classical Planningcited by 3
Built on by
Citing papers per year: 2025: 6; 2026: 12.
18 papers.
Sort:
By area:
- 2025Teaching LLMs to Plan: Logical Chain-of-Thought Instruction Tuning for Symbolic Planningcited by 15
- 2025Language Models For Generalised PDDL Planning: Synthesising Sound and Programmatic Policiescited by 7
- 2025Frontier Large Language Models Rival State-of-the-Art Plannerscited by 6
- 2025Weisfeiler-Leman Features for Planning: A 1,000,000 Sample Size Hyperparameter Studycited by 2
- 2026RunAgent: Interpreting Natural-Language Plans with Constraint-Guided Executioncited by 2
- 2026Agentic LLM Planning via Step-Wise PDDL Simulation: An Empirical Characterisationcited by 1
- 2026Planning in the LLM Era: Building for Reliability and Efficiencycited by 1
- 2026LLM-Evolved Domain-Independent Heuristics for Symbolic AI Planningcited by 1
- 2026Coding Agents for Generalized Task and Motion Planning Problemscited by 1
- 2025Scaling Multi-Agent Epistemic Planning through GNN-Derived Heuristicscited by 0
- 2025Iterative Deployment Improves Planning Skills in LLMscited by 0
- 2026Personalized Medication Planning via Direct Domain Modeling and LLM-Generated Heuristicscited by 0
6 more
- 2026Hierarchical Task Network Planning with LLM-Generated Heuristicscited by 0
- 2026Property-Guided LLM Program Synthesis for Planningcited by 0
- 2026LLM-Evolved Pattern Generators for Optimal Classical Planningcited by 0
- 2026Learning Admissible Heuristics via Cost Partitioningcited by 0
- 2026Training the Orchestrator: A Supervised Approach to End-to-End PDDL Planning with LLM Agentscited by 0
- 2026Planning with Transformers: Chain of Computation and Structured Context Windowscited by 0
- 2026Coding Agents for Generalized Task and Motion Planning Problems24 Sep 2026
- 2026Planning with Transformers: Chain of Computation and Structured Context Windows20 Jul 2026
- 2026Training the Orchestrator: A Supervised Approach to End-to-End PDDL Planning with LLM Agents19 Jun 2026
- 2026Learning Admissible Heuristics via Cost Partitioning3 Jun 2026
- 2026LLM-Evolved Pattern Generators for Optimal Classical Planning1 Jun 2026
- 2026LLM-Evolved Domain-Independent Heuristics for Symbolic AI Planning28 May 2026
- 2026Planning in the LLM Era: Building for Reliability and Efficiency21 May 2026
- 2026Property-Guided LLM Program Synthesis for Planning15 May 2026
- 2026Hierarchical Task Network Planning with LLM-Generated Heuristics8 May 2026
- 2026RunAgent: Interpreting Natural-Language Plans with Constraint-Guided Execution1 May 2026
- 2026Agentic LLM Planning via Step-Wise PDDL Simulation: An Empirical Characterisation6 Mar 2026
- 2026Personalized Medication Planning via Direct Domain Modeling and LLM-Generated Heuristics7 Jan 2026
6 more
- 2025Iterative Deployment Improves Planning Skills in LLMs31 Dec 2025
- 2025Frontier Large Language Models Rival State-of-the-Art Planners12 Nov 2025
- 2025Teaching LLMs to Plan: Logical Chain-of-Thought Instruction Tuning for Symbolic Planning14 Sep 2025
- 2025Weisfeiler-Leman Features for Planning: A 1,000,000 Sample Size Hyperparameter Study25 Aug 2025
- 2025Language Models For Generalised PDDL Planning: Synthesising Sound and Programmatic Policies25 Aug 2025
- 2025Scaling Multi-Agent Epistemic Planning through GNN-Derived Heuristics18 Aug 2025
- 2025Frontier Large Language Models Rival State-of-the-Art Plannerscited by 6
- 2025Weisfeiler-Leman Features for Planning: A 1,000,000 Sample Size Hyperparameter Studycited by 2
- 2026RunAgent: Interpreting Natural-Language Plans with Constraint-Guided Executioncited by 2
- 2026Planning in the LLM Era: Building for Reliability and Efficiencycited by 1
- 2026LLM-Evolved Domain-Independent Heuristics for Symbolic AI Planningcited by 1
- 2025Scaling Multi-Agent Epistemic Planning through GNN-Derived Heuristicscited by 0
- 2025Iterative Deployment Improves Planning Skills in LLMscited by 0
- 2026Personalized Medication Planning via Direct Domain Modeling and LLM-Generated Heuristicscited by 0
- 2026Hierarchical Task Network Planning with LLM-Generated Heuristicscited by 0
- 2026Property-Guided LLM Program Synthesis for Planningcited by 0
- 2026LLM-Evolved Pattern Generators for Optimal Classical Planningcited by 0
- 2026Learning Admissible Heuristics via Cost Partitioningcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Planning with Transformers: Chain of Computation and Structured Context Windows20 Jul 2026
- 2026Learning Admissible Heuristics via Cost Partitioning3 Jun 2026
- 2026LLM-Evolved Pattern Generators for Optimal Classical Planning1 Jun 2026
- 2026LLM-Evolved Domain-Independent Heuristics for Symbolic AI Planning28 May 2026
- 2026Planning in the LLM Era: Building for Reliability and Efficiency21 May 2026
- 2026Property-Guided LLM Program Synthesis for Planning15 May 2026
- 2026Hierarchical Task Network Planning with LLM-Generated Heuristics8 May 2026
- 2026RunAgent: Interpreting Natural-Language Plans with Constraint-Guided Execution1 May 2026
- 2026Personalized Medication Planning via Direct Domain Modeling and LLM-Generated Heuristics7 Jan 2026
- 2025Iterative Deployment Improves Planning Skills in LLMs31 Dec 2025
- 2025Frontier Large Language Models Rival State-of-the-Art Planners12 Nov 2025
- 2025Weisfeiler-Leman Features for Planning: A 1,000,000 Sample Size Hyperparameter Study25 Aug 2025
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Can LLM-Reasoning Models Replace Classical Planning? A Benchmark Study
- 2025An Extensive Evaluation of PDDL Capabilities in off-the-shelf LLMs
- 2024LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworks
- 2023Can LLMs Fix Issues with Reasoning Models? Towards More Likely Models for AI Planning
- 2025Large Language Models for Planning: A Comprehensive and Systematic Survey
- 2024Query-Efficient Planning with Language Models
- 2026LeanPlan: Optimal Planning with LLM-Generated Heuristics and Admissibility Proofs
- 2026Language Models as Higher-Order Planning Formalizers