English

Overview

ReAct introduces a paradigm where language models interleave reasoning traces and task-specific actions. This synergy allows models to perform dynamic reasoning while interacting with external environments, significantly improving performance on knowledge-intensive and decision-making tasks.

Key Contributions

  1. Reasoning + Acting: Combines chain-of-thought with action execution
  2. Interpretability: Reasoning traces make model decisions transparent
  3. Grounded Reasoning: Actions provide external information to guide reasoning
  4. Flexibility: Works across diverse tasks (QA, fact verification, interactive games)

How It Works

ReAct prompts models to generate:

  • Thought: Internal reasoning about the current situation
  • Action: External action to take (e.g., search, lookup)
  • Observation: Result from the environment

This cycle continues until task completion.

Impact

ReAct has become foundational for AI agents:

  • Powers many agent frameworks (LangChain, AutoGPT)
  • Standard pattern for tool-using LLMs
  • Enables complex multi-step reasoning with real-world interaction

arXiv

.03629

中文

概述

ReAct引入了一种范式,让语言模型交替进行推理轨迹和特定任务的动作。这种协同作用使模型能够在与外部环境交互的同时进行动态推理,显著提高了知识密集型和决策任务的性能。

主要贡献

  1. 推理+行动:将思维链与动作执行相结合
  2. 可解释性:推理轨迹使模型决策透明
  3. 基于现实的推理:动作提供外部信息指导推理
  4. 灵活性:适用于多种任务(问答、事实验证、交互游戏)

工作原理

ReAct提示模型生成:

  • 思考:关于当前情况的内部推理
  • 动作:要采取的外部动作(如搜索、查找)
  • 观察:来自环境的结果

这个循环持续到任务完成。

影响

ReAct已成为AI代理的基础:

  • 支撑许多代理框架(LangChain、AutoGPT)
  • 工具使用LLM的标准模式
  • 实现与现实世界交互的复杂多步推理

论文链接

arXiv

.03629