# Simplicity is Enough: ReAct Agents for Prompt Optimization

> ReAPO's ReAct agent diagnoses failures, revises prompts, and keeps the best training-scored version rather than a candidate pool. With GPT-4.1 Mini as optimizer and system, it matched or beat GEPA on five of six public benchmarks while using 2.5–7.8× fewer rollouts.

- arXiv: https://arxiv.org/abs/2611.36061
- Authors: Andrei Dumitrescu, Andrei C. Rusu, Adrian Catalin Badea, Bai Li, Cosmin Maria, Ion Anghelina, Tomasz Lukasz Religa, Dragos H Bobolea
- Published: 2026-12-01
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.36061
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## How much prompt-search machinery is actually necessary?

**7.8× fewer** rollouts vs GEPA; max across six public tasks

## One ReAct agent replaces candidate search

**Candidate search:** Search methods propose and rank candidate instructions; evolutionary variants add mutation or Pareto selection.

**ReAPO:** 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

![Figure 3](https://cdn.instaxiv.com/figures/2611.36061/figure3.webp)

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.4 vs $64.5, excluding cache discounts. Wall-time bars use GPT-5 optimization runs. (Figure 3)

## Three public tests show clear ReAPO leads

| Method | HoVer (%) | AIME (%) | PUPA (%) |
| --- | --- | --- | --- |
| GEPA | 54.6 [53.1, 56.1] | 44.7 [40.7, 50.7] | 91.1 [90.2, 91.9] |
| **ReAPO (+9.3 pp AIME)** | **59.1 [57.9, 60.3]** | **54.0 [51.3, 56.7]** | **93.1 [92.7, 93.5]** |

_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

**GPT-4.1 Mini (both roles):** 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).

**Zero-shot transfer:** 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

| Method | Claim History | Meeting Mgmt | Product Qs | SQL |
| --- | --- | --- | --- | --- |
| GEPA | 90.3 [86.1, 94.4] | 70.0 [65.6, 74.3] | 73.3 [65.9, 78.5] | 80.8 [78.0, 83.6] |
| **ReAPO (+19.3 pp (Qs))** | **80.2 [76.5, 82.9]** | **85.9 [81.0, 88.5]** | **92.6 [90.4, 94.8]** | **84.9 [84.1, 85.5]** |

_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?

**Public benchmarks:** 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.

**Meeting Management:** 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.

Best used when: Use when failure traces are inspectable; reserve disjoint data for final testing.

## Key takeaways

- 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?

## Links

- arXiv: https://arxiv.org/abs/2611.36061
- PDF: https://arxiv.org/pdf/2611.36061
- Code: https://github.com/UiPath/agents-gym-core

## Citation

```bibtex
@article{dumitrescu2026simplicity,
  title   = {Simplicity is Enough: ReAct Agents for Prompt Optimization},
  author  = {Dumitrescu, Andrei and Rusu, Andrei C. and Badea, Adrian Catalin and Li, Bai and Maria, Cosmin and Anghelina, Ion and Religa, Tomasz Lukasz and Bobolea, Dragos H},
  journal = {arXiv preprint arXiv:2611.36061},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.36061}
}
```
