GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, Omar Khattab

TL;DR
GEPA is a prompt optimization method that leverages natural language reflection, outperforming reinforcement learning and existing prompt optimizers in efficiency and accuracy across multiple tasks.
Contribution
Introduces GEPA, a natural language reflection-based prompt optimizer that surpasses RL and prior methods in efficiency and effectiveness for LLM task adaptation.
Findings
GEPA outperforms GRPO by 6% on average across six tasks.
GEPA uses up to 35x fewer rollouts than RL methods.
GEPA exceeds MIPROv2 performance by over 10% in accuracy.
Abstract
Large language models (LLMs) are increasingly adapted to downstream tasks via reinforcement learning (RL) methods like Group Relative Policy Optimization (GRPO), which often require thousands of rollouts to learn new tasks. We argue that the interpretable nature of language often provides a much richer learning medium for LLMs, compared to policy gradients derived from sparse, scalar rewards. To test this, we introduce GEPA (Genetic-Pareto), a prompt optimizer that thoroughly incorporates natural language reflection to learn high-level rules from trial and error. Given any AI system containing one or more LLM prompts, GEPA samples trajectories (e.g., reasoning, tool calls, and tool outputs) and reflects on them in natural language to diagnose problems, propose and test prompt updates, and combine complementary lessons from the Pareto frontier of its own attempts. As a result of GEPA's…
Peer Reviews
Decision·ICLR 2026 Oral
1. The paper addresses an important and timely challenge—improving the sample efficiency of LLM post-training—and presents a well-motivated approach to tackle it. 2. The proposed method overcomes key challenges of existing RL-based approaches, such as credit assignment from single scalar rewards and low sample efficiency. 3. The results are compelling and challenge the existing paradigm of RL-based post-training in the field of LLM post-training.
1. (Line 220) “Human-written explanations” – does the human have to provide textual feedback based on the scalar reward? 2. What is r in Algorithm 4? 3. Other LLM-based evolutionary methods have been explored in the context of adversarial prompt generation and red-teaming, and these works should be appropriately cited, for example [1]. [1] Samvelyan, M. et al. (2024). Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts. In NeurIPS 2024.
1、It proposes a prompt optimization algorithm based on the Pareto frontier, which avoids the problem of local optima found in previous prompt optimization methods. 2、Combining prompt optimization method with the multiple-rollout approach of GRPO, it demonstrates a significant improvement in the effectiveness and sample efficiency of prompt optimization. I think the main improvement comes from contrasting multiple rollouts and produce a better prompt. 3、The performance of the proposed framework
1、Like many prompt optimization methods, this approach is highly dependent on the model's own reasoning and summarization capabilities. It requires the model to analyze successful and failed rollouts and distill effective textual experience into the prompt. Consequently, this method may not be suitable for less capable LLMs, an aspect the paper fails to analyze. 2、The paper does not analyze the types of tasks for which this prompt optimization method is effective and those where it might not be
The method leverages explicit reflection and Pareto-based selection for prompt optimization, and shows its superior sample efficiency and performance against baselines.
The novelty of the paper is limited. Reflection has been used in prior works (e.g. Reflexion and Self-Refine) for iterative improvement, and genetic algorithms have also already been applied to prompt optimization (e.g., EvoPrompt, Promptbreeder, and EvoAgent). The paper is hard to follow, and needs more clarification. For example, what is the detail of the Reflective Prompt Mutation, especially for the feedback. In addition, System aware merge should be described clearly in the paper. How to s
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsReinforcement Learning in Robotics · Multimodal Machine Learning Applications · Machine Learning and Data Classification
