Reflective Prompt Optimization of a Deep-Research Agent: A Topic-Disjoint, Multi-Seed Protocol for Measuring Transferable Gains and Prompt-Level Overfitting
cs.CL
Submitted: 2026-10-08
Updated: 2026-10-08
Code: https://github.com/gepa-ai/gepa
License: http://creativecommons.org/licenses/by/4.0/
The gist: Prompt optimization is an attractive alternative to reinforcement learning for adapting language-model agents, since it is cheap and produces human-readable artifacts.
Abstract
Prompt optimization is an attractive alternative to reinforcement learning for adapting language-model agents, since it is cheap and produces human-readable artifacts. On factual tasks, however, it carries a failure mode that scalar-reward reinforcement learning does not. An optimizer that reads the training examples can write their answers into the prompt, so an in-distribution gain may be memorization rather than transferable behaviour. We apply reflective prompt evolution (GEPA) to the two system prompts of a multi-agent deep-research agent and evaluate it under a topic-disjoint split in which no topic is shared across train, validation, and test. Held-out citation reward rises by 0.079, from 0.702 to 0.781, with a bootstrap 95% confidence interval of [0.051, 0.107], and the gain replicates across three seeds (mean 0.107). Nearly half of the winning prompt is a memorized answer key, yet a controlled ablation shows this content earns no reward even on the exact training questions it encodes. The large validation-minus-held-out gap is therefore small-sample selection under a noisy judge, not memorization. Varying the verifier isolates what makes the gain transfer. Decomposed per-dimension feedback is the causal ingredient, and collapsing it to a single scalar reward makes held-out transfer negative. The gain persists under an out-of-family judge and is largely reproduced by a hand-written version of the discovered recipe. Credible evaluation of prompt optimizers therefore requires held-out topics, multiple seeds, and verifier ablations. We release the candidate prompts, lineage diffs, figures, tables, and analysis.
Sources
- GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
- Concrete Problems in AI Safety
- MAS-PromptBench: When Does Prompt Optimization Improve Multi-Agent LLM Systems?
- Reward Model Ensembles Help Mitigate Overoptimization
- Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolution
- TextReg: Mitigating Prompt Distributional Overfitting via Regularized Text-Space Optimization
- Scaling Laws for Reward Model Overoptimization
- FrugalRAG: Less is More in RL Finetuning for Multi-Hop Question Answering
- Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning
- Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLP
- Do You Need a Frontier Model as a Citation Verifier? Benchmarking Rubric LLMs for Deep-Research Source Attribution
- Comparison of Text-Based and Image-Based Retrieval in Multimodal Retrieval Augmented Generation Large Language Model Systems
- Recursive Agent Harnesses
- Reward Hacking in Rubric-Based Reinforcement Learning
- Categorizing Variants of Goodhart's Law
- Cited but Not Verified: Parsing and Evaluating Source Attribution in LLM Deep Research Agents
- LLM Evaluators Recognize and Favor Their Own Generations
- VerIF: Verification Engineering for Reinforcement Learning in Instruction Following
- Self-Preference Bias in Rubric-Based Evaluation of Large Language Models
- Generalizing Verifiable Instruction Following
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering