GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
Agrawal, Lakshya A, Tan, Shangyin, Dilara Soylu, Noah Ziems, Khare, Rishi, Krista Opsahl-Ong et al. · 2026 · 717 citationsRead the paper
All 17 authors
Arnav Singhvi, Herumb Shandilya, Michael James Ryan, Meng Jiang, Christopher Potts, Sen, Koushik, Alexandros G. Dimakis, Ion Gabriel Stoica, Dan Klein, Matei Zaharia, Omar Khattab
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 design, it can often turn even just a few rollouts into a large quality gain. Across six tasks, GEPA outperforms GRPO by 6% on average and by up to 20%, while using up to 35x fewer rollouts. GEPA also outperforms the leading prompt optimizer, MIPROv2, by over 10% (e.g., +12% accuracy on AIME-2025), and demonstrates promising results as an inference-time search strategy for code optimization. We release our code at https://github.com/gepa-ai/gepa .
What the full text shows
Working prototype- GEPA outperforms GRPO on average across six tasks while using significantly fewer rollouts. — 6% average improvement (up to 20% on some tasks) with up to 35x fewer rollouts (Evaluated using Qwen3 8B across six benchmarks)
- GEPA outperforms MIPROv2 on AIME-2025. — +12% accuracy (Evaluated using Qwen3 8B)
- GEPA-optimized prompts for a weaker model generalize to a stronger model. — +9% gain on GPT-4.1-Mini (Prompts optimized using Qwen3-8B and evaluated on GPT-4.1-Mini)
- GEPA achieves high vector utilization for AMD NPU kernels. — 70% peak utilization (30.52% mean) vs 4.25% for sequential refinement (Using GPT-4o)
- GEPA generates CUDA kernels faster than Pytorch-eager. — Over 20% of 35 representative tasks (Using GPT-4o)
- GEPA can evolve universal adversarial instructions that degrade model performance. — Pass@1 reduced from 76% to 10% on AIME-2025 (GPT-5 Mini)
- Setup
- Evaluated on Qwen3 8B and GPT-4.1 Mini across six benchmarks: AIME-2025, LiveBench-Math, HotpotQA, IFBench, HoVer, and PUPA.
- How
- GEPA is a prompt optimizer that samples trajectories, uses natural language reflection to diagnose problems and propose updates, and maintains a Pareto frontier of candidates to combine complementary lessons. It evolves prompts through a genetic-style process incorporating textual environment feedback.
Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it