ReAct: Synergizing Reasoning and Acting in Language Models
Yao, Shunyu, Zhao, Jeffrey, Yu, Dian, Du, Nan, Shafran, Izhak, Narasimhan, Karthik, Cao, Yuan
–arXiv.org Artificial Intelligence
While large language models (LLMs) have demonstrated impressive capabilities across tasks in language understanding and interactive decision making, their abilities for reasoning (e.g. chain-of-thought prompting) and acting (e.g. action plan generation) have primarily been studied as separate topics. In this paper, we explore the use of LLMs to generate both reasoning traces and task-specific actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with external sources, such as knowledge bases or environments, to gather additional information. We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines, as well as improved human interpretability and trustworthiness over methods without reasoning or acting components. Concretely, on question answering (HotpotQA) and fact verification (Fever), ReAct overcomes issues of hallucination and error propagation prevalent in chain-of-thought reasoning by interacting with a simple Wikipedia API, and generates human-like task-solving trajectories that are more interpretable than baselines without reasoning traces. On two interactive decision making benchmarks (ALFWorld and WebShop), ReAct outperforms imitation and reinforcement learning methods by an absolute success rate of 34% and 10% respectively, while being prompted with only one or two in-context examples. Project site with code: https://react-lm.github.io
arXiv.org Artificial Intelligence
Mar-9-2023
- Country:
- Asia
- Middle East > Israel (0.04)
- Russia (0.04)
- Atlantic Ocean > North Atlantic Ocean (0.04)
- Europe
- Denmark > Capital Region
- Copenhagen (0.04)
- Italy > Tuscany
- Florence (0.04)
- Netherlands > North Holland
- Amsterdam (0.04)
- Norway (0.04)
- Russia (0.04)
- Sweden (0.04)
- United Kingdom (0.04)
- Denmark > Capital Region
- North America
- Bermuda (0.04)
- United States
- Arizona (0.04)
- California > San Joaquin County
- Stockton (0.04)
- Colorado (0.05)
- Indiana > Monroe County
- Bloomington (0.04)
- New Mexico (0.04)
- New York > Bronx County
- New York City (0.04)
- Texas > Yoakum County
- Plains (0.04)
- Pacific Ocean (0.04)
- Asia
- Genre:
- Research Report (0.82)
- Industry:
- Education (0.68)
- Government > Regional Government
- Leisure & Entertainment (1.00)
- Media
- Film (1.00)
- Television (0.93)
- Technology: