When feedback comes in bulk, you need more than guesswork. ReElicit uses LLMs to build compact semantic spaces, then lets Bayesian optimization do the searching.


The Problem with Prompt Tuning

System prompts control how AI models behave across millions of conversations. They set response style, enforce guardrails, and define operational policies. A small change can ripple through thousands of interactions.

Yet tuning these prompts remainsartisan work. Developers rely on intuition and limited offline tests. The bottleneck? Real feedback often arrives as aggregate metrics: task-completion rates, safety incidents, user satisfaction scores. You see one number per prompt variant, not per-example labels, error traces, or critiques.

This is a sample-constrained black-box optimization problem over discrete, variable-length text. Traditional Bayesian optimization works well for continuous hyperparameters but breaks down here. Prompts live in a sprawling semantic space with no natural low-dimensional structure. You cannot enumerate them. You cannot interpolate between them cleanly.

Meta researchers tackled this in May 2026 with a system called ReElicit (arXiv:2605.19093). Their paper introduces a framework where an LLM acts as an adaptive semantic representation builder, enabling Bayesian optimization over natural-language artifacts that would otherwise be intractable.


Embedding by Elicitation

The core insight: you do not need to search directly over prompt text. Instead, use an LLM to extract a compact, task-relevant feature space from the prompt-score history.

Given a task description, previously evaluated prompts, and scalar scores, the LLM proposes a small set of performance-relevant feature axes. These are not surface features like token count or word overlap. They are semantic directions: answer format control, calibrated uncertainty, explicit reasoning structure, evidence use, numerical consistency, ambiguity resolution.

The LLM maps each prompt into coordinates along these axes, producing a vector in [0,1]^d. This gives Bayesian optimization a continuous, low-dimensional domain it can actually work with.

Feature definition and feature extraction use different information. DefineFeatures sees the task context and prompt-score history, so performance evidence can inform which axes to propose. ExtractFeatures sees prompts and feature definitions but not scores, preventing direct outcome leakage into the coordinates.

After proposing several candidate feature sets, ReElicit selects the one with the lowest cross-validation error for predicting observed scores. When optimization has run for multiple rounds, the previous feature set gets re-extracted and included as an incumbent candidate.


Bayesian Optimization in Feature Space

Once you have an embedding, the pieces fall into place.

ReElicit fits a Gaussian process surrogate to the embedded observations. This gives a probabilistic model of how prompt features relate to performance. The GP provides uncertainty estimates, which guide the exploration-exploitation tradeoff.

An acquisition function uses the GP to select target feature vectors for the next batch of evaluations. These targets are not prompts themselves. They are desired semantic coordinates in the elicited space. The acquisition function balances picking points the model predicts will do well against sampling where uncertainty is high.

After selecting targets, the LLM realizes them as deployable system prompts. This step uses a refinement process that narrows the gap between the target feature vector and what the LLM actually produces. Because mapping from continuous coordinates to discrete text is lossy, this refinement loop matters.


Re-Elicitation: Adapting as You Learn

The representation is not fixed. As new evaluations arrive, ReElicit re-elicts the feature space. New evidence about which prompt properties distinguish high performers from low performers flows back into the feature definitions.

This dynamic adaptation is key. Early in optimization, the feature space reflects the developer's initial framing. Later, it reflects what the data actually says matters for the target objective. The LLM revises its semantic representation as evidence accumulates.


Theoretical grounding

The paper includes a reachability analysis proving that representation quality transfers to optimization outcomes. Under an oracle smooth semantic embedding assumption, if the elicited embedding closely approximates the oracle, then near-optimality in feature space implies bounded gap in true prompt quality.

The bound identifies representation error as the controlling variable. Better elicited embeddings produce tighter connections between feature-space optimization and actual prompt performance.


Results

ReElicit was tested on ten system prompt optimization tasks with a shared 30-evaluation budget and aggregate-only feedback interface. It compares against representative aggregate-only prompt optimization baselines.

ReElicit achieved the strongest aggregate performance profile across the benchmark suite. The diagnostics show that feature stability improves as evaluations accumulate, the GP surrogate fit improves with elicitation rounds, and refinement quality matters for final prompt quality.

Component ablations confirm that each piece contributes: the elicited representation enables surrogate modeling that would fail in raw text space, re-elicitation adapts representation to observed data, and the refinement step bridges the gap between feature targets and deployable prompts.


Why This Matters

Previous prompt optimization methods assume per-example feedback: labels, error traces, textual critiques. Real deployment settings rarely provide this granularity. You get a single number per prompt variant after days or weeks of live traffic.

ReElicit works in this regime. It treats prompt tuning as a genuine optimization problem rather than a supervised revision task. The LLM becomes a representation engine, not just a text generator.

The approach also sidesteps the curse of dimensionality that makes standard embeddings impractical for small evaluation budgets. Fitting a surrogate in thousands of dimensions on only dozens of observations yields uninformative posteriors. ReElicit keeps the representation compact and interpretable, so Bayesian optimization has enough signal to guide search.


The Bigger Picture

ReElicit demonstrates that LLMs can serve as adaptive semantic representation builders, not only prompt generators. The model constructs task-specific feature axes from prompt-score history, enabling principled optimization over natural language artifacts that resist direct search.

This points toward a future where AI systems maintain their own compact representations of what matters for a given objective. As feedback arrives, the representation adapts. Bayesian optimization handles the search. The human stays in the loop for deployment decisions but delegates the exploration to automated systems.

For practitioners managing system prompts at scale, this is a meaningful advance. Aggregate feedback becomes a first-class citizen rather than a constraint to work around.