atlas

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

Thought of Search: Planning with Language Models Through The Lens of Efficiency

NeurIPS 2024 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 4 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.

The paper analyzes soundness, completeness and LLM-call complexity of recent LLM planning methods, then proposes using GPT-4 to generate Python successor and goal-test code so that standard BFS/DFS solves four search datasets at 100% accuracy with only a few LLM calls.

Problem

Recent LLM-based planning methods (ReAct, ToT, RAP, LATS, etc.) are neither sound nor complete and require very many LLM calls, making them costly and unreliable for search problems.

Approach

Use an LLM once (with iterative, human-guided feedback) to generate Python code for the successor function and goal test, then run a classical sound and complete search (BFS/DFS) on that code without further LLM calls, so correctness can be validated before search.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use GPT-4 to generate successor and goal-test code, then run BFS instead of using LLM-driven search24 Game planning · 24 Game (1,362 instances)accuracy: 75% -> 100%Helped
Use GPT-4 to generate successor and goal-test code, then run DFS instead of LLM-driven Tree of ThoughtsMini crossword planning · Mini crosswords (20 games)LLM calls: ≈200 times in the worst case for each of the 20 gamesHelped
Use generated symbolic search components and BFS rather than LLM-based MCTS and self-consistencyPrOntoQA reasoning · PrOntoQA (4,000 questions)answer accuracy: 94.2% -> 100%Helped
Use generated symbolic search components and BFS rather than LLM-based MCTS and self-consistencyPrOntoQA reasoning · PrOntoQA (4,000 questions)proof accuracy: 78.8% -> 100%Helped
Generate successor and goal-test code once and reuse it for search, rather than invoking an LLM throughout searchThought of Search · 24 GameLLM calls: ≈100 calls to the LLM -> 1.2 interactions on average for the successor function and 1 interaction for the goal testHelped
Generate successor and goal-test code once and reuse it for search, rather than invoking an LLM throughout searchThought of Search · Mini crosswordsLLM calls: 2.4 interactions on average to produce a valid successor function, and 1.4 interactions on average to produce the goal tHelped
Generate successor and goal-test code once and reuse it for search, rather than invoking an LLM throughout searchThought of Search · BlocksWorldLLM calls: 2.8 and 1 iterations on averageHelped
Generate successor and goal-test code once and reuse it for search, rather than invoking an LLM throughout searchThought of Search · PrOntoQALLM calls: 1.6 and 1 iterations on averageHelped
Use set-based state representations rather than dictionaries of lists or object pairsThought of Search BFS · BlocksWorld (502 tasks)total solve time: 0.56s to 9.7sHelped

Surprising findings

Limitations

Experimental setup

Datasets: 24 game (ToT suite, 1362 instances) mini crosswords (20 games) BlocksWorld (502 instances) PrOntoQA (4000 questions)

Benchmarks: 24 game mini crosswords BlocksWorld PrOntoQA

Metrics: accuracy number of LLM calls total runtime states explored

Baselines: IO CoT ReAct ReWOO RAP ToT GoT Reflexion LATS

Builds on: Tree of Thoughts Reasoning via Planning LLM-Modulo generalized planning policy generation with LLMs

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