---
title: "GEPA Beats GRPO by 20% Using 35x Fewer AI Training Rollouts"
subtitle: "GEPA optimizes prompts, code, and agent architectures using LLM reflection on execution traces, beating RL methods with 35x fewer rollouts."
url: "https://alphasignal.ai/news/gepa-beats-grpo-by-20-using-35x-fewer-ai-training-rollouts"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-06-23T04:49:46.000Z"
updated: "2026-08-19T09:03:57.970Z"
type: "Repo"
topics:
  - "Development"
  - "Open Source"
subtopics:
  - "Code Generation"
  - "Code Agents"
upvotes: 19
source_url: "https://github.com/gepa-ai/gepa"
comments: 0
truncated: true
---

# GEPA Beats GRPO by 20% Using 35x Fewer AI Training Rollouts

> GEPA optimizes prompts, code, and agent architectures using LLM reflection on execution traces, beating RL methods with 35x fewer rollouts.

A new optimizer called [GEPA](https://github.com/gepa-ai/gepa) is quietly reshaping how teams tune LLM systems. Instead of nudging weights with scalar rewards, it reads full execution traces (error messages, reasoning logs, tool outputs) and rewrites the prompt itself. The repo has crossed 6,000 stars, the paper was accepted as an ICLR 2026 Oral, and Shopify's CEO publicly called it under-hyped. So it's worth unpacking what it actually does.

GEPA stands for Genetic-Pareto. It targets a specific pain point: reinforcement learning methods like GRPO often require thousands of rollouts to learn new tasks, and the authors argue that the interpretable nature of language provides a much richer learning medium for LLMs than policy gradients derived from sparse scalar rewards. The core bet is that natural language feedback carries more signal per rollout than a single reward number ever could.

## Reading traces instead of counting rewards

The optimization loop looks less like gradient descent and more like a code review cycle. Given any AI system containing one or more LLM prompts, GEPA samples system-level trajectories such as 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.

Concretely, each iteration does five things:

1. Select a candidate prompt from the Pareto frontier of prior attempts (candidates that excel on different task subsets)
2. Execute it on a minibatch, capturing full traces
3. Reflect: a reflection LLM reads the traces and diagnoses failures
4. Mutate: generate an improved candidate informed by accumulated lessons

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [gepa-ai/gepa GitHub Repository](https://github.com/gepa-ai/gepa)
- [GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning](https://arxiv.org/abs/2507.19457)
- [Reflective Prompt Evolution with GEPA - DSPy Tutorial](https://dspy.ai/tutorials/gepa_ai_program/)
- [Optimizing GEPA for production - Decagon](https://decagon.ai/blog/optimizing-gepa-for-production)
- [GEPA: The Game-Changing DSPy Optimizer for Agentic AI](https://shashikant86.substack.com/p/gepa-the-game-changing-dspy-optimizer)
