{"id":"arxiv:2210.03629","kind":"preprint","title":"ReAct: Synergizing Reasoning and Acting in Language Models","authors":["Yao, Shunyu","Jeffrey W. Zhao","Dian Yu","Nan Du","Izhak Shafran J","Karthik Narasimhan","Yuan Cao"],"author_count":7,"year":2022,"published":"2022-10-06","venue":null,"cited_by":607,"doi":null,"arxiv_id":"2210.03629","nct_id":null,"source_url":"http://arxiv.org/abs/2210.03629","archive_url":"https://space-kitty.com/papers/arxiv:2210.03629","updated":"2023-03-10","pmid":null,"pmcid":null,"openalex_id":"W4304195432","pdf_url":"https://arxiv.org/pdf/2210.03629","abstract":"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","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":true,"retracted":false,"peer_reviewed":false,"categories":["Ethics and Social Impacts of AI"],"details":null,"provenance":"openalex+arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[{"slug":"reasoning-models","name":"Reasoning Models & Test-Time Compute","domain_slug":"ai"}],"cited_in_dossiers":[]}