Simplicity is Enough: ReAct Agents for Prompt Optimization
Andrei Dumitrescu, Andrei C. Rusu, Adrian Catalin Badea, Bai Li, Cosmin Maria, Ion Anghelina, Tomasz Lukasz Religa, Dragos H Bobolea
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.LG
- Comments
- Accepted at NeurIPS 2026. 59 pages, 4 figures, 18 tables. Code: https://github.com/UiPath/agents-gym-core
Related papers
Why Policy Prompts Are Not Enough: Learning Decision Playbooks for Fair and Auditable LLM Governance
Shared title terminologycs.CLSanket Badhe, Priyanka Tiwari
MemRSI: Learning Self-Improving Memory Agents via Recursive Policy-Harness Evolution
Shared title terminologycs.CLLitong Liu, Tianxin Wei, Yuanchen Bei et al.
MMPact: Autonomous Multimodal Context Compaction for LLM Agents
Shared title terminologycs.CLFeng Luo, Yang Zhang, Yujian Liu et al.
cuDNN Linear Attention: Optimized Mamba-2, GDN, GDP, KDA, and GDN-2 Kernels for NVIDIA GPUs
Shared title terminologycs.CLJoshua Park, Jingze Cui, Sherry Jiang et al.
BALANCER: Balanced Agentic Learning via Adaptive dyNamic Context ExtRaction for Hard Word Sense Disambiguation
Shared title terminologycs.CLDeshan Sumanathilaka, Nicholas Micallef, Julian Hough
Beyond Persona Prompting: Latent-Conditioned Language Models as Psychometrically Valid Synthetic Respondents
Shared title terminologycs.CLNicola Milano, Davide Marocco