The Research Report
RL Prompting Policies Just Beat GEPA at Its Own Game
Google Research published a paper in May 2026 that flips the prompt optimization script. Instead of evolving prompts through genetic search, they trained a lightweight reinforcement learning agent to generate them. The RL prompter model pushes reasoning accuracy from 55% to 90% on Big Bench Extra Hard and tool-use success from 74% to 91% on Tau-bench. Both numbers beat GEPA, the evolutionary baseline that has dominated automated prompt optimization for the past year.
The paper is "Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience" by Krishna Sayana, Ketan Todi, and Ambarish Jash at Google Research (arXiv:2605.14443). It makes a clean case: RL-based prompt generation with the right feedback mechanism outperforms evolutionary search on the hardest available benchmarks, and does it with better sample efficiency.
The Problem: You Cannot Fine-Tune What You Cannot Touch
Most production LLMs today are black boxes. GPT-5, Gemini Pro, Claude, and their peers expose inference endpoints but hide internal states, gradients, and embeddings. You cannot run LoRA adapters against them. You cannot backpropagate through their layers. The only lever you have is the prompt.
This creates what the paper calls the "fine-tuning bottleneck." Traditional transfer learning is impossible. Parameter-efficient fine-tuning requires internal access. The only adaptation path is in-context learning, which means engineering the right prompt.
The problem is that prompt engineering is fragile. Minor rephrasing, example reordering, or structural tweaks cause unpredictable performance swings. Manual prompt tuning does not scale. Automated approaches try to systematize the search, but they face their own limitations.
The Existing Approach: Evolutionary Search (GEPA)
GEPA, which became DSPy's default optimizer earlier this year, uses genetic algorithms with LLM-generated reflections. It maintains a population of candidate prompts. Each candidate gets evaluated on task performance. The best prompts survive. LLM reflections generate mutations, producing new candidates from the survivors.
GEPA's strength is sample efficiency through rich textual feedback. When a prompt fails, an LLM critic analyzes why and produces a textual critique. The next mutation incorporates that critique. This reflective evolution cycle drives fast improvement with relatively few evaluations.
GEPA's weakness is that it converges to static instructions. It finds one good prompt and stops. It does not learn a policy for generating context-dependent prompts. It cannot adapt its strategy based on the task at hand. Each new task requires a fresh evolutionary search from scratch.
The New Approach: RL Prompter Policies
The Google paper proposes a different architecture. Instead of evolving a static prompt, train a lightweight model to generate prompts as a policy.
The architecture has two components:
The Prompter Agent. A small model (2-10 billion parameters, like Gemini Flash-Lite) that generates prompts. It takes in the task context and historical experience, then outputs a complete system prompt. Gradients flow only through this model.
The Frozen Worker Agent. A large model (Gemini Flash, Gemini Pro, or any black-box LLM) that executes the task using the prompter's output. It never gets updated. It is treated as a fixed environment.
The prompter is trained with policy gradient RL. The objective is simple: maximize the reward (task performance) of the frozen worker when given the prompter's prompt. A KL divergence penalty keeps the prompter from drifting too far from its initial behavior.
This architecture separates planning from execution. The small prompter learns the strategy. The large worker provides the capability. Training is cheap because gradients only touch the prompter.
The Key Innovation: Contrastive Experience Buffers
Standard RL struggles with sparse rewards. A scalar "correct" or "incorrect" signal carries limited information. The prompter gets told it failed but not why. This is the core weakness that GEPA's reflective mutations address.
The paper bridges this gap with a contrastive experience buffer. The buffer stores trajectory triplets: (prompt, critique, reward). Critiques are natural language descriptions of what went wrong, generated by an external feedback model. Rewards are the scalar task performance scores.
At each training step, the system generates multiple candidate prompts. It evaluates them on the frozen worker. It computes critiques for failures. It then adds high-performing candidates (those within a tolerance threshold of the best reward) to the buffer.
When generating the next prompt, the prompter conditions on a sample from the buffer. It sees both successful and failed trajectories with their critiques. This gives it rich, directional feedback about what works and what does not.
The formal insight is that this buffer amortizes multi-turn self-reflection into single-shot policy weights. Without the buffer, the prompter would need to run iterative reflection loops at inference time. With the buffer, those reflections get baked into the policy during training. The prompter learns to generate good prompts in one shot because it has already internalized the lessons from thousands of past failures.
The paper shows the buffer provides up to 2.4x faster convergence compared to RL without the buffer.
Two Optimization Modes
The framework supports two modes.
Fixed Prompt Optimization (Context-Agnostic). The prompter receives no task context. It learns a single static prompt that works across the data distribution. This is equivalent to what GEPA and other APO methods do. The policy is just a mechanism for finding the optimal prompt.
Dynamic Task-Conditional Optimization. The prompter receives a task description as context. It learns to generate different prompts for different tasks. The policy acts as a meta-learner, adapting its output based on the task. This is where the architecture pulls ahead of evolutionary methods. A single trained prompter can handle multiple tasks without re-running optimization.
The dynamic mode is the more powerful and practically relevant one. One prompter model, trained once, generates task-specific prompts at inference time for any task in its training distribution. No evolutionary search required at deployment.
Benchmark Results: BBEH and Tau-bench
The paper evaluates on two complementary benchmarks.
Big Bench Extra Hard (BBEH) tests logic-intensive multi-step reasoning. Tasks include formal logic, algorithmic puzzles, and constraint satisfaction problems that require sustained reasoning chains.
Tau-bench tests agentic tool-use. An LLM agent interacts with a simulated environment, making tool calls to accomplish tasks in domains like airline booking and retail customer service.
The headline numbers:
- BBEH reasoning: 55% baseline to 90% with RL prompter policy
- Tau-bench tool-use: 74% baseline to 91% with RL prompter policy
Both results beat GEPA. The paper provides comprehensive comparisons showing that iterative distillation achieves these results with higher sample efficiency than the evolutionary baseline.
The prompter also discovers specialized algorithmic heuristics during training. In the airline domain on Tau-bench, it learns to sequence tool calls atomically, checking availability before making reservations. In retail workflows, it discovers list-batching protocols that group related operations. These strategies emerge from the RL training process, not from manual prompt engineering.
Cross-Model Transfer
One of the most practical findings concerns cross-model compatibility. The paper tests whether a prompter trained on one worker model can effectively steer a different model.
The answer is yes, with qualifications. A prompter trained on Gemini Flash can guide Gemini Pro with meaningful performance gains. The transfer is not perfect. The prompter works best on the model it was trained against. But the directional gains hold, which means organizations can train a prompter against a cheaper model and deploy it against a more capable one.
This matters for cost. Training requires many inference calls through the worker. Running those calls against a trillion-parameter model is expensive. Training against a smaller, cheaper model and then deploying against the large model saves significant compute.
The paper also shows that a smaller worker model plus a learned prompter policy can match or exceed a larger worker model with zero-shot prompting. The prompter compensates for reduced model capability by generating more structured, task-appropriate instructions.
Why This Beats GEPA
GEPA's title literally says "reflective prompt evolution can outperform reinforcement learning." The Google paper is a direct response. Here is why the RL approach wins:
Dynamic vs. static prompts. GEPA finds one prompt per task. The RL prompter generates context-dependent prompts. For multi-task deployments, this is a decisive advantage.
Amortized vs. per-query cost. GEPA runs its evolutionary search at deployment time for each new task. The RL prompter runs a single forward pass. The optimization cost is paid once during training, not repeatedly at inference.
Sample efficiency from experience. The contrastive buffer gives the RL approach the same rich feedback that makes GEPA effective, but in a structured, cumulative way. The buffer grows over training. GEPA's reflections are ephemeral, used once and discarded.
Cross-task generalization. A multi-task trained prompter handles new tasks within its distribution without re-optimization. GEPA starts fresh for each task.
The paper's comparison is not just about accuracy. It is about the fundamental difference between finding a good prompt and learning to generate good prompts.
Practical Implications
For teams building production LLM systems, this work has several takeaways.
Small models can steer large models. You do not need to fine-tune the trillion-parameter model. A 2-10B parameter prompter model learns the steering strategy. Training costs are manageable.
Invest in feedback infrastructure. The contrastive buffer is the key ingredient. You need a feedback model that generates useful critiques. You need a buffer that stores and samples from past experience. Without these, RL for prompts struggles with sparse rewards.
Consider dynamic prompting for multi-task systems. If your system handles multiple task types, a single prompter policy may outperform a collection of hand-tuned static prompts. The prompter adapts its output to the task context.
Train on cheap models, deploy on expensive ones. Cross-model transfer works well enough to make this practical. Use Gemini Flash or a similar model for training, then deploy the prompter against Gemini Pro or GPT-5.
RL prompt optimization is production-ready. The numbers are no longer incremental. A 55% to 90% gain on BBEH and 74% to 91% on Tau-bench are decisive. These are not toy benchmarks. BBEH is designed to be hard. Tau-bench simulates real agentic workflows.
The Bigger Picture
Prompt optimization is splitting into two camps.
The evolutionary camp (GEPA, DSPy, Promptbreeder) searches for optimal static prompts. The RL camp (this paper, RLPrompt, Prompt-R1) learns policies that generate optimal prompts. Both approaches have their place.
Evolutionary methods are simpler to implement. You do not need to set up an RL training loop. You just evaluate, critique, and mutate. For single-task optimization where you need one good prompt, GEPA is still competitive.
RL methods require more infrastructure but produce more flexible outputs. A trained prompter handles multiple tasks, adapts to context, and amortizes its optimization cost across deployments. For production systems with diverse workloads, this is the better architecture.
The contrastive experience buffer is the bridge between the two. It gives RL the same rich textual feedback that makes evolutionary methods effective, but in a form that accumulates and compounds over training. This is the technical contribution that makes the RL approach work.
The field is moving toward learned prompting policies. The question is no longer whether RL can match evolutionary search for prompt optimization. The question is how quickly the infrastructure and tooling will catch up to make this approach accessible beyond research labs.
References
- Sayana, K., Todi, K., & Jash, A. (2026). Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience. arXiv:2605.14443.
- Agrawal, L.A., et al. (2025). GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning.
- Kazemi, et al. (2025). Big Bench Extra Hard.
- Yao, et al. (2024). Tau-bench: A Benchmark for Tool-Agent-User Interaction.