Simplicity is Enough: ReAct Agents for Prompt Optimization

Andrei Dumitrescu, Andrei C. Rusu and colleagues (UiPath) present ReAPO, a NeurIPS 2026 paper that runs prompt optimization as a plain ReAct agent with evaluation and reflection tools, and finds it matches specialized evolutionary and search-based optimizers.
Ask this paper
Method. The agent refines a prompt through error analysis, reflective reasoning and validation against the objective, using only a ReAct loop with tool access, with no bespoke search machinery.
Results. On benchmarks covering multi-hop QA, math reasoning, fact verification, instruction following and privacy-conscious delegation, plus real enterprise agentic tasks, ReAPO matches or beats specialized methods with 2 to 7 times fewer evaluation rollouts and lower API cost.
Evaluation methodology. The authors report confidence intervals over multiple independent runs and show that single-run comparisons on small benchmarks can rank optimizers wrongly because LLM variance hides the true differences.
Implication. Teams choosing a prompt optimizer can start with a general agent loop before adopting a complex framework, and should not trust single-run leaderboard gaps.
Abstract
Prompt optimization has recently been approached with increasingly specialized search procedures and evolutionary frameworks. In this work, we ask whether such complexity is necessary to achieve competitive performance. We introduce ReAPO (ReAct Agents for Prompt Optimization), a lightweight framework that casts prompt optimization as an agentic process built around a ReAct loop augmented with evaluation and reflection tools. Rather than relying on bespoke optimization machinery, ReAPO iteratively refines prompts through error analysis, reflective reasoning, and validation against the optimization objective. We evaluate ReAPO on several established benchmarks spanning multi-hop question answering, mathematical reasoning, fact verification, instruction following, and privacy-conscious delegation, as well as on real enterprise agentic tasks. Across these settings, this agentic optimizer can match or outperform specialized prompt optimization methods, with 2-7x fewer evaluation rollouts and a lower API cost on the public benchmarks. We also report confidence intervals over multiple independent runs and show that single-run evaluations on small benchmarks can give a misleading picture of relative performance, since LLM variance may obscure true gains. Taken together, our results suggest that effective prompt optimization need not depend on increasingly elaborate search procedures and that agentic methods can provide a more efficient alternative.