GEPA Explained! @Weaviate
GEPA Explained!  @Weaviate
Uploaded August 2025 | Updated September 2026, 39 minutes ago
GEPA is a SUPER exciting advancement for DSPy and a new generation of optimization algorithms re-imagined with LLMs! Starting with the title of the paper, the authors find that Reflective Prompt Evolution can outperform Reinforcement Learning!! Using LLMs to write and refine prompts (for another LLM to complete a task) is outperforming (!!) highly targeted gradient descent updates using cutting-edge RL algorithms such as GRPO!!

GEPA makes three key innovations in how exactly we use LLMs to propose prompts for LLMs -- (1) Pareto-Optimal Candidate Selection, (2) Reflective Prompt Mutation, and (3) System-Aware Merging for optimizing Compound AI Systems. The authors further present how GEPA can be used for training at test-time, one of the most exciting directions AI is evolving in!

I hope you enjoy this review of the paper! Please let us know if you have any questions or inspired insihgts, and we would be more than happy to discuss them with you!

LInks:
GEPA: arxiv.org/abs/2507.19457
Announcement thread from Lakshya A. Agrawal on Twitter: https://x.com/LakshyAAAgrawal/status/1949867947867984322
DSPy 3.0 -- and DSPy at Databricks by Omar Khattab: youtube.com/watch?v=grIuzesOwwU
DSPy on GitHub: github.com/stanfordnlp/dspy
The Unreasonable Effectiveness of Eccentric Automatic Prompts: arxiv.org/abs/2402.10949
Large Language Models as Optimizers: arxiv.org/abs/2309.03409
MIPRO: arxiv.org/abs/2406.11695
Compound AI Systems: https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/


Chapters
0:00 Prompts vs. RL
2:38 LLMs as Optimizers
6:05 Pareto-Optimal Candidate Selection
11:15 Reflective Prompt Evolution
16:13 GEPA Algorithm
18:46 Experimental Results
26:50 Inference-Time Search
29:18 DSPy 3.0
GEPA Explained!1. An Introduction to AI AgentsLate Interaction combines the best of Keyword and Semantic SearchHow to choose an embedding modelWeaviate 1.23 Release Podcast with Etienne Dilocker!Booking.coms Vector Search BenchmarkExploring the AI Renaissance with AngelinaWhat is Vibe Coding?GEPA with Lakshya A. Agrawal - Weaviate Podcast #127!Drowning in Documents with Mathew Jacob - Weaviate Podcast #141!10. Use Cases of AI AgentsAI Agents That Matter with Sayash Kapoor and Benedikt Stroebl - Weaviate Podcast #104!
Weaviate vector database |

GEPA Explained!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER