Self-Improvement of Context, Harness, and Model Weights through Reflective Optimization
Lakshya Agrawal
- When
- Wednesday, July 12:25 PM – 2:45 PM · 20 min
- Where
- Main StageSan Francisco, CA · imported from ai.engineer's public schedule feed
About this session
Large language models are increasingly adapted to downstream tasks via reinforcement learning methods like GRPO, which often require thousands of rollouts to learn new tasks. We argue that language provides a much richer learning medium: an LLM can reflect on full trajectories (including reasoning, tool calls and errors) to diagnose failures and propose targeted improvements. We introduce [GEPA](gepa-ai.github.io/gepa/), a reflective prompt optimizer that incorporates this principle outperforming GRPO by up to 20% while using up to 35x fewer rollouts across tasks spanning 5+ domains and also works with black-box models.
Building on this, we then introduce [optimize_anything](gepa-ai.github.io/gepa/blog/2026/02/18/introducing-optimize-anything/), a unified API that generalizes reflective optimization to arbitrary text parameters. This single system achieves state-of-the-art results across eight fundamentally different areas, including nearly tripling ARC-AGI accuracy via agent architecture discovery, generating CUDA kernels that beat PyTorch and cutting cloud scheduling costs by 40% through policy discovery, establishing LLM-based reflective search as a general-purpose problem-solving paradigm.
Finally, I present [Fast-Slow Training](arxiv.org/abs/2605.12484) (FST), which brings reflective optimization into LLM post-training. FST jointly optimizes model parameters ("slow weights") via RL and textual contexts ("fast weights") via GEPA. Because the fast channel quickly absorbs task-specific nuances, the slow parametric updates are freed to consolidate general reasoning rather than memorizing task details. This yields up to 3x better sample efficiency, a higher performance asymptote with a significantly lower drift from the base model. This reduced drift preserves plasticity for continual learning, allowing FST to adapt sequentially where parameter-only RL stalls.
Broadly, our work advocates a fundamental shift in AI adaptation: replacing task-specific algorithms with diagnostic evaluation, and evolving from parameter-only post-training to the joint optimization of prompts, agent architectures, and model weights.
Speaker
Creator and maintainer of GEPA, GEPA
Lakshya A. Agrawal is the creator and maintainer of GEPA and a second-year EECS PhD student at UC Berkeley’s Sky Computing Lab. His research focuses on optimization, evaluation, and self-improvement for LLM-based agents and systems. He previously worked as an AI4Code Research Fellow at Microsoft Research.
More in Autoresearch
- Field Guide to FableWednesday, July 1 · 9:05 AM – 9:25 AM · Main Stage
- Perception AgentsWednesday, July 1 · 9:45 AM – 10:05 AM · Main Stage
- Research to Reality with Google DeepMindWednesday, July 1 · 10:05 AM – 10:25 AM · Main Stage
- Evals Track IntroWednesday, July 1 · 10:25 AM – 10:30 AM · Main Stage
- First Steps Toward Automated AI ResearchWednesday, July 1 · 10:45 AM – 11:05 AM · Main Stage
For developers: this programme is open data — JSON, iCal, schedule XML and an MCP endpoint.Show endpointsHide
- JSONEvery published session and speaker, in one request./aie-worldsfair-2026-import/feed.json
- iCalSubscribe in Google, Apple or Outlook Calendar./aie-worldsfair-2026-import/feed.ics
- Schedule XMLfrab / pentabarf — the format conference apps import./aie-worldsfair-2026-import/feed.xml
- MCP + RESTPoint Claude at the programme. OpenAPI 3.1 included./agents
No key, no signup, CORS open. Everything here is generated from the same data the organisers edit.