GEPA Explained!

Weaviate vector database · Beginner ·📄 Research Papers Explained ·11mo ago

Key Takeaways

Explains GEPA, a new advancement in DSPy, and its use of Reflective Prompt Evolution to outperform Reinforcement Learning

Original Description

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: https://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: https://www.youtube.com/watch?v=grIuzesOwwU DSPy on GitHub: https://github.com/stanfordnlp/dspy The Unreasonable Effectiveness of Eccentric Automatic Prompts: https://arxiv.org/abs/2402.10949 Large Language Models as Optimizers: https://arxiv.org/abs/2309.03409 MIPRO: https://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
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
On July 1, 2026, arXiv will spin out from Cornell University, its home for the past 25 years, to become an independent nonprofit organization. Major funding support from Simons Foundation and Schmidt Sciences. Ditching the red for their website. [N]
arXiv is becoming an independent nonprofit organization after 25 years at Cornell University, backed by major funding, which will impact the future of research and academia
Reddit r/MachineLearning
📰
CS-NRRM™ Official Publications: Paper 1 and Paper 2 Are Now Available
Learn about the CS-NRRM's official publications on a 12-year longitudinal human observation archive and its significance in research and development
Medium · Data Science
📰
Found a potential mistake in an ICLR 2026 blogpost [D]
Verify a potential mistake in an ICLR 2026 blog post and learn how to effectively report errors in academic publications
Reddit r/MachineLearning
📰
Rebuttals Move Peer-Review Scores, but Initial-Review Structure Bounds the Movement
Learn how author rebuttals impact peer-review scores and the factors that influence their effectiveness in ICLR 2024-2025, using LLMs for measurement
ArXiv cs.AI

Chapters (8)

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
Up next
Indians Under House Arrest in America? 😱 Immigration Crisis Explained | SumanTV Classroom
SumanTV Classroom
Watch →