Reproduce “ReAct: Synergizing Reasoning and Acting in Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, Yuan Cao
ReAct alternates thoughts, actions, and observations in one context, allowing a language model to revise plans using environment feedback. On ALFWorld, the best-of-six ReAct prompt trial reached 71% success versus 53% for ReAct-IM, while on WebShop one-shot ReAct reached 40.0% versus 29.1% for IL across 500 instructions. These results are not uniform: ReAct beat CoT on FEVER but trailed it on HotpotQA.
Key insights
- Interleaving internal reasoning ('thoughts') with external actions creates a dynamic feedback loop, where reasoning guides actions and observations from actions refine subsequent reasoning.
- Explicit thought processes in language models enhance interpretability, allowing humans to diagnose failures and understand decision-making, which also facilitates human-in-the-loop control.
- Interacting with external tools (e.g., APIs) allows LLMs to retrieve up-to-date information, significantly reducing hallucination compared to internal-only reasoning and improving fact-groundedness.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.