Simplicity is Enough: ReAct Agents for Prompt Optimization
How much prompt-search machinery is actually necessary?
Simplicity is Enough: ReAct Agents for Prompt Optimization
One ReAct agent replaces candidate search
Search methods propose and rank candidate instructions; evolutionary variants add mutation or Pareto selection.
A reusable natural-language protocol gives one ReAct agent inspection, evaluation and trace-analysis tools to revise a single prompt lineage, with rollback to the best training score.
The target still runs; the search policy changes.
A round converts failures into reusable rules
- 1
Inspect failures
Score the baseline; inspect up to 15 worst cases, compare traces with expected behavior or gold reasoning when available, then group errors by type and module.
- 2
Revise and roll back
Write reusable rules, not copied examples. Keep edits matching the best score; retain small drops only when pass/fail flips suggest noise, else roll back.
- 3
Choose and test
Return the highest-scoring prompt set; evaluate it unchanged on disjoint test data.
Fewer evaluations, lower total cost

Across six public benchmarks, ReAPO with GPT-4.1 Mini as optimizer/system used 4,512 vs GEPA's 23,619 rollouts; October 2026 list-price API cost was 17.4vs64.5, excluding cache discounts. Wall-time bars use GPT-5 optimization runs.
Three public tests show clear ReAPO leads
Test %, mean [95% CI], 5 runs; optimizer GPT-5, system GPT-4.1 Mini. GEPA is the comparator here; other optimizers use different setups.
PUPA's privacy-utility average flips across models
GEPA-Merge leads PUPA at 95.3%, ahead of GEPA (93.0%) and ReAPO (91.4%). ReAPO's answer quality beats GEPA's (93.8 vs 92.0), but privacy, one minus external-request leakage, is lower (88.9 vs 93.9).
GPT-4.1 Mini-optimized prompts transferred zero-shot to Qwen3.5-9B: ReAPO scores 95.9% vs GEPA's 90.5%, with higher privacy (96.1 vs 86.9) and quality (95.8 vs 94.0); GEPA-Merge was not tested.
PUPA averages privacy and answer quality; Qwen3.5-9B follows ReAPO's privacy hierarchy more reliably.
ReAPO leads on three of four changed enterprise tasks
Test %, mean [95% CI] over 5 runs; GPT-5 optimizer/evaluator, approximately matched rollouts. Customer Support stayed at baseline for both.
What happens when failure traces disappear?
With GPT-5 optimizing GPT-4.1 Mini, Score-Only stayed within 2.0 points of Full across four tasks; the largest Full-to-Macro gap was 3.4 on HoVer.
Score-Only received aggregate scores alone; Full also exposed per-example results and traces. Scores were 36.1% vs 71.1% (GPT-5 optimizer, GPT-4.1 Mini system).
Authors suggest task familiarity matters; the ablation cannot prove pretraining exposure.
Where the simple loop gives up
Single lineage
Rollback cannot recombine complementary prompts, so an early mistaken edit may shape later rounds.
Noisy estimates
Bootstrap 95% confidence intervals across five independent runs overlap on some tasks; single-run scores on small benchmarks can mislead.
Fixed protocol
Natural-language steps are not enforced; weaker optimizers may stop early, while a fixed budget can under- or over-optimize.
Different feedback
Methods retain their released evidence interfaces, so comparisons measure complete procedures, not information-matched search algorithms.
Why it matters
- With GPT-4.1 Mini in both roles, ReAPO matched or beat GEPA on five of six public tests at 2.5–7.8× fewer rollouts.
- Inspect traces, group failures, write reusable rules, keep the best training checkpoint, and test it unchanged on disjoint data.
- Can adaptive stopping and a small prompt archive prevent inherited errors without erasing the rollout savings?
10 slides, 3 min
1 day ago