Planning with language models
The model proposes steps; search, a verifier and a classical planner supply guarantees.
Greedy steps and traps
Memory keeps what was learned; it does not choose the next action. A ReAct loop that always takes is greedy best-first with frontier size one and no backtracking. On the Sussman anomaly (C on A, goal A on B on C), “put B on C” makes a goal fact true and buries A — then the only legal move undoes it, and “B on C” looks good again. A scripted proposer with noise needed 3–15 moves (mean 6.8) over ten runs for a 3-move optimum that A* finds after expanding four states.
Key idea. An LM is a good source of candidate steps and a poor guarantor of plans. Let the model propose; let something sound check; search over proposals with a goal test, backtracking and a budget — or let the model formulate the problem and a classical planner solve it.
Plan first or interleave
Task decomposition is the simplest planning: break the goal into subgoals in language. Plan-and-execute writes the whole plan once (ReWOO-style); workers run tools without the model until composition or failure. Interleaved planning (ReAct) decides each step after the observation. With prefix , tool steps and tokens per step, interleaved reads tokens; plan-and-execute reads about . For , , : 19 500 versus 6 500, and fixed-plan tools can run in parallel. The cost is adaptivity unless you replan. Hybrids keep a short to-do at the end of context and revise it when observations contradict it — but prose plans still lack preconditions and a goal test until the world checks them.
How well LMs plan alone
PlanBench checks generated plans with VAL on IPC-style domains. On 600 Blocksworld problems (3–5 blocks, NL domain + one example), GPT-4 (2023) produced a valid plan for 34.3%; 39 of 50 people given the same description managed 78%. Mystery Blocksworld only renames predicates/actions: GPT-4 fell to 4.3% (2% with random strings). A model that planned would not care about names. Reasoning models moved the snapshot: o1-preview (2024) reached 97.8% on Blocksworld and 52.8% on Mystery, but only 23.6% on larger 6–20 block instances that Fast Downward solved all of, faster, with validity guarantees. Success still falls with plan length; when a sound verifier exists, use it — GPT-4 recovered 41/50 previously failed Blocksworld plans within 15 rounds when VAL named the broken precondition.
LLM+P
LLM+P (Liu et al., 2023) splits work along the classical line: a person writes the PDDL domain once; the model, given NL and one example problem file, writes objects/init/goal; Fast Downward (or similar) searches; the model translates the plan back to NL. On seven domains × 20 problems, GPT-4 alone got optimal Blocksworld plans 15% of the time (valid 30%); LLM+P reached 90% optimal there and high scores on Grippers/Storage. Without the example file it solved nothing — formulation, not search, is the weak link. Remaining errors are parseable separately; the world must still fit deterministic, fully observable STRIPS.
Search over model proposals
Where no planning language fits, search over the model’s proposals: select frontier states → sample actions from → drop what a mechanical verifier rejects → transition via environment/simulator/world model → keep the best by . Greedy following is with no verifier. Tree of Thoughts beams or DFS over textual partial solutions (model as and ). RAP adds a textual world model and MCTS/UCT. LATS runs MCTS over ReAct trajectories with and reflections on failure. In a blocks simulation (), greedy without verifier collapsed; with verifier, six-block success was ~60.5%; beam search ~84.5%; A* with misplaced-blocks always optimal. Search multiplies model calls; backtracking needs a simulator or world model — live purchases do not rewind.
World models and next
When the real environment cannot reset, plan in a model of the world. RAP uses the LM as that model in text; WebDreamer imagines page outcomes for candidate web actions, scores them, and executes only the best — competitive with real tree search at 4–5× efficiency, usable on live sites. Imagined errors compound with depth, so keep lookahead short (one or two steps) and treat the real environment as the final verifier.
Next: search already used verifiers and reflections. Reflection and self-correction asks when a model’s critique of its own work helps — and why it often does not without an external signal.
Check your understanding
The same questions as in Pulse. Answers are shared between modes.
Answers are saved on the server and tied to this browser until you sign in.