Back to the shelf
Read
ReAct: Synergizing Reasoning and Acting in Language Models
Yao et al.
ReAct, published at ICLR 2023 by researchers from Princeton University and Google Research, proposes a prompting paradigm that interleaves verbal reasoning traces with concrete task actions in large language models. By alternating thoughts and actions in a single coherent trajectory, ReAct allows models to dynamically update plans, retrieve external information, and produce more interpretable and grounded decision-making compared to reasoning-only or action-only baselines.
Key takeaways
- ReAct augments the standard action space of an LLM agent with a language space for generating free-form reasoning traces, called thoughts, which do not produce environment observations but instead compose useful context, track progress, and guide subsequent actions in an interleaved sequence.
- On the HotpotQA multi-hop question answering benchmark using PaLM-540B, the combined ReAct to CoT-SC strategy achieves an exact match score of 35.1, compared to 33.4 for CoT-SC alone and 25.7 for act-only prompting, demonstrating the benefit of combining internal and external knowledge.
- On the FEVER fact verification benchmark, ReAct achieves an accuracy of 60.9 with PaLM-540B prompting, compared to 56.3 for chain-of-thought and 58.9 for act-only, showing that grounding claims against retrieved Wikipedia evidence reduces false positives.
- On two interactive decision-making benchmarks, ALFWorld and WebShop, one or two-shot ReAct prompting outperforms imitation and reinforcement learning methods trained on 10,000 to 100,000 task instances, achieving absolute success rate improvements of 34% and 10% respectively.
- An error analysis on HotpotQA finds that hallucination accounts for 56% of CoT failures but 0% of ReAct failures, while ReAct introduces a distinct reasoning error mode where the model loops on prior thoughts when search results are uninformative.
- When fine-tuned on just 3,000 bootstrapped trajectories, smaller PaLM-8B and 62B models with ReAct outperform all PaLM-540B prompting methods on HotpotQA, suggesting that the reasoning-and-acting paradigm transfers well to fine-tuning regimes.
Reflections
No notes on this one yet. I add reflections as I finish or revisit a book.