atlas

Research map / Large language models / Language, safety and interpretability

Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programming

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 2 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.

Proposes LLMFP, a zero-shot framework where LLMs formalize planning problems as constrained optimization (Definer, Formulator, Code Generator, Result Formatter, Self-Assessment) and solve them with the Z3 SMT solver, evaluated on 9 planning tasks.

Problem

Zero-shot LLM planning for complex multi-constraint and long-horizon tasks typically fails, while existing solutions rely on task-specific examples or critics that hurt cross-task generalization.

Approach

Recast planning problems as constrained optimization: LLMs extract goals, decision variables, and constraints (including implicit ones), formulate a task-agnostic JSON representation, generate Z3 SMT code, and self-assess/revise, with an external solver guaranteeing optimal plans.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LLMFP instead of direct planning with o1-previewGPT-4o planning on 9 tasks · 9 planning tasksoptimal rate: 37.6% improvementsHelped
Use LLMFP instead of direct planning with o1-previewClaude 3.5 Sonnet planning on 9 tasks · 9 planning tasksoptimal rate: 40.7% improvementsHelped
Add the Definer component (ablation)LLMFP GPT-4o · 5 multi-constraint problemsoptimal rate: 63.7% -> 79.1%Helped
Add the Formulator component (ablation)LLMFP GPT-4o · 5 multi-constraint problemsoptimal rate: 56.9% -> 79.1%Helped
Add Self Assess & Modification (ablation)LLMFP GPT-4o · 5 multi-constraint problemsoptimal rate: 57.2% -> 79.1%Helped
Add the Formulator component (ablation)LLMFP GPT-4o · 4 multi-step problemsoptimal rate: 0.1% -> 87.5%Helped
Add Self Assess & Modification (ablation)LLMFP GPT-4o · 4 multi-step problemsoptimal rate: 75.1% -> 87.5%Helped
Add one task-specific example to the FormulatorLLMFP GPT-4o · Coffeeoptimal rate: 61.2% -> 85.4%Helped
Add the Definer component (ablation)LLMFP GPT-4o · Coffeeoptimal rate: 8.6 -> 64.7Helped
Add the Formulator component (ablation)LLMFP GPT-4o · Warehouseoptimal rate: 2.0 -> 72.0Helped
Add Self Assess & Modification (ablation)LLMFP GPT-4o · Workforceoptimal rate: 27.3 -> 92.2Helped

Surprising findings

Limitations

Experimental setup

Datasets: Coffee Workforce Facility Task Allocation Warehouse Blocksworld Mystery Blocksworld Movie Gripper Sokoban (15-query eval set)

Benchmarks: Coffee Workforce Facility Task Allocation Warehouse Blocksworld Mystery Blocksworld Movie Gripper Sokoban

Metrics: optimal rate success rate wall time cost per query

Baselines: Direct CoT Code Code_SMT o1-preview direct planning

Builds on: chain-of-thought prompting Z3 SMT solver PDDL planning

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