Highlight

ReAct: Synergizing Reasoning and Acting in Language Models

Introduces ReAct, prompting LLMs to interleave reasoning traces and task actions so they plan, handle exceptions, and query external sources.

Based on

ReAct: Synergizing Reasoning and Acting in Language Models

By Shunyu Yao, Jeffrey Zhao, Dian Yu et al.International Conference on Learning Representations
Read original article →

Large language models have shown strong capabilities in language understanding and interactive decision making, but their reasoning abilities (such as chain-of-thought prompting) and their acting abilities (such as action plan generation) had largely been studied in isolation. ReAct explores using LLMs to generate reasoning traces and task-specific actions in an interleaved manner, creating synergy between the two: reasoning traces help the model induce, track, and update action plans and handle exceptions, while actions let it interface with external sources such as knowledge bases or environments to gather additional information.

Across diverse tasks ReAct outperforms strong baselines and improves human interpretability and trustworthiness. On question answering (HotpotQA) and fact verification (Fever), interacting with a simple Wikipedia API lets ReAct overcome the hallucination and error propagation common in chain-of-thought reasoning, producing more interpretable, human-like solution trajectories. On the interactive benchmarks ALFWorld and WebShop, ReAct outperforms imitation and reinforcement learning methods by 34% and 10% absolute success rate respectively, while using only one or two in-context examples.

Abstract

LLMs are strong at reasoning and acting, but the two are usually studied separately. ReAct prompts a model to interleave reasoning traces and task actions, so reasoning helps track and update plans and handle exceptions while actions gather information from external sources like knowledge bases or environments. On HotpotQA and Fever, using a simple Wikipedia API reduces the hallucination and error propagation of chain-of-thought. On ALFWorld and WebShop, ReAct beats imitation and RL baselines by 34% and 10% absolute success with 1-2 in-context examples.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

large language modelsreasoning and actingchain-of-thoughtagentsin-context learning
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.