← Latest papers
🤖 AI

Embedding by Elicitation: Dynamic Representations for Bayesian Optimization of System Prompts

The paper introduces ReElicit, a Bayesian optimization framework that leverages large language models to dynamically elicit adaptive, interpretable feature embeddings from aggregate feedback, enabling efficient optimization of variable-length system prompts without per-example labels.

Original authors: Zhiyuan Jerry Lin, Benjamin Letham, Samuel Dooley, Maximilian Balandat, Eytan Bakshy

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Zhiyuan Jerry Lin, Benjamin Letham, Samuel Dooley, Maximilian Balandat, Eytan Bakshy

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a very talented but slightly stubborn robot how to answer questions. You can't talk to the robot directly to say, "You got this specific math problem wrong because you forgot to carry the one." Instead, you only get a single number at the end of a long day: "Today, the robot got 85% of the questions right."

This is the problem the paper tackles: How do you improve a robot's instructions (called a "system prompt") when you only get a vague, overall score, not a detailed report card?

The authors, from Meta, propose a new method called ReElicit. Here is how it works, broken down into simple concepts:

1. The Problem: The "Black Box" Dilemma

Usually, when you tune a machine learning model, you have a lot of data. You know exactly which answers were right and which were wrong. But in the real world (like a customer service bot), you might only know that "User satisfaction went up 2% this week."

Trying to guess the perfect instructions by just randomly changing words and hoping for the best is like trying to find a specific needle in a haystack by throwing random needles at it. It's too slow and inefficient.

2. The Solution: The "Translator" Robot

The authors realized that instead of searching through millions of possible sentences, they could ask a "smart" Large Language Model (LLM) to act as a translator.

Here is the analogy:

  • The Goal: You want to find the perfect recipe for a cake, but you only get a taste score (e.g., "8/10") after baking it. You can't taste the ingredients individually.
  • The Old Way: You just guess new recipes randomly.
  • The ReElicit Way: You ask a master chef (the LLM) to look at your past recipes and their scores. The chef says, "I think the secret isn't the flour or the sugar; it's the balance of vanilla and baking soda."

The chef then creates a simple map (a "feature space") with just two or three axes:

  1. How much vanilla? (0 to 1)
  2. How much baking soda? (0 to 1)

Now, instead of searching through infinite recipes, you are just searching for the perfect spot on this tiny, simple map.

3. The Process: A Three-Step Dance

The paper describes a loop where the computer does three things repeatedly:

  1. Elicit (Ask the Chef): The system looks at the prompts it has tried and their scores. It asks the LLM: "What are the 2 or 3 most important 'ingredients' (semantic features) that make a prompt good for this specific task?" The LLM invents these features on the fly (e.g., "clarity of reasoning" or "use of examples").
  2. Optimize (The Navigator): The system uses a mathematical tool called Bayesian Optimization. Think of this as a smart navigator that looks at the map and says, "We haven't tried the spot where 'clarity' is high and 'examples' are medium yet. Let's go there." It picks a target point on the map.
  3. Realize (The Baker): The system asks the LLM again: "Okay, write a prompt that hits that exact target on our map." The LLM writes the new instructions. The system tests them, gets a new score, and the loop starts again.

4. Why It's Special: "Re-eliciting"

The clever part is that the "map" isn't static. As the system tries more prompts and gets more scores, it asks the LLM to redraw the map.

  • Maybe at first, the LLM thought "length" was important.
  • But after 10 tries, the LLM realizes, "Actually, length doesn't matter; it's about how the instructions are structured."
  • So, the LLM updates the map to reflect this new understanding. This allows the system to adapt as it learns.

5. The Results

The authors tested this on 10 different difficult tasks (like solving math problems or identifying sarcasm). They gave ReElicit a very tight budget: it could only test 30 different prompts total.

  • The Competition: They compared ReElicit against other methods that just guess prompts, evolve them like bacteria, or critique them one by one.
  • The Winner: ReElicit consistently found the best prompts. It was better at finding the "needle in the haystack" because it stopped guessing randomly and started navigating a smart, evolving map.

Summary

In short, ReElicit is a method that uses an AI to invent its own language to describe what makes a prompt good. Instead of searching through the messy, infinite world of text, it translates the problem into a simple, clean map, finds the best spot on that map, and then translates that spot back into a perfect set of instructions. It does this by constantly updating its own map as it learns from new results.

The paper claims this is the most effective way to tune AI instructions when you only have a single, overall score to guide you, rather than a detailed list of errors.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →