May 17, 2026

Google Research just turned prompt engineering into a reinforcement learning problem. And the results are hard to ignore.

In a new paper published on arXiv, Krishna Sayana and colleagues at Google Research propose a framework that trains a lightweight prompter model to generate prompts for a frozen worker LLM. The prompter is optimized via reinforcement learning using a contrastive experience buffer that stores both scalar rewards and dense textual critiques. Over iterations, the system amortizes the expensive process of prompt refinement into single-shot policy weights. In plain terms: the model learns to write prompts that make another model perform better, and it does this without ever changing the target model's weights.

The paper is titled Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience. It is arXiv:2605.14443, published May 2026.

The Core Idea

The shift toward black-box LLMs has turned prompt engineering into a bottleneck. You cannot fine-tune the model. You cannot see its internal weights. You only have the prompt. That constraint has spawned an entire industry of manual optimization, A/B testing, and heuristic frameworks like chain-of-thought and few-shot examples. But manual optimization does not scale, and heuristic prompts hit ceilings.

Google's approach treats the prompter as a separate learned agent. The prompter receives a task description and outputs a prompt. The worker LLM executes that prompt. The outcome produces a reward signal, which is fed back to train the prompter. What makes this different from standard prompt optimization is the experience buffer. Instead of storing only the final reward, the buffer stores dense textual critiques alongside scalar scores. These critiques provide a richer learning signal than a single number, letting the prompter understand why a prompt succeeded or failed.

The authors call this iterative distillation of experience. Each training cycle refines the prompter's understanding of what makes a prompt effective for a given task type.

The Results

The team tested the framework on Big Bench Extra Hard (BBEH) and Tau-bench. These are not toy problems. BBEH contains logic-intensive reasoning tasks designed to stress-test multi-step deduction. Tau-bench tests tool-use scenarios where models must interact with external APIs and databases.

On BBEH reasoning tasks, the learned prompting policy improved performance from 55% to 90%. On Tau-bench tool-use tasks, performance climbed from 74% to 91%. These are not marginal gains. They represent the kind of leap that usually comes from switching to a larger model or adding significant post-training.

The authors also compared their method against GEPA, a state-of-the-art evolutionary prompt optimization baseline. The learned policies achieved superior performance with higher sample efficiency, meaning fewer training iterations were needed to reach better results.

Structural Evolution of Prompts

One of the more interesting findings is what the prompter actually learns to write. Through training, the policy discovers specialized algorithmic heuristics. The prompts evolve from generic instructions into task-specific reasoning scaffolds. The authors analyze this structural evolution, showing how the prompter learns to embed step-by-step decomposition, intermediate variable tracking, and tool-call sequencing into the prompts themselves.

This is significant because it suggests the prompter is not just memorizing good prompts. It is learning abstract strategies for how to prompt a frozen model effectively. The distinction matters. A memorized prompt is brittle. A learned strategy transfers to new tasks.

What This Means for Prompt Engineering

The field of prompt engineering has resisted formalization. Practitioners rely on intuition, trial and error, and pattern libraries. The Google Research paper adds a new path: learned policies that generate prompts algorithmically.

This does not replace human prompt engineers. It shifts their role. Instead of writing prompts manually, engineers may soon define reward functions, curate experience buffers, and evaluate prompter outputs. The craft of prompt engineering becomes the engineering of prompt generation systems.

The implications for black-box deployments are immediate. Enterprises using API-only models have no access to weights, no ability to fine-tune, and limited visibility into model behavior. A learned prompting policy offers a lever for optimization that sits entirely outside the black box. It is compatible with any model that accepts text input and produces text output. That universality is the point.

Limitations and Open Questions

The paper does not claim to solve all prompting problems. The prompter model itself requires training, which demands compute and curated task data. The contrastive experience buffer needs well-designed critique generation, which may require another model or human annotation. And the method's generalization to tasks far outside the training distribution is not fully explored.

There is also the question of interpretability. The prompts produced by the learned policy may be effective but opaque. If a prompter learns to embed a reasoning heuristic that humans do not understand, debugging prompt failures becomes harder. The authors acknowledge this and suggest prompt structure analysis as an area for future work.

The Bottom Line

Google Research has shown that prompt engineering can be reframed as a reinforcement learning problem with measurable, large-scale improvements. Gains of 35 percentage points on reasoning and 17 points on tool-use are not incremental. They suggest that much of the performance locked inside black-box LLMs is accessible through better prompting, and that better prompting can be learned rather than handcrafted.

For practitioners, the takeaway is practical. If you are working with frozen LLMs and hitting performance walls, learned prompting policies represent a new optimization tier. The research is fresh, the code is not yet released, and the method will need real-world validation. But the direction is clear. Prompt engineering is becoming machine learning.


Source: 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.