[Paper Review] Reasoning with Language Model is Planning with World Model
RAP enables LLMs to reason via an internal world model and Monte Carlo Tree Search planning, improving plan generation, mathematical reasoning, and logical inference beyond standard chain-of-thought prompts.
Large language models (LLMs) have shown remarkable reasoning capabilities, especially when prompted to generate intermediate reasoning steps (e.g., Chain-of-Thought, CoT). However, LLMs can still struggle with problems that are easy for humans, such as generating action plans for executing tasks in a given environment, or performing complex math, logical, and commonsense reasoning. The deficiency stems from the key fact that LLMs lack an internal $ extit{world model}$ to predict the world $ extit{state}$ (e.g., environment status, intermediate variable values) and simulate long-term outcomes of actions. This prevents LLMs from performing deliberate planning akin to human brains, which involves exploring alternative reasoning paths, anticipating future states and rewards, and iteratively refining existing reasoning steps. To overcome the limitations, we propose a new LLM reasoning framework, $\underline{R}$easoning vi$\underline{a}$ $\underline{P}$lanning $ extbf{(RAP)}$. RAP repurposes the LLM as both a world model and a reasoning agent, and incorporates a principled planning algorithm (based on Monto Carlo Tree Search) for strategic exploration in the vast reasoning space. During reasoning, the LLM (as agent) incrementally builds a reasoning tree under the guidance of the LLM (as world model) and task-specific rewards, and obtains a high-reward reasoning path efficiently with a proper balance between exploration $ extit{vs.}$ exploitation. We apply RAP to a variety of challenging reasoning problems including plan generation, math reasoning, and logical inference. Empirical results on these tasks demonstrate the superiority of RAP over various strong baselines, including CoT and least-to-most prompting with self-consistency. RAP on LLAMA-33B surpasses CoT on GPT-4 with 33% relative improvement in a plan generation setting.
Motivation & Objective
- Motivate and address the gap that LLMs lack an internal world model for planning and long-horizon reasoning.
- Propose a framework (RAP) that repurposes LLMs as world models and reasoning agents.
- Demonstrate RAP’s effectiveness across plan generation, math reasoning, and logical inference.
- Show that planning with MCTS guided by learned rewards yields high-quality reasoning traces.
Proposed method
- Define state and action for each reasoning task and instantiate the world model using the LLM via prompting.
- Introduce rewards for reasoning steps, including action likelihood, state confidence, self-evaluation, and task-specific heuristics.
- Apply Monte Carlo Tree Search to build and evaluate reasoning traces with UCT-based selection, expansion, simulation, and back-propagation.
- Allow RAP aggregation (RAP-Aggregation) to ensemble multiple reasoning traces for final answers when appropriate.
- Demonstrate that the LLM, as world model and agent, can balance exploration vs. exploitation to uncover high-reward reasoning paths.
Experimental results
Research questions
- RQ1Can an internal world model embedded in an LLM improve planning-like reasoning across domains?
- RQ2Does planning with MCTS guided by LLM-derived rewards yield higher-quality reasoning traces than standard CoT prompts?
- RQ3How does RAP perform on plan generation, math reasoning, and logical inference compared to strong baselines?
- RQ4Can RAP surpass or match strong models (e.g., GPT-4 with CoT) in specific settings?
Key findings
- RAP achieves an average 64% success rate in 2/4/6-step Blocksworld plan generation, outperforming CoT substantially.
- LLaMA-33B with RAP surpasses GPT-4 with CoT by 33% relative gain in plan generation.
- RAP improves GSM8K math reasoning accuracy over Chain-of-Thought and Least-to-Most prompting with Self-Consistency, reaching about 48.8% accuracy (with aggregation improving to 51.6%).
- In PrOntoQA logical reasoning, RAP yields 94.2% predicted accuracy and 78.8% proof accuracy, exceeding CoT baselines.
- RAP demonstrates robustness on full Blocksworld with Llama-2 70B, maintaining higher ability on harder 6+ step cases where CoT declines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.