Planning and Multi-Step Reasoning
Multi-Step Reasoning, Planning, and Tool Use in Language Models
Multi-step tasks require a model to do more than produce a single answer. The model may need to reason about what to do, take actions such as searching or calculating, interpret the results, revise its plan, and decide when it has enough information to respond.
Three approaches address different parts of this challenge:
Language Agent Tree Search (LATS) combines reasoning, environment interaction, and tree search to explore and evaluate action sequences.
SPRINT teaches models to identify independent reasoning steps and execute them in parallel, reducing sequential generation.
SWiRL uses synthetic multi-step data and reinforcement learning to improve step-by-step reasoning and tool use, without requiring tool execution during the RL fine-tuning process.
1. Language Agent Tree Search (LATS)
Why multi-step tasks need planning and action
A task such as planning a trip involves several related capabilities:
Reasoning: determining what matters, such as budget, destination, and itinerary.
Acting: gathering information by searching the web, reading travel blogs, or asking for recommendations.
Search and refinement: using what was learned to revise the plan, consider alternatives, or investigate new activities.
These activities form an iterative process. The model reasons about the task, takes an action, observes the result, and then uses that feedback to choose what to do next.
A simple approach would have a model generate one plan and follow it. LATS instead aims to encourage the model to explore multiple possible plans and action trajectories. This is useful because a first plan may be poor, while an alternative path could lead to a better result.
Core idea
LATS brings ideas from Monte Carlo tree search (MCTS) into language-model reasoning. It represents possible action sequences as a search tree:
Each node represents a state or point in the task.
Actions taken from a state create child nodes.
The system scores possible states and selects which nodes to expand.
Environment feedback and successful or unsuccessful outcomes help update the scores.
The approach integrates three activities:
Reasoning about the task and possible next steps.
Acting in an environment, such as using a search tool or navigating a maze.
Planning and searching over alternative action sequences.
For example, when asked to plan a trip to Hawaii, the model might propose asking friends who have visited, reading relevant online discussions, or searching for activities. LATS can score the proposed actions, expand promising ones, and continue exploring from the resulting information.
How LATS differs from related approaches
LATS builds on ideas used in earlier reasoning and agent frameworks, but emphasizes planning over action outcomes.
Verifier-guided reasoning: In verifier-guided methods, a verifier scores reasoning trajectories, and the score guides which reasoning paths to expand. In LATS, scoring is based on the outcomes of actions taken in the environment, as well as the model’s evaluation of the resulting state.
ReAct-style interaction: ReAct combines reasoning with actions and observations. LATS adds explicit tree-based search and planning, along with reflection on how a trajectory succeeded or failed.
The central distinction is that LATS treats environment interaction and action results as part of the search process, rather than evaluating reasoning text alone.
The six stages of LATS
LATS uses six stages: selection, expansion, evaluation, simulation, backpropagation, and reflection.
1. Selection
The system selects a node in the existing search tree to expand. Selection uses upper confidence bounds applied to trees (UCT), which balances the value of a node against how much it has been explored.
The goal is not always to choose the currently highest-valued node. A node with a lower current score may still lead to a better outcome if it has not been explored much.
2. Expansion
The model generates candidate actions from the selected state.
For example, if the initial observation is that the agent is in a dim room with two doors, possible actions might be:
Open the left door.
Open the right door.
Inspect the room for clues.
Each candidate action can lead to a different branch of the tree.
3. Evaluation
Each action is carried out in the environment, and the resulting observation is added to the context. The new state is then assigned a score based on two signals:
Language-model judge score: The model is asked to estimate how promising the action and resulting state are, typically on a scale from 0 to 1.
Self-consistency score: The system measures how often a particular action is generated when the model samples multiple possible actions. More frequently sampled actions receive a higher score.
The two signals are combined, for example by averaging them, to create a value for the state. The judge score estimates promise, while self-consistency reflects how strongly the model favors that action across samples.
4. Simulation
The search proceeds from promising states. One possible strategy is greedy expansion: continue from the state with the highest score, generate further actions, and follow one or more promising branches.
Expansion may continue until the system reaches:
A successful end state.
A failure state.
The allowed search or computation budget.
In a maze, for example, the model might follow a corridor and eventually observe a clearly marked exit.
5. Backpropagation
When a simulated trajectory ends, its return—representing its success or failure—is propagated backward through the states and actions that led to the outcome. This updates the values of the nodes on that trajectory.
A running-average update for a state can be written as:
where:
Vold(s) is the previous value of state s.
Ns is the number of visits to that state after the new visit.
R is the return from the completed trajectory.
This update incorporates the latest trajectory outcome into the state’s estimated value.
6. Reflection
After backpropagation, the model generates a reflection on the trajectory. It considers what led to success or failure and uses that assessment to improve later planning and search.
Reflection adds information beyond the numerical score: it gives the model an opportunity to characterize which decisions or events mattered in the trajectory.
UCT: balancing exploration and exploitation
Exploration means investigating less-visited alternatives that might prove valuable. Exploitation means choosing an option with a high estimated value based on what has already been observed.
A standard UCT score has the form:
where:
V(s) is the estimated value of the current state.
Np is the number of times the parent state has been visited.
Ns is the number of times the current state has been visited.
c controls the strength of the exploration bonus.
The first term favors states with high estimated value. The second favors less-visited states. If a child has been visited infrequently relative to its parent, its exploration bonus is larger. As it is visited more often, the bonus decreases.
UCT is a practical way to balance exploration and exploitation, not a guarantee that the search is mathematically optimal for every language-model task.
Handling repeated actions
The search is treated as a tree, not as a fully connected graph. If an action is repeated under a particular parent state, its visit count increases, which affects its UCT score. Thus, repeated visits can influence later selection through the exploration term and accumulated value estimates.
Evaluation domains and findings
LATS was evaluated on tasks that require multiple steps.
HotPotQA: Questions are designed to require information from at least two Wikipedia pages. The model must retrieve and combine information across sources. Increasing the number of sampled trajectories improved performance, and reflection provided an additional boost.
WebShop: A practical shopping task in which an agent must find a product satisfying several constraints, such as size, assembly status, color, finish, and price. The approach achieved strong results without additional fine-tuning and was reported as approaching human-expert performance in the presented evaluation.
The broader finding is that LATS can turn additional test-time computation into better solutions by searching and refining multi-step trajectories.
Strengths and limitations
Strengths
Combines reasoning, acting, and planning in a single framework.
Explores multiple possible paths instead of relying on one generated plan.
Uses environmental feedback to guide later decisions.
Can be applied across domains, including question answering and interactive shopping tasks.
Is modular: other search or exploration strategies could potentially replace or complement UCT.
Limitations
Computational cost: Expanding a tree, evaluating actions, and backpropagating outcomes can require many model calls and substantial computation. The cost-benefit trade-off was not fully analyzed in the described work.
Irreversible actions: The approach is difficult to apply directly when actions have consequential, irreversible effects, such as making a payment or committing a transaction. Exploring an action could itself cause harm.
Dependence on exploration opportunities: The method benefits from having useful alternatives to search. The quality of its results depends on the action proposals, evaluation signals, and available budget.
2. SPRINT: Parallel Planning and Execution
Motivation: long reasoning can be useful but slow
Reasoning models often spend more tokens on harder problems. Longer reasoning can correlate with improved accuracy, but sequential token generation creates latency: the model must produce one part of its reasoning before it can produce the next.
Some parts of a reasoning trace are independent. A model might:
Try alternative approaches.
Decompose a problem into subtasks that do not depend on one another.
Verify different earlier steps independently.
If independent work is generated and executed one piece at a time, the system waits unnecessarily. SPRINT is designed to expose and use such parallelism.
Core idea
SPRINT trains a model to act as a planner that identifies a set of plans or subtasks, then emits corresponding executions that can be carried out in parallel.
The process can repeat:
The model generates a group of plans.
Independent executions are run concurrently.
Their results are returned to the model.
The model generates the next group of plans and executions.
This is an interleaving of planning and execution. It does not make the language model generate multiple tokens simultaneously. Instead, the model learns to output a structure that identifies independent work, allowing separate tasks or tool calls to run at the same time.
Creating parallelized training data
SPRINT turns existing reasoning traces into examples of parallel planning and execution.
1. Generate reasoning traces
A reasoning model produces responses to problems, such as questions from a math dataset.
2. Annotate the traces
An LLM examines each trace and divides it into steps. It also labels which parts of each step are:
Planning: deciding what should be done.
Execution: carrying out the plan, such as performing a calculation.
A single plan may contain multiple execution pieces.
3. Build a dependency graph
The annotated steps are organized into a directed acyclic graph (DAG). The graph represents which steps depend on which earlier steps.
For example, steps 2 and 4 might both depend on step 1, but not on each other. Once step 1 is complete, steps 2 and 4 can be performed in parallel.
4. Group independent work
Steps that have no dependency on one another are packed into the same parallel group. The resulting training example demonstrates how to produce plans and executions in a form that preserves dependencies while allowing independent work to happen concurrently.
5. Fine-tune the reasoning model
The model is fine-tuned on these reformatted traces. It learns to mark plans and associated executions with structured tags so that an inference system can identify work that is ready to run in parallel.
Inference-time workflow
A conventional sequential process might look like this:
Generate plan 1.
Execute plan 1.
Generate plan 2 using the result.
Execute plan 2.
Continue until the final answer is ready.
With SPRINT, if plans 1 and 2 are independent, the model can generate both before waiting for either execution. Their executions can then run concurrently. The results are added to the context, and the model proceeds to the next planning stage.
The process remains sequential at the level of model generation: the model still outputs tokens in order. The speed-up comes from running independent executions or tool calls at the same time, rather than waiting for each one to finish before starting the next.
Replanning and combining results
The model still has access to the accumulated context. If execution results show that a plan was wrong, it can revise its plan in a later stage. Parallelization changes when independent plans are proposed and executed; it does not prohibit replanning.
After parallel results return, the model must synthesize them into a coherent response. If separate branches produce inconsistent conclusions, the final reasoning stage is expected to resolve the inconsistency before producing an answer. Contradictory or poorly coordinated reasoning can remain a challenge whether the branches were generated in parallel or sequentially.
Parallelism, workload balance, and bottlenecks
Parallel execution reduces the total time when tasks overlap, but independent tasks may take different amounts of time. A slower task can become a straggler, delaying the next stage even if the other tasks have already finished.
One possible optimization is to merge very simple executions into a larger plan, creating more substantial units of work. The reported discussion noted that execution-time balancing and task grouping remain possible areas for improvement.
The amount of parallelism is also task-dependent:
Some tasks have many independent subtasks.
Others have mostly sequential dependencies.
Problems requiring longer reasoning may provide more opportunities for parallel work than problems that need only a few steps.
Training setup and reported findings
The training recipe described for SPRINT used approximately 6,000 reasoning trajectories from a math dataset. The trajectories with greater parallelization potential were retained, and a smaller reasoning model was fine-tuned on the reformatted data.
The reported results indicated that:
The model reduced the number of sequentially generated tokens compared with relevant baselines.
In some comparisons, sequential-token use was reduced by roughly 40%.
The fine-tuned model improved accuracy by about 3.5 percentage points over the corresponding distilled baseline.
Its sequential-token efficiency was described as comparable to that of a much larger, roughly 32-billion-parameter model.
Improvements also appeared on tasks outside the math training data, including Countdown and GPQA Diamond.
The results suggest that training a model to structure its reasoning in parallel can improve not only efficiency but also accuracy. One possible explanation is that the structured process encourages the model to explore more approaches within a fixed compute budget.
Strengths and limitations
Strengths
Reduces dependence on long sequential reasoning when the task has independent subtasks.
Can use parallel tool execution, such as running separate calculations concurrently.
Demonstrated generalization beyond the training dataset.
Encourages more structured reasoning, which may improve accuracy as well as speed.
Limitations
The benefit depends on genuine independence among subtasks; some tasks have little exploitable parallelism.
Unequal execution times can create stragglers.
Parallel branches still need to be combined and checked for consistency.
The model generates its plans sequentially, so SPRINT parallelizes eligible executions rather than eliminating sequential generation altogether.
3. SWiRL: Multi-Step Tool Use Through Synthetic Data and RL
Why multi-step tool use is difficult
Many real-world tasks require several rounds of reasoning and tool use. Examples include:
Answering multi-hop questions with a search engine.
Solving math problems with a calculator or Python.
Analyzing data.
Planning a trip.
Completing a software-engineering task.
As steps accumulate, errors can compound. A model may also need to learn:
When a tool is appropriate.
How to form a useful query for that tool.
How to use tool results in later reasoning.
How to recover from a poor action.
When it has enough information to stop and answer.
Training with live tools can be slow and unreliable because tools can fail, take time to run, or have bugs. In addition, many fine-tuning methods focus primarily on whether the final answer is correct, rather than how the model selected and carried out the intermediate steps.
Design goals
SWiRL aims to train a model to:
Solve complex multi-step problems.
Choose when to call a tool and produce suitable tool inputs.
Maintain quality across a sequence of reasoning steps.
Recover from errors and know when to stop.
Generalize its step-by-step behavior to new tasks and tools.
A central design choice is to avoid executing tools during the reinforcement-learning fine-tuning stage. Instead, tool interactions are collected in advance and used to construct synthetic training data.
Generating synthetic multi-step trajectories
SWiRL creates trajectories through iterative prompting.
At each step, the model receives:
The original prompt.
The previous action.
The environment’s response to that action.
It is then asked to choose a next action. The action may be:
A reasoning step.
A tool call.
A final answer, if the model has enough information.
Repeating this process creates a multi-step trajectory. Different prompts may result in different numbers of steps.
Assigning process rewards
Each step receives a score from an LLM-as-a-Judge. The judge considers the prior context and the current proposed action, then estimates the quality of that step.
For a proposed search query, the judge can assess whether the query is relevant and appropriately formulated without knowing the search result. Thus, this score evaluates the quality of the decision or action proposal, rather than the correctness of the eventual tool output.
Tool calls and their environment responses are collected during offline data generation. The judge’s step-level score is used as a process-feedback signal.
Filtering the synthetic data
The generated trajectories can be filtered in several ways:
Process-filtered data: Retain trajectories or steps judged to have good intermediate actions, without requiring the final answer to be correct.
Outcome-filtered data: Retain trajectories with correct final answers, regardless of the judge’s assessment of every intermediate step.
Process-and-outcome-filtered data: Require both good process judgments and a correct final answer.
Randomly selected data: Use a random subset as a comparison.
This distinction matters because a trajectory can contain useful intermediate decisions even if it ends in an incorrect answer. Conversely, a correct final answer does not guarantee that every intermediate action was well chosen.
Reinforcement learning without live tool execution
During RL fine-tuning, the model is shown a prompt and the available context from prior steps. It then generates a next action. The action is evaluated and rewarded without executing a live tool call at that moment.
For example, if the task is to determine which of two people is older:
The model proposes searching for the first person’s age.
It receives a process reward for the quality of that proposed action.
The relevant tool response, collected in the offline trajectory, is included in the subsequent context.
The model proposes a search for the second person’s age.
It receives another process reward.
Once it has enough information, it proposes a final answer and receives an appropriate evaluation.
The key separation is:
Offline data generation: Tool calls are executed to collect actions and environment responses.
RL fine-tuning: The model learns to propose actions from context and receives rewards for those proposals, without needing live tool execution for each training action.
This avoids making tool latency and tool failures part of the fine-tuning loop.
Step-level objective
Conceptually, the model is trained to maximize the expected reward for an action given the history of states and actions so far. If the trajectory has steps S1 through SK, then the decision at a later step is conditioned on the accumulated context from earlier steps.
This gives training feedback at the level of individual actions, rather than relying only on a single final-answer reward. The model can therefore learn which kinds of steps are useful within a multi-step process.
Inference-time tool use
At inference time, the model interacts with tools iteratively. The prompt specifies available tools and the format for requesting them. The model can:
Generate a tool call in the required format.
Receive the tool’s output.
Continue reasoning using the original question and the new result.
Make another tool call or produce a final answer.
For example, when a calculator is available, the model may produce a mathematical expression in a designated tool-call format. The calculator returns a result, which is added to the context. The model then decides whether to calculate again or provide the answer.
Experimental setup and findings
The described experiments used a large model to generate synthetic data from HotPotQA and GSM8k, with roughly 50,000 examples drawn from multiple sources and filtering strategies.
The findings included several important patterns.
Process-filtered data can be more useful for RL
Process-filtered data—where individual steps are judged positively—could outperform more restrictive filtering that required the final answer to be correct.
A possible explanation is that outcome-only filtering can favor trajectories on problems the model already knows how to solve. Process-filtered data can preserve useful steps from trajectories that did not reach the correct answer, giving the model opportunities to learn better decisions on problems it could not previously solve.
Generalization across tasks and tools
Training on one task and tool combination improved performance on other task and tool combinations:
Training on GSM8k with a calculator-style tool improved HotPotQA performance.
Training on HotPotQA with a search tool improved GSM8k performance.
This suggests that the model learns more than a specific tool interface. It may learn a more general capacity to reason in steps, formulate actions, and use feedback.
More synthetic data can improve out-of-domain performance
Increasing the size of the synthetic training set improved performance on tasks outside the training domain. In one reported comparison, training on HotPotQA with a search tool improved accuracy on GSM8k from about 65% to about 71%. Training directly on HotPotQA with a search tool improved HotPotQA accuracy from about 65% to about 73%.
The important finding is not only the improvement on the training domain, but also the improvement on a different task with a different tool. This supports the possibility that multi-step behavior can transfer across domains.
Process correctness improves
After RL fine-tuning, the model’s average process reward per step improved both:
On data similar to its training domain.
On out-of-distribution data.
This indicates that the model became better at producing useful intermediate actions, not merely better at matching final answers.
RL compared with supervised fine-tuning
The multi-step RL approach outperformed supervised fine-tuning by a substantial margin in the described comparisons.
The difference is consistent with the learning objectives:
Supervised fine-tuning imitates the supplied trajectories. Incorrect outcomes in training demonstrations can therefore be harmful, so supervised fine-tuning benefited from data filtered for both process quality and outcome correctness.
Reinforcement learning gives the model a chance to generate a new action from the context and receive a reward for that action. This can let the model improve beyond simply copying the full trajectory, making process-filtered examples useful even when their original final answer was incorrect.
Strengths and limitations
Strengths
Provides feedback on intermediate actions, not only final answers.
Avoids live tool execution during the RL fine-tuning loop.
Supports multi-step use of tools such as search and calculation.
Shows transfer across datasets and tool types.
Can benefit from scaling the quantity of synthetic training data.
Limitations
Step quality depends on the reliability of the LLM judge.
The judge evaluates the proposed action without necessarily seeing the tool result, so its score reflects action quality rather than full environmental success.
The framework relies on offline trajectories and collected tool responses to supply context during training.
Synthetic data quality and filtering choices can strongly affect results.
4. How the Three Approaches Relate
LATS: search over action trajectories
LATS addresses the question: Which sequence of actions should the agent explore?
It maintains a tree of possible trajectories.
It evaluates states using model judgments and action-sampling frequency.
It uses UCT to balance exploration and exploitation.
It incorporates environment observations, outcome feedback, backpropagation, and reflection.
Its main emphasis is test-time planning and search.
SPRINT: parallelize independent work
SPRINT addresses the question: Which parts of the reasoning process can be performed at the same time?
It converts reasoning traces into annotated plans and executions.
It represents dependencies as a DAG.
It teaches the model to identify independent work.
It reduces sequential delay by running eligible executions concurrently.
Its main emphasis is reasoning efficiency through parallel execution.
SWiRL: learn better multi-step actions
SWiRL addresses the question: How can a model learn to choose useful actions across a sequence of steps?
It generates synthetic tool-use trajectories offline.
It assigns process rewards to individual actions.
It fine-tunes through reinforcement learning without executing live tools during that training loop.
It aims for transfer across tasks and tools.
Its main emphasis is training the model to produce better multi-step behavior.
Shared themes
All three approaches move beyond treating a task as a single prompt followed by a single answer. They emphasize that effective problem-solving can require:
Decomposing a task into steps.
Choosing actions or tools.
Using observations and results as new context.
Revising plans when needed.
Managing computation carefully.
They differ in where they focus: LATS searches over possible trajectories, SPRINT exploits independence among tasks, and SWiRL trains step-level action selection. Together, they illustrate complementary ways to improve the quality, speed, and reliability of multi-step reasoning.

Ask anything
We've read this whole study set, so questions about it get the best answers.