On the Brittle Foundations of ReAct Prompting for Agentic Large Language Models

Mudit Verma, Siddhant Bhambri, Subbarao KambhampatiarXiv 2024 · DOI

Abstract

ReAct (Reason + Act) has emerged as a dominant prompting paradigm for agentic Large Language Models (LLMs), purportedly improving performance by interleaving reasoning traces with actions. This study investigates the robustness of the ReAct framework, revealing that its success is often driven by "approximate retrieval" from few-shot exemplars rather than genuine planning or logical reasoning. Through systematic perturbations, we demonstrate that LLM agents are highly sensitive to prompt variations, with performance frequently collapsing when reasoning traces are modified or when task similarity between exemplars and queries is reduced.

Introduction

As the field moves toward autonomous "agentic" AI, researchers have increasingly relied on prompting techniques like ReAct to solve sequential decision-making tasks. ReAct operates by having the model generate a "thought" before every action, theoretically allowing it to plan and reason through complex environments.

The ReAct prompting framework interleaves reasoning traces (thoughts) with actions to guide agentic behavior.

However, these agents exhibit significant brittleness. Minor changes in prompt wording or slight deviations between provided examples and the target task often lead to catastrophic failure. This research questions whether the LLM is truly reasoning or simply mimicking patterns observed in the prompt.

Methodology

The researchers conducted a sensitivity analysis across three primary research questions (RQs) using state-of-the-art models including GPT-3.5-Turbo, GPT-4, and Claude-Opus:

  1. RQ1: The Role of Interleaving: Comparing standard ReAct (interleaved thoughts/actions) against Chain-of-Thought (CoT) where all reasoning is provided upfront.
  2. RQ2: The Content of Reasoning: Testing "Placebo Guidance" (e.g., "take a deep breath") and "Hindsight Guidance" (explaining failures) against standard success-oriented traces.
  3. RQ3: Exemplar Similarity: Varying the resemblance between few-shot examples and the query task by changing goal locations, using synonyms, or providing examples from entirely different tasks.

Experiments were conducted in AlfWorld, a synthetic text-based environment involving common-sense household tasks such as moving objects (Put), cleaning (Clean), heating (Heat), and cooling (Cool).

Key Results and Analysis

The quantitative results highlight a profound fragility within the ReAct framework. Across multiple models, the specific content and structure of the "reasoning" traces often mattered less than the presence of highly similar task exemplars.

Radar charts illustrating the performance of various LLMs across different task types and prompt variations, including Placebo (Magic) and Hindsight (Explanation) guidance.

The "Reasoning" is Optional

Surprisingly, performance often improved when reasoning traces were not interleaved. For GPT-4, moving reasoning to the beginning (CoT style) nearly doubled the success rate (from 23.3% to 43.3%). Furthermore, "Placebo Guidance" (labeled as 'Magic' in results)—meaningless text providing no task-specific logic—performed comparably to standard reasoning traces. This suggests models may not be functionally utilizing the logic within the thought trace to determine subsequent actions.

The Similarity Collapse

The most critical factor for success was the similarity between exemplars and the query. When prompts provided examples of a different task than the query, GPT-4’s success rate dropped to 0%, and Claude-Opus fell from 56.6% to 6.6%. Even minor lexical changes, such as replacing "spraybottle" with "aerosolbottle," caused GPT-3.5-Turbo's success rate to crash from 27.6% to 1.6%.

Discussion and Conclusion

The findings suggest that ReAct-based agents often perform "approximate retrieval" rather than actual planning. This dependency places a significant cognitive burden on prompt engineers to provide near-perfect, highly specific exemplars for every possible query.

While models frequently generate reasonable-sounding internal monologues, there is a clear disconnect between these thoughts and the resulting actions. The community must move toward more robust evaluation standards and architectural improvements for agentic LLMs that do not rely on the brittle foundations of current prompt engineering techniques.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ALFWorldPlacebo Guidance (Magic)Average success30%few-shot · model=GPT-3.5-Turbo
Source quote
L138: \vcell{GPT-3.5-Turbo} │ \vcell{27.6} │ {}\vcell{46.6} │ {}\vcell{41} │ {}\vcell{30} │ {}\vcell{28.3} │ {}\vcell{43.3} │ {}\vcell{41.6} \\[-\rowheight]
ALFWorldFailureAverage success43.3%few-shot · model=GPT-3.5-Turbo
Source quote
L138: \vcell{GPT-3.5-Turbo} │ \vcell{27.6} │ {}\vcell{46.6} │ {}\vcell{41} │ {}\vcell{30} │ {}\vcell{28.3} │ {}\vcell{43.3} │ {}\vcell{41.6} \\[-\rowheight]
ALFWorldOneAverage performance28.3%few-shot · model=GPT-3.5-Turbo
Source quote
L225: While this work does not investigates effectiveness of exemplar Chain of Thought as presented in RQ1, we do however test the main results of the work with Exemplar CoT to identify whether our findings hold true there as well. That is, we test \texttt{RQ3-Both, RQ3-One}. For \texttt{GPT-3.5-Turbo} we find that the average performance drops from 46.6% (RQ3-Exemplar CoT) as in Table \ref{table:h1-h2} to 28.3% in \texttt{One} and 10.4% in \texttt{Both} variation cases, and remains at 40.3% for \texttt{All} variation.
ALFWorldBothAverage performance10.4%few-shot · model=GPT-3.5-Turbo
Source quote
L225: While this work does not investigates effectiveness of exemplar Chain of Thought as presented in RQ1, we do however test the main results of the work with Exemplar CoT to identify whether our findings hold true there as well. That is, we test \texttt{RQ3-Both, RQ3-One}. For \texttt{GPT-3.5-Turbo} we find that the average performance drops from 46.6% (RQ3-Exemplar CoT) as in Table \ref{table:h1-h2} to 28.3% in \texttt{One} and 10.4% in \texttt{Both} variation cases, and remains at 40.3% for \texttt{All} variation.
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
ALFWorldBase ReAct baselineAverage success27.6%few-shot · model=GPT-3.5-Turbo
Source quote
L138: \vcell{GPT-3.5-Turbo} │ \vcell{27.6} │ {}\vcell{46.6} │ {}\vcell{41} │ {}\vcell{30} │ {}\vcell{28.3} │ {}\vcell{43.3} │ {}\vcell{41.6} \\[-\rowheight]
ALFWorldExemplar-based CoT baselineAverage success46.6%few-shot · model=GPT-3.5-Turbo
Source quote
L138: \vcell{GPT-3.5-Turbo} │ \vcell{27.6} │ {}\vcell{46.6} │ {}\vcell{41} │ {}\vcell{30} │ {}\vcell{28.3} │ {}\vcell{43.3} │ {}\vcell{41.6} \\[-\rowheight]
BibTeX
@misc{verma2024brittle,
  author = {Mudit Verma and Siddhant Bhambri and Subbarao Kambhampati},
  title = {{On the Brittle Foundations of ReAct Prompting for Agentic Large Language Models}},
  year = {2024},
  eprint = {2405.13966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13966},
}
Figure