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.
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:
- RQ1: The Role of Interleaving: Comparing standard ReAct (interleaved thoughts/actions) against Chain-of-Thought (CoT) where all reasoning is provided upfront.
- RQ2: The Content of Reasoning: Testing "Placebo Guidance" (e.g., "take a deep breath") and "Hindsight Guidance" (explaining failures) against standard success-oriented traces.
- 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.
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