GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models

Write the whole tool plan up front with placeholders for results, run the tools, answer once. Tokens fell about fivefold versus ReAct, but the plan cannot adapt to what tools return.

Breakdown by FDE Interviews · 13 min read · Updated

About the original · 2023
AUTHORS
Xu, Peng, Lei, Mukherjee, Liu, Xu
FROM
NC State, Texas A&M, Microsoft
PUBLISHED
May 2023 · arXiv preprint
CITED BY
214Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 18% of this breakdown.

01

The paper in one minute

A ReAct agent works step by step: think, call a tool, wait for the observation, think again. With a stateless model API, every step re-sends the instructions, the few-shot examples and every earlier thought, action and observation. A five-step question pays for the same examples five times and for early observations four times. The authors, from NC State, Texas A&M and Microsoft, call this prompt redundancy and propose to remove it.

ReWOO (reasoning without observation) splits the agent into three parts. The Planner sees the question once and writes the whole plan: each step is a short description plus a tool call whose result is stored in a placeholder like #E1, and later steps can refer to earlier placeholders (#E2 = LLM[What is the main ingredient? Given context: #E1]). Workers execute the calls in order, substituting earlier results. The Solver gets the question, the plan and all the evidence, and writes the answer. The model is called twice for planning and solving, plus whatever LLM-backed workers the plan uses, no matter how many steps there are.

Across six public benchmarks and one curated set, with GPT-3.5 Turbo, ReWOO used fewer tokens than ReAct everywhere and matched or slightly beat its accuracy. It was also hurt less when tools failed. And because the planner never sees observations, its skill can be distilled: a fine-tuned 7B LLaMA planner approached GPT-3.5 on several tasks. The paper's own results also show something it does not dwell on: on several tasks, answering without any tools beat both agent designs.

THE IDEA, VISUALLY
INTERLEAVED VS PLANNED UP FRONT REACT thought → act → obs thought → act → obs thought → act → obs each step re-sends prompt, examples and all earlier steps REWOO Planner #E1 = Search[...] #E2 = LLM[... #E1] #E3 = Search[#E2] Workers run the tools Solver plan + evidence the model is called twice, whatever the number of tools Planning ahead fails when the next step depends on what a tool returns, as in the paper's own example: find a vase in a room of 27 containers. A plan must open them all. When every tool returned “No evidence found”, ReAct's HotpotQA accuracy fell by 40.8 points, ReWOO's by 29.2. TOKENS PER QUESTION, GPT-3.5 TURBO ReAct vs ReWOO (Table 2); accuracy at right HotpotQA 40.8 / 42.4 9,795 1,986 TriviaQA 59.4 / 66.6 4,213 1,341 GSM8K 62.0 / 62.4 1,874 1,089 StrategyQA 64.6 / 66.6 1,686 1,287 PhysicsQA 64.1 / 66.0 2,163 1,226 SportsUnderstanding 58.6 / 61.3 1,720 854 SOTU QA 64.8 / 70.2 1,840 1,049 ReAct ReWOO TriviaQA with no tools at all: 80.6%.
ReWOO replaces the observe-then-think loop with a single plan, parallelizable tool work and one final answer call. Tokens dropped on every benchmark; whether tools helped at all depended on the task.
Research notes: the problem, approach and results
4.9×

fewer tokens per HotpotQA question than ReAct (1,986 vs 9,795), at 42.4% vs 40.8% accuracy

80.6%

TriviaQA accuracy answering directly with no tools, against 66.6% for ReWOO and 59.4% for ReAct

−40.8

points of ReAct HotpotQA accuracy when every tool returned no evidence, against −29.2 for ReWOO

THE PROBLEM

ReAct-style agents stop after every tool call and send the whole growing history back to the model, so token use grows quickly with the number of steps. The API is stateless, so the prompt and examples are re-sent every time.

THE IDEA

Split the agent into a Planner that writes every step at once with placeholders (#E1, #E2) for evidence, Workers that run the tools and fill them in, and a Solver that reads plan and evidence and answers. The model sees no observation while planning.

THE RESULT

With GPT-3.5 Turbo, ReWOO used fewer tokens than ReAct on all seven benchmarks, about 5× fewer on HotpotQA, with similar or slightly better accuracy, and degraded less when tools failed. On some tasks, though, answering with no tools at all scored higher than either.

02

Why it matters to an FDE

Many customer "agents" follow a predictable shape: look up the account, fetch the order, check the policy, draft the reply. When the steps are known before any tool runs, an observe-every-step loop wastes money and latency. ReWOO is the evidence and the template for planning those workflows in one shot.

Plan up front when steps are predictable. Lookups and multi-hop questions whose structure is clear from the request benefit most. Token use fell about fivefold on HotpotQA.

Keep observation-driven loops for exploration. When the next step depends on what you find, such as searching an unfamiliar system or debugging, a fixed plan must enumerate every possibility. The paper's own limitation example is a room with 27 containers.

Always test a no-tools baseline. On TriviaQA, GPT-3.5 answering directly scored 80.6%, far above both tool-using designs. Tools add cost and can distract; measure whether they help on the customer's tasks.

Separated planning is easier to secure and parallelize. A plan written before any untrusted data arrives cannot be redirected by that data, and independent steps can run in parallel. Both ideas reappear in later work on secure agents and parallel function calling.

Small planners are possible. Because planning does not depend on tool outputs, a smaller fine-tuned model can take that role.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 99 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The three modules, token accounting, results, robustness, distillation, misreadings

    Free account
  2. 04How it works

    Prompts, evidence substitution, token equations, tools and distillation

    Premium
  3. 05The numbers that matter

    Cost, accuracy margins, robustness, model swaps, and what the no-tool baselines mean

    Premium
  4. 06Try it yourself

    Model the token cost of interleaving versus planning, including search tasks

    Premium
  5. 07Where it breaks

    The limits of planning without observations, and of this evaluation

    Premium
  6. 08Using it on a deployment

    Choosing between planned and interleaved execution for a customer workflow

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →