ReAct: Synergizing Reasoning and Acting in Language Models
arXiv: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
v3 is the ICLR camera ready version with some typos fixed. Project site with code: https://react-lm.github.io
Cited by in corpus (45)
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models
- 14 Examples of How LLMs Can Transform Materials Science and Chemistry: A Reflection on a Large Language Model Hackathon
- Materials science in the era of large language models: a perspective
- A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localization
- LLM for SoC Security: A Paradigm Shift
- Evaluation of large language models for discovery of gene set function
- Change-Agent: Towards Interactive Comprehensive Remote Sensing Change Interpretation and Analysis
- A Large Language Model Approach to Educational Survey Feedback Analysis
- A Comprehensive Survey on Integrating Large Language Models with Knowledge-Based Methods
- The Perils & Promises of Fact-checking with Large Language Models
- Evaluation and Benchmarking of LLM Agents: A Survey
- Identifying and Mitigating the Security Risks of Generative AI
- ThoughtSource: A central hub for large language model reasoning data
- Correctness Comparison of ChatGPT-4, Gemini, Claude-3, and Copilot for Spatial Tasks
- From Intention To Implementation: Automating Biomedical Research via LLMs
- From Screens to Scenes: A Survey of Embodied AI in Healthcare
- Incremental Learning of Humanoid Robot Behavior from Natural Interaction and Large Language Models
- How People Prompt to Create Interactive VR Scenes
- REFINER: Reasoning Feedback on Intermediate Representations
- Domain-specific ChatBots for Science using Embeddings
- Opportunities for Large Language Models and Discourse in Engineering Design
- When Robots Get Chatty: Grounding Multimodal Human-Robot Conversation and Collaboration
- AI-Driven Day-to-Day Route Choice
- Out of the Cage: How Stochastic Parrots Win in Cyber Security Environments
- Automating Traffic Model Enhancement with AI Research Agent
- GPT Struct Me: Probing GPT Models on Narrative Entity Extraction
- TalkWithMachines: Enhancing Human-Robot Interaction for Interpretable Industrial Robotics Through Large/Vision Language Models
- Visual Language Models as Operator Agents in the Space Domain
- The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
- Relational Programming with Foundation Models
- Complex QA and language models hybrid architectures, Survey
- Saturn Platform: Foundation Model Operations and Generative AI for Financial Services
- Comparing Apples to Oranges: LLM-powered Multimodal Intention Prediction in an Object Categorization Task
- Evaluating Language Model Agency through Negotiations
- Flows: Building Blocks of Reasoning and Collaborating AI
- AgentArcEval: An Architecture Evaluation Method for Foundation Model based Agents
- GRASP: Municipal Budget AI Chatbots for Enhancing Civic Engagement
- Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
- HiddenTables & PyQTax: A Cooperative Game and Dataset For TableQA to Ensure Scale and Data Privacy Across a Myriad of Taxonomies
- Mind the Labels: Describing Relations in Knowledge Graphs With Pretrained Models
- Generative Agents Navigating Digital Libraries
- Serve Programs, Not Prompts
- Pairing Analogy-Augmented Generation with Procedural Memory for Procedural Q&A
- ReFactX: Scalable Reasoning with Reliable Facts via Constrained Generation
- A Glitch in the Matrix? Locating and Detecting Language Model Grounding with Fakepedia