atlas

Research map / Large language models / Agents, code and math

Classical Planning with LLM-Generated Heuristics: Challenging the State of the Art with Python Code

NeurIPS 2025 · Large language models › Agents, code and math · approach: Agent instruction-following benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Prompts LLMs to write domain-dependent heuristics as Python code, selects the best of 25 by training-set GBFS performance, and uses it in Pyperplan to solve IPC 2023 Learning Track out-of-distribution tasks.

Problem

LLMs fail to plan reliably end-to-end, especially on larger out-of-distribution tasks, and existing domain-independent or learned heuristics are either weak or costly to train per domain.

Approach

Sample n LLM-written Python heuristic functions per planning domain from a single prompt containing PDDL domain/examples and Pyperplan code, select the best on training tasks via greedy best-first search, and reuse it for all test tasks with no feedback loop to the LLM.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
generate and select a domain-dependent heuristic instead of generating plans end-to-endDeepSeek R1 · IPC 2023 test (720 tasks)solved tasks: 174 -> 373Helped
generate and select a domain-dependent heuristic instead of generating plans end-to-endGemini 2.0 Flash · IPC 2023 test (720 tasks)solved tasks: 19 -> 296Helped
use DeepSeek R1-generated heuristic instead of WLF-GPRClassical planning GBFS · IPC 2023 test (720 tasks)solved tasks: 371 -> 373Helped
use DeepSeek R1-generated heuristic instead of Fast Downward h_addClassical planning GBFS · IPC 2023 test (720 tasks)solved tasks: 324 -> 373Helped
remove detailed prompt instructions (ablation)Gemini 2.0 Flash Thinking heuristic generation · IPC 2023 test (720 tasks)best coverage: 423 -> 359Hurt
include the PDDL domain description (ablation)Gemini 2.0 Flash Thinking heuristic generation · IPC 2023 test (720 tasks)best coverage: 368 -> 423Helped
include example PDDL tasks (ablation)Gemini 2.0 Flash Thinking heuristic generation · IPC 2023 test (720 tasks)best coverage: 401 -> 423Helped
include domain-dependent heuristic examples (ablation)Gemini 2.0 Flash Thinking heuristic generation · IPC 2023 test (720 tasks)best coverage: 404 -> 423Helped
include the Pyperplan code (ablation)Gemini 2.0 Flash Thinking heuristic generation · IPC 2023 test (720 tasks)average coverage: 270.0 -> 267.0Mixed
use standard Spanner semantics where spanners break after useLLM-generated heuristic · Modified Spannerplan lengthMixed
obfuscate Blocksworld symbolsDeepSeek R1 heuristic · Blocksworldsolved tasks: 66 -> 40Hurt
use an o3-generated heuristic on an unseen domainPyperplan GBFS · Rod-Ringssolved tasks: 58 vs 59No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: IPC 2023 Learning Track domains (8 domains, training and test tasks) Autoscale benchmark set (exploratory) Rod-Rings (new domain) Obfuscated Blocksworld

Benchmarks: IPC 2023 Learning Track (8 domains, 90 test tasks each) Rod-Rings Obfuscated Blocksworld

Metrics: coverage (solved tasks) expansions plan length cost (USD) expansions per second

Baselines: blind heuristic h0 FF heuristic (Pyperplan) goal-count heuristic landmark count heuristic FF heuristic (Fast Downward) context-enhanced additive heuristic causal graph heuristic additive heuristic WL-GPR end-to-end LLM planning

Builds on: Pyperplan Fast Downward FF heuristic WL-GPR (Weisfeiler-Leman + Gaussian process regression) FunSearch

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy