atlas

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

ToolChain*: Efficient Action Space Navigation in Large Language Models with A* Search

ICLR 2024 · Large language models › Agents, code and math · approach: LLM planning with symbolic tools · 3 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 ToolChain*, an A*-style best-first tree search where LLM-generated API calls or reasoning steps form nodes, scored by LCS-based long-term memory heuristics and LLM self-consistency/imagination scores, evaluated on ToolBench and GSM8K/ToolQA.

Problem

LLM agents planning over large API action spaces either explore unidirectionally (open/closed-loop) and get stuck in locally optimal or erroneous paths, or exhaustively search tree spaces (DFS, MCTS) at high cost.

Approach

Formulates the action space as a decision tree and applies A* search with a cost f(n)=g(n)+h(n), where g combines task-specific LCS memory scores with LLM self-consistency frequency and h combines relative-position heuristics with an LLM "imagination" score; expansion requires a single LLM call per step rather than MCTS rollouts.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use ToolChain* instead of AdaPlannerGPT-3.5-turbo tool-use planning · ToolBench averagesuccess rate: 63.5 -> 68.5Helped
use ToolChain* instead of MCTSGPT-3.5-turbo tool-use planning · Google Sheetssuccess rate: 62.9 -> 61.4Hurt
use ToolChain* instead of AdaPlannerGPT-4 tool-use planning · ToolBench averagesuccess rate: 72.1 -> 74.7Helped
use ToolChain* instead of Self-ConsistencyGPT-3.5-turbo reasoning · GSM8Kaccuracy: 76.1 -> 77.0Helped
use ToolChain* instead of Self-ConsistencyGPT-3.5-turbo reasoning · ToolQAaccuracy: 47.0 -> 52.0Helped
use ToolChain* instead of Self-ConsistencyGPT-4 reasoning · GSM8Kaccuracy: 92.4 -> 93.5Helped
use ToolChain* instead of Self-ConsistencyGPT-4 reasoning · ToolQAaccuracy: 78.0 -> 84.0Helped
add task-specific cumulative heuristic g₁,t(n) (ablation)ToolChain* · ToolBench averagesuccess rate: 65.5 -> 68.5Helped
add self-consistency frequency g₂,t(n) (ablation)ToolChain* · ToolBench averagesuccess rate: 61.7 -> 68.5Helped
add task-specific future heuristic h₁,t(n) (ablation)ToolChain* · ToolBench averagesuccess rate: 65.0 -> 68.5Helped
add LLM imagination score h₂,t(n) (ablation)ToolChain* · ToolBench averagesuccess rate: 61.8 -> 68.5Helped
add cumulative cost g(n) (ablation)ToolChain* · ToolBench averagesuccess rate: 40.3 -> 68.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: ToolBench (Home Search, Trip Booking, Google Sheets, Virtual Home) GSM8K ToolQA hard subset

Benchmarks: ToolBench GSM8K ToolQA

Metrics: success rate accuracy running time

Baselines: GPT ReAct AdaPlanner ToT-DFS ToT-BFS MCTS Chain-of-Thought Self-Consistency

Builds on: Tree-of-Thoughts Monte Carlo Tree Search A* search self-consistency ToolBench

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