GEPA (2025) logo

GEPA (2025)

Free

Reflective evolution outperforms GRPO by 6–20 pts with fewer rollouts

FreeFree tier
Type
Open Source

About GEPA (2025)

GEPA (Genetic-Pareto) is a prompt optimizer introduced in a 2025 academic paper (accepted to ICLR 2026 as Oral) that uses natural language reflection to learn high-level rules from trial and error. It samples trajectories from AI systems containing one or more LLM prompts, reflects on them in natural language to diagnose problems, propose and test updates, and combine complementary lessons from the Pareto frontier of its attempts. Across six tasks, GEPA outperforms the reinforcement learning method GRPO by 6% on average and up to 20% while using fewer rollouts, and surpasses the leading prompt optimizer MIPROv2 by over 10%. The method also shows promise as an inference-time search strategy for code optimization. Code is released open-source.

Key Features

Thoroughly incorporates natural language reflection to learn high-level rules from trial and error
Samples trajectories (reasoning, tool calls, tool outputs) and reflects to diagnose problems and propose updates
Combines complementary lessons from the Pareto frontier of its own attempts
Often turns a few rollouts into large quality gains
Works with any AI system containing one or more LLM prompts
Demonstrates effectiveness on code optimization as an inference-time search strategy

Pros & Cons

Pros
  • Outperforms GRPO by 6% on average and up to 20%
  • Uses up to 35x fewer rollouts compared to GRPO
  • Outperforms leading prompt optimizer MIPROv2 by over 10%
  • Open-source with code publicly available
  • Accepted to ICLR 2026 as an Oral presentation

Best For

Prompt optimization for downstream tasksReasoning tasks (e.g., AIME-2025 math problems)Code optimizationAdapting LLMs to new tasks via reflective prompt evolution

FAQ

What is GEPA?
GEPA (Genetic-Pareto) is a prompt optimizer that uses natural language reflection to learn high-level rules from trial and error, outperforming reinforcement learning methods.
How does GEPA compare to GRPO?
GEPA outperforms GRPO by 6% on average and up to 20% while using up to 35x fewer rollouts.
Is GEPA open source?
Yes, the code for GEPA is released via the link provided in the paper.
What tasks can GEPA be applied to?
GEPA has been tested on six tasks including reasoning (e.g., AIME-2025) and code optimization, and can be applied to any task involving LLM prompts.