Beating RL With Reflection: GEPA and Optimize Anything — Lakshya A. Agrawal, GEPA
Sep 26, 2026AI Engineer
Summary
This post introduces GEPA (Generative Exploration and Prompting Agent) and Optimize Anything, frameworks that leverage reflective optimization for AI tasks. GEPA significantly improves sample efficiency in reinforcement learning by having an AI model read full traces (thoughts, tool calls, errors) and write better prompts, outperforming traditional RL algorithms like GRPO with far fewer examples. Optimize Anything extends this to any text-based, scoreable task, demonstrating dramatic improvements in agent performance across various benchmarks (e.g., ARC-AGI, AMD NPU coding, GPT-5 mini coding). The work also touches on learning evals from production traces and co-optimizing prompts and weights.
More from the Agentic Research and Discovery Loops trail
- Build a Research Agent with Claude Managed Agents (Part 2 of 4) — Anthropic
- Scheduled Agents, Dreaming and Q&A: Claude Managed Agents (Part 3 of 4) — Anthropic
- Hill-Climbing Skills: Improve Agents Without Changing the Model — Shubhankar Srivastava, Browserbase
- Parameter Golf with AutoResearch — Vayum Arora, Zhengyao Jiang, Dixing Xu & Dhruv Srikanth, Weco AI
- From Zero to Leaderboard: Agent Evaluation — Wolfram Ravenwolf, Weights & Biases