arXiv:2610.37651cs.CLOct 2026

Manuscript Offprint

arXiv:2610.37651

GEPA-Curator: Curated Learning for Self Improving Agents

Zack Yu, Nicholas Lee, Minjae Lee, Lakshya Agarwal, Luca Manolache, Wonjun Kang, Matei Zaharia, Michael W. Mahoney, Kurt Keutzer, Sehoon Kim, Amir Gholami

ABSTRACT

Large Language Models (LLMs) are increasingly used in multi-turn agentic workloads that require sustained interaction with complex environments. Existing reflective prompt optimizers such as GEPA learn from failed rollouts, but agentic failures can also come from prompt weaknesses, harness limitations, stochastic execution, or noisy judges. We argue that such failures may not provide useful learning signal, and may even be harmful; and thus it is essential to curate which tasks are provided to the prompt optimizer for better performance. We introduce GEPA-Curator, a framework that augments the prompt optimizer to select which agent experiences should shape prompt optimization. In particular, GEPA-Curator consists of two components: task curation, which filters out tasks that are likely to provide noisy or unreliable learning signals, and prior success retrieval, which selectively retrieves past successful trajectories for a task and provides them as additional context to the prompt optimizer. We evaluate GEPA-Curator on GoBrowse, ALFWorld, AppWorld, and τ\tau-bench, using both Gemini 3.1 Pro and Claude Opus 5 as optimizer models. GEPA-Curator matches or exceeds the mean performance of both baselines, with gains of up to 20.7% over GEPA and 21.2% over ACE.

1 INTRODUCTION

As interest in recursive self-improvement (RSI) grows, a central question is how agents can reliably learn from their own experience to improve future behavior (Favaro & Clark, 2026). Reflective prompt optimization, where an agent acts with tools in an environment and a Reflector uses the resulting trajectory or end state to identify lessons and revise the agent's prompt, offers one practical mechanism for this form of self-improvement (Agrawal et al., 2026; Zhang et al., 2026). The revised prompt is then used on subsequent tasks, creating a feedback loop in which experience can progressively improve agent behavior. In agentic settings, this approach rests on the assumption that experience from previously attempted tasks contains signal and information that generalize to future tasks.

However, it is often difficult for the Reflector to correctly attribute the cause of a failure to the prompt. In agentic tasks, execution is mediated by a harness interacting with an external environment, and success is often assessed by LLM-as-a-judge (Zheng et al., 2023). A failed rollout may therefore reveal a genuine prompt weakness, but it may also arise from external factors such as unavailability of needed tools, harness limitations, or even noise from execution or evaluation environments. This problem is further exacerbated in real-world settings, where tasks themselves may be ambiguous or infeasible, introducing additional noisy signals to the Reflector. When revising the prompt, the Reflector may nevertheless treat these potentially noisy observations as valid learning signals for prompt optimization (Kirichenko et al., 2025), causing it to misattribute the associated failures to prompt deficiencies, thereby producing unnecessary or harmful updates.

As an example, consider an agent asked to purchase an item from a shopping website. If the agent fails because it overlooks a required option before adding the item to the cart, the Reflector can usefully revise the prompt to encourage checking required fields before proceeding. In contrast, if the

∗^{*}Equal contribution. †\daggerEqual Advising. Correspondence to: Amir Gholami (amirgh@berkeley.edu).

same task fails because it runs in a broken environment where the purchase button in the webpage is temporarily malfunctioning, treating this failure as evidence about the prompt may lead the Reflector to introduce unnecessary or even harmful changes. For example, it may conclude that the agent needs to seek alternative ways to complete the purchase, while the button can become functional for future tasks.

To mitigate such issues, recent work (Agrawal et al., 2026; Yang et al., 2026) uses a held-out validation set in order to guard against these changes. If the prompt does poorly on the validation set after mutation, the change can be rejected. GEPA (Agrawal et al., 2026) goes a step further and evaluates the mutated prompt on the minibatch again to make sure that the model performance does not degrade after such a mutation. However, such validation-based gating mechanisms alone may not be sufficient to prevent noisy signals, for two reasons. First, bad mutations may be accepted and good ones rejected, e.g., because the gating decision relies on aggregated evaluation scores, which can be noisy due to stochasticity in execution or evaluation. Second, such validation-based gating acts only after a mutation has been generated, and therefore cannot fundamentally improve the quality of the reflection or mutation itself. This motivates us to maintain and provide additional contextual information in order to improve the capabilities of the Reflector.

Based on these insights, we present GEPA-Curator, an agentic data Curator which runs as a harness on top of existing prompt optimizers. GEPA-Curator has two roles. The first is task curation, where instead of randomly selecting tasks for the minibatch, the agent will curate a minibatch which is likely to provide clean signal and discard tasks which seem to be noisy or faulty. The second is a prior success retrieval, where the Curator can selectively retrieve past successful trajectories for a task and provide them as context to the prompt optimizer to improve the quality of the mutation. Providing the Reflector agent with successful exemplars is essential to give the model the proper context to see why the prompt is failing now, and when it succeeded in the past.

Overall, our contributions are as follows:

• We introduce GEPA-Curator, an agentic harness for prompt optimization that improves mutation quality through adaptive task curation (Section 3.1) and selective retrieval (Section 3.2) of prior successful trajectories.

• We evaluate GEPA-Curator on four WebArena websites (Zhou et al., 2024), ALFWorld, AppWorld, and τ\tau-bench. GEPA-Curator matches or exceeds the mean performance of the evaluated baselines, with gains of up to 20.7% over GEPA (Agrawal et al., 2026) and 21.2% over ACE (Zhang et al., 2026). These results suggest that the benefits of curation extend across optimizer models.

References (1)