Most prompt optimization research lives in a fantasy world. You pick a benchmark. You optimize a prompt for that benchmark. You report great numbers. Done.

Real agents don't work like that. Real agents see a messy stream of inputs. One minute it's a coding question. The next it's a physics problem. Then a financial formula. Then a theorem proof. All hitting the same model, all expecting good answers, all through the same prompt.

That prompt is doing too much. And when you try to optimize it for everything, it breaks.

EEVEE fixes this. It's a test-time prompt learning framework from Princeton's AI Lab that tackles the problem nobody else wanted to deal with: learning prompts when your inputs come from everywhere at once.

The Problem Nobody Solved

Here's what happens in the real world. You deploy an LLM agent. It gets questions from different domains, different formats, different evaluation rules. You want it to improve over time through test-time prompt learning — the idea that you can update the model's instructions based on how well it performs, without touching the model's weights.

Existing methods like GEPA and ACE do this well. For one benchmark. The moment you mix benchmarks together, things go sideways.

The paper calls this cross-dataset interference. It's exactly what it sounds like. You optimize a prompt for code generation. Great, code scores go up. But now the same prompt is worse at theorem QA. You tweak it for theorems. Now formula computation drops. You're playing whack-a-mole across domains, and the net effect is often negative.

The numbers back this up. In the paper's incremental setting — where benchmarks are added one at a time to the stream — GEPA ends with a cumulative retention of -15.36. ACE ends at -18.58. Both methods are actively making things worse as more tasks enter the mix.

EEVEE ends at +41.53.

The Core Idea: Route First, Then Specialize

EEVEE's insight is simple and clean. Instead of forcing one prompt to handle everything, maintain a set of specialized prompts and a router that decides which prompt handles each input.

You have K prompt slots. Each slot is a specialist. The router looks at an incoming input and says, "this looks like a code question, send it to slot 3." Slot 3's prompt was optimized specifically for code. The model answers using that prompt.

At inference time, it's just:

  1. Router assigns input to a prompt slot
  2. The frozen target model answers using that slot's prompt

No weight updates. No fine-tuning. Just prompt selection.

The hard part is learning both the router and the prompts. And that's where the real innovation lives.

Router-Prompt Co-Evolution

Here's the chicken-and-egg problem. To learn good prompts, you need good routing — each slot should see examples it can specialize on. But to learn a good router, you need good prompts — you can't know which slot should handle a question if none of the slots are any good yet.

EEVEE solves this with router-prompt co-evolution. The two learn together, in alternating phases.

Router Evolution Phase

The router is fixed. Wait, no — the prompts are fixed. The router evolves. Here's how:

  1. Sample a mini-batch from training examples that at least one current slot prompt can already solve. This isolates routing errors from prompt incapability.
  2. Mutate the current router to create candidates. The mutations can redesign routing rules entirely, not just tweak existing ones.
  3. Evaluate candidates on the mini-batch by checking downstream accuracy — did the routed slot produce the right answer?
  4. Analyze failure cases where the routed slot failed but another slot succeeded. Why did the better slot match?
  5. Reflect on these analyses to produce a refined router.
  6. Keep the best performer, admit it to the pool only if it beats the phase baseline.

The router is scored on three things: accuracy (does routing lead to correct answers), consistency (are similar examples routed to the same slot), and balance (are all slots being used, or is everything dumped into one slot). The weights between these three shift over time, annealing from consistency/balance toward pure accuracy.

Prompt Evolution Phase

Now the router is fixed. Each slot gets its routed subset of data and evolves its prompt independently. Slots can be trained in parallel.

For each slot:

  1. Sample a mini-batch from that slot's routed training data.
  2. Mutate the current prompt to create a candidate.
  3. Reflect on failures — where did the model go wrong, what should the prompt say to fix it?
  4. Score candidates on the slot's routed validation set.
  5. Store prompts on a Pareto front — a prompt enters the pool only if it's not dominated by another prompt that's at least as good on every example and strictly better on one.

That Pareto front detail matters. It preserves diverse prompts that excel on different subsets. You don't collapse to one monoculture prompt. You keep specialists that complement each other.

The Interleaving

One cycle: evolve router (prompts fixed) → evolve prompts (router fixed) → repeat. Each phase uses the other's output. The router gets better at assigning examples to the right slots. The prompts get better at handling their assigned examples. They lift each other up.

Three Stages of Training

Co-evolution alone isn't enough. You need a curriculum. EEVEE uses a three-stage process.

Stage 1: Initialize

Before co-evolution can work, you need prompt slots that aren't completely useless. EEVEE builds an initial prompt pool by running prompt evolution on the full mixed dataset (no router yet). Then it greedily selects K prompts with complementary validation coverage — each new prompt is chosen to cover examples that the already-selected prompts get wrong.

The selection rule is elegant. For each candidate prompt p, compute how many validation examples it solves that aren't already solved by any selected prompt. Pick the one with the highest marginal coverage. Repeat until you have K slots.

This gives you a starting point where each slot actually contributes something unique.

Stage 2: Explore

Now alternate lightweight router and prompt updates. The assignment policy is still shifting around, so you keep both phases short and fast. The goal is to find a rough routing structure that separates domains reasonably well.

Stage 3: Converge

Fix the router once it stabilizes. Spend a larger prompt-learning budget inside each routed group. This is where each slot's prompt gets really good at its specific domain.

The three-stage design prevents the co-evolution from getting stuck in a bad local minimum. If you tried to co-evolve everything from scratch with full budget, the router would thrash around before any prompt had a chance to specialize. The staged approach gives structure time to emerge, then refines it.

The Results

EEVEE was tested on a four-benchmark suite: GPQA Diamond (science QA), Formula (financial formula computation), TheoremQA (theorem-based questions), and HumanEval (code generation). Two target models: Qwen3-4B-Instruct and DeepSeek-V3.2.

Four-Benchmark Mixed Stream

On Qwen3-4B-Instruct:

Method GPQA Formula TheoremQA HumanEval Avg
Baseline 56.00 45.22 14.79 49.46 41.37
ACE 48.93 39.67 15.84 35.23 34.92
GEPA 50.84 49.83 19.62 30.62 37.73
EEVEE 54.55 54.55 25.27 72.63 51.75

EEVEE improves the average by 10.38 points over the Qwen3-4B baseline. It beats GEPA by 14.02 points and ACE by 16.83 points on average.

On DeepSeek-V3.2:

Method GPQA Formula TheoremQA HumanEval Avg
Baseline 64.98 30.00 21.21 42.82 39.75
ACE 55.89 37.78 27.05 78.59 49.83
GEPA 41.75 60.56 31.72 89.29 55.83
EEVEE 63.08 60.55 39.84 92.82 64.07

EEVEE improves the average by 24.32 points over the DeepSeek-V3.2 baseline. It beats GEPA by 8.24 points and ACE by 14.24 points on average.

The relative improvements over GEPA and ACE reach 37.2% and 48.2% respectively.

Incremental Retention

This is where EEVEE really shines. In the incremental setting, benchmarks are added one at a time: GPQA Diamond first, then Formula, then TheoremQA, then HumanEval. You measure how well earlier benchmarks are retained as new ones enter the stream.

  • GEPA: -15.36 cumulative retention
  • ACE: -18.58 cumulative retention
  • EEVEE: +41.53 cumulative retention

GEPA and ACE actively destroy earlier learning. EEVEE preserves and builds on it. The router prevents new domain feedback from contaminating prompts specialized for earlier domains.

Single-Benchmark Performance

Here's the important sanity check. EEVEE's routing machinery shouldn't hurt you when you're only dealing with one task at a time. And it doesn't. The paper shows EEVEE remains competitive with GEPA and ACE in single-benchmark settings, with particularly strong Formula and HumanEval scores. The overhead of the router is minimal when there's nothing to route.

Token Efficiency

EEVEE's average final-test token usage is 4,320 tokens per example. Close to GEPA. Far below ACE, which suffers from an ever-expanding playbook context. The router adds routing overhead but keeps the actual prompt applied to the model lean and specialized.

What the Case Studies Reveal

The paper includes diagnostic case studies that show what the learned prompts actually do. These are worth reading because they reveal the mechanics.

Formula: Unit Scale Rules

On financial formula problems, the baseline model reverses subtractions and keeps the wrong decimal scale. The learned prompt enforces the supplied formula, keeps dollar-scale numbers, and emits strict numeric answers. It turns feedback into a reusable execution rule: apply the formula, use the right units, format the output.

Qwen improved by +9.5 points. DeepSeek improved by +31.7.

HumanEval: Executable Output Contracts

On code generation, the baseline writes bare expressions without proper indentation or return statements. The learned prompt steers the model toward complete function bodies with accumulators, proper indentation, and returns.

This isn't about teaching the algorithm. The model already knows how to sum even values at odd indices. The prompt teaches an output contract — what shape the code needs to take to actually run.

Qwen improved by +23.2. DeepSeek improved by +48.8.

GPQA Diamond: When Prompting Isn't Enough

Here's the honest case. On domain QA, EEVEE sometimes makes things worse. The specific example: selecting the densest Earth-like exoplanet. The baseline correctly applies the physics prior that rocky planets self-compress under gravity, making higher-mass planets denser. The learned prompt overrides this with formulaic density reasoning that treats all same-composition planets as having identical density.

The prompt made the model dumber on a question that required domain knowledge, not reasoning structure. EEVEE's retention on GPQA is slightly negative (-1.45 on Qwen, -1.90 on DeepSeek). The paper is refreshingly honest about this.

The takeaway: prompt learning captures reusable procedures, not missing knowledge. When the bottleneck is reasoning structure or output format, prompts help enormously. When the bottleneck is domain knowledge that the model doesn't have, no amount of prompt optimization will fix it.

Why This Matters for Practitioners

Multi-Task Deployment Is the Norm

If you're running an LLM agent in production, it's probably handling mixed traffic. Support tickets, code questions, data lookups, math problems. Single-benchmark prompt optimization doesn't reflect your reality. EEVEE is the first framework that explicitly optimizes for the mixed-stream setting.

Routing Is a First-Class Concern

The router isn't a hack. It's a structural answer to a structural problem. Cross-domain interference isn't a bug you can patch. It's a fundamental consequence of asking one prompt to be everything. EEVEE's router-prompt co-evolution gives you a principled way to maintain specialization without sacrificing adaptability.

The Pareto Front Is Smart Design

Keeping diverse prompts on a Pareto front instead of collapsing to a single best prompt is a design choice that practitioners should steal. It means your prompt pool maintains coverage across different example types. You don't lose the specialist that's great at edge cases just because it's not the best on average.

Test-Time Learning Is Practical

EEVEE doesn't touch model weights. It works with frozen models. It learns prompts from downstream validation feedback. This is the kind of adaptation you can deploy without retraining infrastructure. You need a validation set and some compute for the optimization loop, but the model itself stays untouched.

Know the Limits

The GPQA case study is a crucial lesson. Prompt learning improves structure and format. It doesn't inject knowledge. If your model is failing because it doesn't know something, prompt optimization won't save you. You need retrieval, fine-tuning, or a bigger model.

The Broader Picture

EEVEE sits at the intersection of two important trends in LLM research.

Test-time adaptation is getting serious attention. The idea that models should improve during deployment, not just during training, is powerful. Methods like GEPA, ACE, and now EEVEE are building toward agents that genuinely get better the more they're used.

Multi-task learning has been studied extensively in the weight-update regime. EEVEE brings it to the prompt-learning regime. The insight that you need routing to prevent interference is borrowed from mixture-of-experts architectures, but applied to prompts instead of parameters. It's a clean transfer of an established idea to a new context.

The three-stage training process — initialize, explore, converge — mirrors curriculum design in RL and optimization. You bootstrap with structure, explore broadly, then converge narrowly. It's a pattern that works across many learning problems.

What's Next

The paper focuses on four benchmarks. Real-world streams might have dozens of task types. Scaling the router to handle fine-grained domain distinctions is an open question. The current router is a prompt-based LLM itself — at some point, you might want a lightweight classifier instead.

The co-evolution process is also expensive. Multiple rounds of router evolution and prompt evolution, each involving mutation, reflection, and validation scoring. The paper reports token costs, but the wall-clock time for the full optimization loop isn't trivial. For production deployment, you'd want to think about how often you re-run the full co-evolution versus incrementally updating.

And then there's the knowledge gap. EEVEE improves structure but not knowledge. Combining test-time prompt learning with retrieval-augmented generation or tool use could address this. Route to a specialized prompt, then route to specialized knowledge sources. That's the natural extension.

Bottom Line

EEVEE is the first framework that takes multi-dataset test-time prompt learning seriously. It identifies a real problem — cross-dataset interference — that existing methods ignore. It solves it with a clean, well-motivated design: route inputs to specialized prompts, then co-evolve the router and prompts together.

The results are strong. +10.38 and +24.32 points over baselines. +41.53 cumulative retention versus -15.36 and -18.58 for competitors. Up to 37.2% and 48.2% improvements over GEPA and ACE.

The honest case studies — including the failures — make the paper more credible, not less. They tell you exactly when the method helps and when it doesn't.

If you're deploying LLM agents that handle mixed traffic, EEVEE gives you a principled framework for test-time adaptation that won't destroy what it learned yesterday when it learns something new today.


Citations

  • Xu, W., Liu, S., & Wang, M. (2026). EEVEE: Towards Test-time Prompt Learning in the Real World for Self-Improving Agents. arXiv:2606.11182. Paper | Code | Project Page
  • GEPA: Yu et al., prior work on text-gradient prompt optimization referenced within EEVEE paper.
  • ACE: Context-evolving prompt learning method referenced within EEVEE paper.
  • Qwen3-4B-Instruct: Alibaba's Qwen3 series, used as target model in EEVEE experiments.
  • DeepSeek-V3.2: DeepSeek's model, used as target model in EEVEE experiments.

Suggested Title

EEVEE: When One Prompt Isn't Enough, Learn to Route

Alternative titles:

  • The End of One-Prompt-Fits-All: How EEVEE Routes Its Way to Better Agents
  • Router-Prompt Co-Evolution: Princeton's Answer to Multi-Task Prompt Learning
  • EEVEE: Test-Time Prompt Learning for the Real World

Word Count

~2,200 words


Fact-Check Notes

  1. arXiv ID: 2606.11182 — confirmed via arXiv listing and Hugging Face Papers.
  2. Authors: Weixian Xu (Shanghai Jiao Tong University), Shilong Liu and Mengdi Wang (Princeton University). Xu interned at Princeton AI Lab. Confirmed from paper.
  3. Improvement numbers: +10.38 over Qwen3-4B-Instruct, +24.32 over DeepSeek-V3.2. Confirmed from paper abstract and results table.
  4. GEPA/ACE comparisons: Up to 37.2% and 48.2% improvements. Confirmed from abstract.
  5. Incremental retention: EEVEE +41.53, GEPA -15.36, ACE -18.58. Confirmed from paper body.
  6. Three-stage training: Initialize, Explore, Converge. Confirmed from project page and paper.
  7. Pareto front prompt pool: Confirmed from paper Section 2.2.
  8. Token cost: 4,320 tokens average. Confirmed from project page.
  9. GPQA negative retention: -1.45 (Qwen), -1.90 (DeepSeek). Confirmed from results table.
  10. GitHub: Princeton-AI2-Lab/EEVEE, 16 stars, Apache 2.0 license, Python. Confirmed from GitHub.
  11. Case study numbers: Formula Qwen +9.5, DeepSeek +31.7; HumanEval Qwen +23.2, DeepSeek +48.8; GPQA Qwen -3.7, DeepSeek -7.7. Confirmed from project page case studies. Note: the -3.7 and -7.7 are diagnostic retest deltas, slightly different from the main table's -1.45 and -1.90 which are averaged over three runs.