System prompts are the steering wheel of modern AI, dictating everything from a chatbot's personality to its safety guardrails. But how do you tune that steering wheel when you only get feedback once every thousand miles?
In a new paper, researchers from Meta introduce ReElicit, a framework that treats prompt engineering not as a creative writing exercise, but as a formal Bayesian optimization (BO) problem. By using an LLM to build its own internal "map" of what makes a prompt good, ReElicit achieves state-of-the-art performance in low-budget, aggregate-feedback settings.
TL;DR
ReElicit uses an LLM to "elicit" a compact, semantic feature space from prompt-score history, enabling Bayesian Optimization to tune system prompts even when only aggregate scalar feedback is available. It turns the LLM into an adaptive representation builder, outperforming standard prompt-tuning baselines in highly sample-constrained environments.
What Problem Does This Paper Address?
Most automatic prompt optimization (APO) methods rely on "granular" feedback—they look at individual failures, inspect error traces, or read specific critiques for every example. However, in real-world deployments, you often only have aggregate metrics. Think of high-level KPIs like "user satisfaction score," "safety incident rate," or "long-term retention." These are single scalar numbers that summarize thousands of interactions.
Optimizing prompts under these conditions is a "sample-constrained black-box optimization" problem. The challenge is two-fold:
- Representation: Bayesian Optimization usually works on continuous, numerical spaces (like a 2D grid), but prompts are discrete, variable-length text.
- Realization: Even if you find an "optimal point" in a mathematical space, how do you turn that back into a working system prompt?
Methods
The core innovation of ReElicit is Embedding by Elicitation. Instead of using fixed text embeddings (which are too high-dimensional for small datasets), the framework asks an LLM to define its own task-specific coordinate system.
The ReElicit loop follows these phases:
- Elicitation: The LLM analyzes the history of prompts and their aggregate scores. It proposes a few (usually 2–3) semantic feature axes that seem to drive performance (e.g., "level of conciseness" or "explicitness of reasoning").
- Extraction: The LLM maps all previously evaluated prompts into this new $[0, 1]^d$ feature space.
- Surrogate Modeling: A Gaussian Process (GP) is fitted to these coordinates and scores. This creates a probabilistic model of the "prompt landscape."
- Acquisition: A standard BO acquisition function (like Expected Improvement) selects the next target feature vector to explore.
- Realization & Refinement: The LLM generates a new prompt intended to hit that target vector. It then performs a "refinement" step to close the gap between the generated text's actual features and the BO target.
Crucially, the feature space is dynamic. As more data arrives, the LLM re-elicits the axes, allowing the representation to adapt as it learns what truly distinguishes top-tier prompts from mediocre ones.
Datasets
The authors evaluated ReElicit on ten diverse system prompt optimization tasks:
- GSM8K: Grade-school math word problems.
- MMLU: A massive multitask language understanding benchmark.
- BIG-Bench Hard (BBH): Eight challenging tasks including Boolean Expressions, Causal Judgment, Snarks (sarcasm detection), and Tracking Shuffled Objects.
Each task used a highly constrained budget of only 30 total evaluations, simulating expensive real-world testing.
Key Insights and Ideas
- LLMs as Representation Builders: The paper shifts the role of the LLM from just a "prompt generator" to a "semantic representation builder." By defining axes like "pragmatic analysis" or "brevity," the LLM provides the structure BO needs to be sample-efficient.
- Stability vs. Adaptation: The elicited features are remarkably stable. Repeated extractions show very low variance, yet the representation is flexible enough to evolve across iterations. Feature stability and adaptation
- The "Feature Gap" Matters: The refinement step is vital. The authors found that prompts that successfully hit their BO-targeted feature coordinates were significantly more likely to improve the best-so-far score. Gap vs. improvement probability
- Theoretical Grounding: The authors provide a "reachability analysis," proving that if the LLM-elicited space approximates a smooth "oracle" embedding, the optimization gains in the feature space will translate to real-world prompt quality.
Key Results
ReElicit achieved the strongest aggregate performance profile across all ten benchmarks.
- Consistency: It was either the numerical best or statistically tied for the best on every single task, outperforming popular baselines like APE, OPRO, and PromptBreeder.
- Win Rate: In pairwise comparisons, ReElicit matched or exceeded the final scores of baselines in 78% to 85% of task-seed pairs.
- Ablation: Removing the BO target selection or the feature-gap refinement caused the most significant performance drops, confirming that the "closed-loop" nature of the framework is its greatest strength. Ablation convergence curves
Limitations and Future Work
- Proxy Metrics: The study uses offline benchmark accuracy as a proxy for aggregate feedback. While this allows for controlled experiments, real-world metrics like "user satisfaction" are noisier and may require more evaluations.
- LLM Overhead: ReElicit requires several optimizer-side LLM calls for elicitation and refinement. While the authors argue this cost is dwarfed by the cost of large-scale A/B testing, it is a factor in total compute.
- Future Directions: The authors suggest this "embedding by elicitation" pattern could extend beyond text to other modalities like image generation prompts or agentic tool-use instructions.
Summary updated