The Research Report
Meta Uses LLMs to Build Feature Spaces for Prompt Optimization
System prompts shape everything. Response style, guardrails, operational policies. Small changes affect many downstream interactions. Yet most teams still craft them manually using intuition and limited offline evaluation.
When you can evaluate a prompt on labeled examples, automatic optimization works well. You can inspect per-example failures, trace errors, and generate textual critiques. But many real-world settings do not offer that luxury. You might only see a top-line scalar score for each deployed prompt variant. Task-completion rates. Safety-incident rates. User satisfaction. These aggregate metrics arrive after many interactions and cannot be separated into individual labels.
Meta solved this problem with ReElicit, a Bayesian optimization framework that uses an LLM to build dynamic feature spaces for system prompt tuning. Given only aggregate feedback, it achieves the strongest performance profile across ten benchmark tasks with a tight 30-evaluation budget.
The Problem with Aggregate Feedback
Automatic prompt optimization usually assumes granular feedback. You evaluate a candidate prompt on labeled examples. You see which ones succeeded and which failed. You generate critiques. You iterate.
That interface is powerful, but it does not match many deployment realities. A product team might run an A/B test between two system prompts for a week and get one retention score. A safety team might deploy a prompt variant and get one incident rate after a month. The optimizer observes a scalar score per prompt, not per-example labels or error traces.
Directly asking an LLM to propose better prompts is a natural baseline, but plain search does not model uncertainty or provide principled exploration-exploitation tradeoffs. You need something smarter.
How ReElicit Works
ReElicit treats the problem as sample-constrained black-box optimization over natural language. The key insight is that the LLM itself can serve as a semantic representation builder, not just a prompt generator.
Step One: Elicit a Feature Space
Given a task description, previously evaluated prompts, and their scalar scores, the LLM proposes a small set of performance-relevant feature axes. These are semantic properties like answer-format control, calibrated uncertainty, explicit reasoning structure, evidence use, numerical consistency, ambiguity resolution, or pragmatic intent. They are not surface features like length or token overlap. They are directions along which prompts can differ in ways that matter for the task.
The LLM then maps prompts into numerical coordinates along these axes, producing a compact continuous representation in [0,1]^d. This gives Bayesian optimization a low-dimensional space for surrogate modeling and acquisition optimization.
Step Two: Optimize in Feature Space
ReElicit fits a Gaussian process surrogate to the embedded observations. A batch acquisition function selects target feature vectors that balance exploration and exploitation. These vectors are not prompts. They are desired semantic coordinates in the elicited representation.
Step Three: Realize and Refine
The LLM converts each target feature vector back into a deployable system prompt. This inverse mapping is lossy, so ReElicit includes a refinement step using feature-gap feedback. The LLM compares the generated prompt against the target coordinates and adjusts until the realized prompt better matches the desired semantic profile.
Step Four: Adapt the Representation
Crucially, ReElicit re-elicits the feature space as new evaluations arrive. The representation adapts to evidence about which prompt properties distinguish high-performing from low-performing candidates. Early rounds might surface coarse features like format adherence. Later rounds might discover finer distinctions like how uncertainty is calibrated. The feature space evolves with the optimizer's knowledge.
Why This Works
Bayesian optimization typically operates in fixed low-dimensional Euclidean domains. System prompts are discrete, variable-length, and semantically structured. Off-the-shelf dense text embeddings fail here because fitting a surrogate in thousands of dimensions with only a few observations yields uninformative posteriors. Dimensionality reduction via PCA would pick general latent features, not the ones most relevant for system prompt performance on the specific task.
ReElicit bypasses both the curse of dimensionality and the inverse-mapping problem. The LLM constructs a low-dimensional, interpretable semantic space where BO targets can be realized natively as deployable prompts via text generation. The features are task-specific and performance-informed, not generic.
The Numbers
Meta evaluated ReElicit on ten system prompt optimization tasks under a shared 30-evaluation budget with aggregate-only feedback. The tasks covered diverse reasoning domains. The optimizer saw one scalar score per prompt and no per-example labels, errors, or critiques.
ReElicit achieved the strongest aggregate performance profile among representative aggregate-only baselines. The comparison included methods like APE, OPRO, PromptBreeder, and label-free prompt optimizers. ReElicit outperformed them across the suite.
Diagnostics showed that the elicited feature spaces stabilized quickly and the Gaussian process surrogate fit improved as the representation adapted. Refinement quality mattered. The feature-gap feedback step consistently improved the match between generated prompts and target coordinates.
Theoretical Grounding
The paper includes a reachability analysis formalizing when optimization in an elicited feature space translates to good prompts in the original text space. Under an oracle smooth semantic embedding assumption, near-optimality in the approximated objective transfers to a bounded true prompt-quality gap. The bound identifies representation error as the key variable. The better the elicited embedding approximates the oracle, the tighter the connection.
This is not just a heuristic. It is a principled framework with theoretical guarantees about what the optimizer is actually doing.
What Makes This Different
Several methods combine Bayesian optimization with prompt optimization. InstructZero optimizes soft prompts. MIPRO searches over instructions and demonstrations for LM programs. BOPRO performs BO over fixed embeddings of language-based solutions.
ReElicit targets a different and harder problem. It optimizes deployable hard system prompts under prompt-level scalar feedback. It uses dynamic elicitation to build the BO representation during optimization, not before. The representation adapts to the observed prompt-score history rather than being fixed or pre-trained.
This distinction matters for production teams. Soft prompts are not deployable as system prompts. Fixed embeddings require auxiliary data or trained encoders. ReElicit needs only the task description and aggregate scores. It builds everything else on the fly.
The Bottom Line
ReElicit shows that LLMs can be adaptive semantic representation builders for optimization, not just text generators. The dynamic feature space adaptation is the critical innovation. Instead of searching over raw text or relying on generic embeddings, the system asks the LLM to construct a task-specific semantic coordinate system and then optimizes within it.
For teams optimizing system prompts with only aggregate metrics, this is a credible path forward. Thirty evaluations is a tight budget. ReElicit makes it work by being smart about what it learns from each one.
Suggested title: ReElicit Lets an LLM Build the Feature Space for Prompt Optimization
Word count: ~980
Fact-check notes:
- Paper: "Embedding by Elicitation: Dynamic Representations for Bayesian Optimization of System Prompts" by Zhiyuan Jerry Lin, Benjamin Letham, Samuel Dooley, Maximilian Balandat, Eytan Bakshy, Meta. arXiv:2605.19093, May 2026. Verified from arXiv.
- 10 benchmark tasks with 30-evaluation budget confirmed from abstract and evaluation section.
- Aggregate-only feedback confirmed from abstract and introduction.
- Strongest performance profile among aggregate-only baselines confirmed from abstract.
- Feature axes examples confirmed from introduction section.
- Dynamic re-elicitation of feature space confirmed from abstract and method section.
- Reachability analysis confirmed from section 4.