FDEInterviews logo
★ Read firstICLR 2023

ReAct: Synergizing Reasoning and Acting in Language Models

The 2022 paper that defined the agent loop: think, call a tool, read the result, think again. Every agent framework you will deploy runs a version of it.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2022
AUTHORS
Yao, Zhao, Yu, Du, et al.
FROM
Princeton University, Google Research Brain Team
PUBLISHED
Oct 2022 · ICLR 2023
CITED BY
12,665Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

Chain-of-thought prompting let models reason step by step, but they reasoned from memory, so a wrong fact early in the chain carried through to a confident wrong answer. Separately, researchers had models generate actions, such as moves in a game or searches, but without any reasoning the models lost track of what they were trying to do.

ReAct puts the two together in one loop. The model writes a Thought ("I need to find who the CFO is first"), then an Action (search[Acme Corp]), then receives an Observation from the environment (the search result). The next thought can use that observation, revise the plan or handle a surprise. This repeats until the model calls finish[answer]. The prompt contains only one to six hand-written example trajectories in this format.

The authors tested it on two kinds of tasks. On knowledge questions (HotpotQA) and fact checking (FEVER), with a deliberately simple Wikipedia tool, ReAct beat acting without reasoning and almost eliminated hallucinated facts, though on HotpotQA plain chain of thought still scored slightly higher, and the best results came from combining the two. On interactive tasks, a text-based household game (ALFWorld) and an online shopping site (WebShop), ReAct beat imitation and reinforcement learning methods trained on thousands of examples, by 34 and 10 points of success rate.

Every agent framework since, every "tool calling" API and every coding agent runs a descendant of this loop.

THE IDEA, VISUALLY
THE LOOP: REASON, ACT, OBSERVE, REPEAT Thought plan, track, revise Action search · lookup · finish Observation what the tool returned Tools / environment One or two hand-written trajectories in the prompt. Stop after 7 steps (HotpotQA), else fall back. WHY EACH METHOD FAILED, HOTPOTQA Share of failures, manual review of sampled runs (Table 2) Chain of thought 56% hallucinated facts 16% reasoning error 28% label ambiguity ReAct 47% reasoning error, loops 23% search found nothing 29% label ambiguity Grounding removed hallucination; the new failures were the loop and the tool. Hence: fall back, and fix search.
The agent loop, and what it changes about failure. Grounding each step in a tool result removed hallucinated facts; the new failures were loops and searches that came back empty.
Research notes: the problem, approach and results
71%

success on ALFWorld household tasks for the best ReAct run, against 45% acting without thoughts and 37% for a trained baseline

0%

of ReAct's failures on HotpotQA were hallucinations, against 56% of chain-of-thought failures

1–2examples

in the prompt, against thousands of trajectories for the trained baselines

THE PROBLEM

Models could reason (chain of thought) or act (plan tool calls), but not both. Reasoning alone hallucinated facts; acting alone lost track of the goal.

THE IDEA

Interleave them. The model writes a thought, takes an action, reads the observation, and uses it in the next thought, until it decides to finish.

THE RESULT

Better than acting alone on every task, large gains on interactive tasks, and readable traces. On knowledge QA the best results came from combining it with plain reasoning.

02

Why it matters to an FDE

The ReAct loop is the default architecture for agents, so this paper is also the first failure analysis of the agents you will deploy. It is unusually honest about what goes wrong.

Grounding trades one failure for others. The authors hand-labeled why runs failed. Chain-of-thought failures were mostly hallucinated facts (56%). ReAct had none of those. Its failures were reasoning errors, often the model repeating the same thought and action in a loop (47%), and searches that returned nothing useful, after which the model struggled to recover (23%). Expect exactly this in production: agents that loop, and agents derailed by a bad tool result.

The tools decide the ceiling. The Wikipedia tool in the paper was weak on purpose, able only to fetch a page by exact name or find the next sentence containing a string. Nearly a quarter of ReAct's failures came from it. On a deployment, the quality of search, the shape of tool outputs and the error messages a tool returns matter as much as the model.

Design the exits. The paper's best configurations add a fallback: if ReAct has not finished in 7 steps (5 for FEVER), switch to plain reasoning with voting; or if the votes disagree, switch to ReAct. Step budgets, loop detection and fallback paths are not polish. They are part of the method.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 49 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
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The ideas to keep, the action space, the results by task and the misreadings to avoid

    Free account
  2. 04How it works

    The trajectory format, the task families, the fallback rules and the fine-tuning result

    Premium
  3. 05The numbers that matter

    Every headline result with its baseline, and the failure analysis that matters most for building

    Premium
  4. 06Try it yourself

    A complete ReAct loop with the guards the paper's failure analysis calls for, run twice

    Premium
  5. 07Where it breaks

    The limits the authors name, and what deployments discovered next

    Premium
  6. 08Using it on a deployment

    Tool design, budgets, fallbacks, traces and human edits, as a build checklist

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →