
Paper: 2606.11182 Authors: Weixian Xu, Shilong Liu, Mengdi Wang Categories: cs.LG, cs.AI
The Gap
Existing test-time prompt learning (TTPL) methods — GEPA, ACE, and earlier fine-tuning based approaches — were designed and evaluated in single-dataset settings. They assume the agent sees a homogeneous stream of questions from one benchmark. But in the wild, an LLM agent encounters a chaotic mix of tasks: math word problems, code generation, factual QA, creative writing — all interleaved unpredictably.
When you naively apply a single learned prompt to such a heterogeneous stream, performance degrades because the prompt overfits to one distribution while hurting others — cross-dataset interference. The core missing piece is a mechanism that can dynamically adapt prompts to the current input without any labels, while maintaining efficiency.
Problem: LLM agent must handle real-world multi-dataset streams
|
v
Assumption: One prompt fits all (current TTPL assumption)
|
v
Cross-dataset interference + performance drop
|
v
Method: Router partitions inputs into task clusters
Router + prompts co-evolve (interleaved learning)
|
v
Evidence: +10.38 to +24.32 avg multi-benchmark over base LLMs
Outperforms SOTA by 37-48%
|
v
Conclusion: Multi-dataset TTPL is viable and practical
The Increment
One sentence: Before EEVEE, test-time prompt learning worked only when each deployment had a single dataset; after EEVEE, prompts can adapt to a real-world stream of unknown, mixed tasks without ever seeing labels.
Core Mechanism
EEVEE has three moving parts: a Router, a Prompt Cluster, and a Co-evolution Loop.
Data flows in one pass at inference time. An input query arrives. The Router (a lightweight neural network) encodes the input and produces a soft assignment over a fixed number of “task clusters”. Each cluster has its own learned prompt token(s). The router then selects the top-K clusters, weights their prompts, and the LLM generates the answer using the weighted combination.
The critical innovation is how the Router and Prompts are learned — they are interdependent. The Router needs good prompts to know which cluster a query belongs to, but the prompts need good routing to avoid cross-task interference. EEVEE solves this with an interleaved training loop: freeze the router, update prompts; then freeze prompts, update router. This co-evolution converges to a partition of the input space where each prompt specialises.
Input query -> [Encoder] -> Router (softmax over K clusters)
|
v
cluster #1 cluster #2 ... cluster #K
| |
prompt#1 prompt#2
\ /
v v
Weighted prompt -> LLM -> Output
Training phases:
Phase A: freeze Router, optimize prompts (each cluster's prompt sees only assigned queries)
Phase B: freeze prompts, optimize Router (maximizes likelihood of correct cluster for each query)
Repeat until convergence
Structural Metaphor: A Library with Drifting Sections
Imagine a university library where new books arrive every hour, but the library’s sections (Mathematics, History, etc.) keep slowly moving — because the head librarian is constantly reassigning shelves based on newer books. The librarian (Router) categorises each new book and directs it to the appropriate section. Each section (Cluster) has a designated “lending policy” (Prompt) that tells patrons how to best find information in that section. But here’s the catch: the sections and policies are learned together. If the librarian sends a physics book to the math section, the math policy won’t work well. So the librarian must “practice” by seeing how patrons respond, and the sections must adjust their policies based on the books they receive. EEVEE’s co-evolution is this librarian-policy dance, interleaving updates until the library maps the real stream of topics perfectly.
Key Concepts
-
Test-time Prompt Learning (TTPL): The ability to update the prompt at inference time without any ground-truth labels. Typically done by using the LLM’s own predictive confidence or consistency as a pseudo-label. TTPL is crucial when you cannot collect labelled data after deployment. EEVEE extends TTPL from single-stream to multi-stream.
-
Router-Prompt Co-evolution: The chicken-and-egg problem that arises when you need both a classifier (router) and specialised prompt (policy) but neither is known in advance. The solution: alternate between optimising one while fixing the other, akin to Expectation-Maximisation. This ensures each prompt “owns” a coherent cluster of tasks.
-
Cross-dataset Interference: When you train a single prompt on multiple task distributions, the prompt becomes a compromise that fails on all. EEVEE avoids this by having separate prompts for separate clusters, thus preserving specialisation.
Framework Shift
Before (mainstream TTPL): single data stream -> single learned prompt -> answer.
Stream (all Math) -> [LLM with prompt P] -> answer
After (EEVEE): multi-dataset stream -> Router -> multiple cluster prompts -> weighted answer.
Stream (Math, Code, QA, ...) -> [Router] -> cluster[1] : prompt[1]
cluster[2] : prompt[2] } weighted combination -> [LLM] -> answer
cluster[3] : prompt[3]
One sentence: From a one-size-fits-all prompt to a dynamically partitioned prompt bank, the core shift is introducing structural specialisation through a learnable router that adapts to the input stream at test time.
Expert Assessment
Problem choice: Real and practical. The single-dataset assumption of prior TTPL work is limiting; multi-dataset streams are the default in production. This paper fills a genuine gap.
Method maturity: Clever insight — routing and co-evolution are not new individually, but their combination for TTPL is novel. The authors don’t claim to invent router or EM-style learning, they apply them to a new problem with careful engineering. Could there be simpler solutions? Maybe online clustering + handcrafted task prompts? But that would require human effort; end-to-end tuning is more scalable.
Experimental integrity: Baselines are appropriate (GEPA, ACE, single-prompt baselines), and results are strong. I’d like to see more analysis on the router’s learned clusters — are they semantically meaningful? The paper focuses on average scores, which is fine but hides per-task variability. No obvious red flags.
Writing quality: The paper is clear on motivation and results but rushes the router architecture details. A dedicated section on what the router sees (input embedding? raw text?) and how prompts are stored (continuous vectors? strings?) would strengthen reproducibility.
Verdict: weak accept — a solid contribution that solves a real problem with a neat method, but the novelty lies in the combination rather than a breakthrough in any single component.
Takeaways
-
Routing as a building block for adapter modularity: The idea of using a router to partition the input space and assign specialised components is transferable to any multi-task learning scenario (e.g., multi-domain fine-tuning, multi-skill LLM agents). The co-evolution trick ensures the components actually specialise.
-
Interleaved training for interdependent modules: Whenever two modules have a chicken-and-egg dependency (router and prompts, or root and leaves in a tree), alternate updates can converge effectively. This is a reusable design pattern.
-
No labels needed: The entire EEVEE pipeline operates with no human annotation after initial deployment, making it suitable for continuous self-improvement in production.
论文: 2606.11182 作者: Weixian Xu, Shilong Liu, Mengdi Wang 分类: cs.LG, cs.AI
缺口
现有测试时提示学习(TTPL)方法——如 GEPA、ACE 以及更早的微调方法——都是在单数据集设定下设计和评估的。 它们假定智能体看到的是一段均匀的问题流,全部来自同一个基准。 但现实世界中,大模型智能体面对的是混乱的任务混合:数学应用题、代码生成、事实问答、创意写作——全都不规律地交错出现。
如果你用一个学好的提示词生硬地处理这种异构数据流,性能会下降,因为提示词可能过拟合到某一类分布,同时损害其他类别的效果——这就是跨数据集干扰。 目前缺失的核心能力是:能够在不引入标注的情况下,根据当前输入动态调整提示词,同时保持高效率。
问题:大模型智能体必须处理真实世界的多数据集流
|
v
假设:一个提示词打天下(当前 TTPL 的隐含假设)
|
v
跨数据集干扰 + 性能下降
|
v
方法:用路由器将输入划分为任务簇
路由器 + 提示词协同进化(交替学习)
|
v
证据:相对基础模型平均多基准提升 10.38–24.32 分
超过此前最优方法 37–48%
|
v
结论:多数据集下的 TTPL 是可行的,具有实用价值
增量
一句话: 在 EEVEE 之前,测试时提示学习只能在单数据集部署中生效;EEVEE 之后,提示词可以适应未知、混合的现实任务流,完全不需要标签。
核心机制
EEVEE 由三个部分构成:路由器(Router)、提示词集群(Prompt Cluster)和协同进化循环(Co-evolution Loop)。
推理时数据流是单次前向的。输入查询到达。路由器(一个轻量神经网络)对输入进行编码,输出一个软分配向量,指向固定数量的”任务簇”。 每个簇拥有自己学到的提示词(可以是连续向量)。路由器选择得分最高的 K 个簇,按权重组合它们的提示词,然后大模型用加权后的提示词生成答案。
关键创新在于路由器与提示词的训练方式是相互依赖的。 路由器需要好的提示词才能知道某个查询属于哪个簇,而提示词需要正确的路由分配才能避免跨任务干扰。 EEVEE 通过交替训练解决这个问题:冻结路由器,更新提示词;再冻结提示词,更新路由器。 这种协同进化最终使得输入空间被划分成若干簇,每个提示词只擅长一类任务。
输入查询 -> [编码器] -> 路由器 (softmax 输出 K 个簇)
|
v
簇 #1 簇 #2 ... 簇 #K
| |
提示词#1 提示词#2
\ /
v v
加权提示词 -> 大模型 -> 输出
训练阶段:
阶段 A:冻结路由器,优化提示词(每个簇的提示词只看到分配给该簇的查询)
阶段 B:冻结提示词,优化路由器(使每个查询的分配概率最大化)
重复直至收敛
核喻:一个书架不断移动的图书馆
想象一所大学的图书馆,每个小时新书不停地涌入,但图书馆的书架(数学区、历史区)却在慢慢移动——因为馆长(路由器)总是在根据新书重新分配架位。 馆长把每一本新书归类,放到对应的架子上。每个架子(簇)有自己的”借阅规则”(提示词),告诉读者在这个架子上如何最有效地找资料。 问题是:架子和规则是同时学习的。如果馆长把物理书放到了数学架,那数学架的规则就不管用。 所以馆长要用”试错”来练习:观察读者找书时的反馈,同时架子也要根据收到的书调整规则。 EEVEE 的协同进化就是馆长的决策与借阅规则之间的交替舞蹈,直到图书馆完美地映射真实的任务流。
关键概念
-
测试时提示学习(TTPL):在推理阶段更新提示词,且不依赖任何人工标注标签。 通常利用大模型自身的预测置信度或一致性作为伪标签。 TTPL 的价值在于部署后无法获取标注数据的场景。EEVEE 将其从单流拓展到多流。
-
路由器—提示词协同进化:当同时需要分类器(路由器)和专用策略(提示词),且两者都未知时出现的”鸡生蛋蛋生鸡”问题。 解法是交替优化一个,固定另一个,类似期望最大化(EM)。 这种方法保证每个提示词能”拥有”一个语义一致的任务簇。
-
跨数据集干扰:用一个提示词在多个任务分布上训练,会导致提示词变成”和稀泥”式妥协,每个任务都表现不佳。 EEVEE 通过为不同簇分配独立提示词来避免干扰,保持专用性。
框架转变
之前(主流 TTPL):单一数据流 -> 单一学好的提示词 -> 答案。
数据流(全是数学) -> [大模型 + 提示词 P] -> 答案
之后(EEVEE):多数据集数据流 -> 路由器 -> 多个簇提示词 -> 加权组合 -> 答案。
数据流(数学、代码、问答...) -> [路由器]
|
+-- 簇[1] : 提示词[1]
+-- 簇[2] : 提示词[2] } 加权组合 -> [大模型] -> 答案
+-- 簇[3] : 提示词[3]
一句话:从”一个提示词通吃”到”动态划分的提示词银行”,核心转变是通过可学习的路由器引入结构性专业化,并在测试时适应输入流。
专家评审
选题眼光:真实且实用。之前 TTPL 的单一数据集假设限制太大,多数据流才是生产的常态。 这篇论文填补了一个真缺口。
方法成熟度:巧劲而非蛮力。路由和协同进化单独看都不是全新的,但组合起来解决 TTPL 的新问题很巧妙。 作者没有声称发明了路由器或 EM 风格学习,而是将它们应用于新问题并做了精心工程。 有没有更简单的方案?也许在线聚类加手工设计的任务提示词?但那需要人工投入,端到端自动调优更可扩展。
实验诚意:基线选择合理(GEPA、ACE、单提示词基线),结果显著。 我希望能看到更多关于路由器学到的簇的分析——它们是否语义可解释? 论文目前聚焦于平均分数,这没问题但掩盖了具体任务上的表现差异。 没有明显红旗。
写作功力:动机和结果写得很清楚,但路由器架构细节写得太简略。 如果能专门写一段说明路由器看到什么(输入嵌入?原始文本?)以及提示词如何存储(连续向量?字符串?),会大幅提高可复现性。
判决:弱接收——一个扎实的贡献,解决了真问题,方法干净,但新颖性主要来自组合而非单一组件的突破。
要点总结
-
路由作为适配器模块化的基建:用路由器划分输入空间并分配专用组件的思路,可以迁移到任何多任务学习场景(比如多领域微调、多技能智能体)。 协同进化技巧确保组件确实会专业化。
-
交替训练处理相互依赖的模块:只要两个模块有鸡生蛋蛋生鸡的依赖关系(路由器和提示词、树的根和叶),交替更新就能高效收敛。 这是一个可复用的设计模式。
-
零标注需求:EEVEE 的整个流程在初期部署后不需要任何人工标注,非常适合生产环境中的持续自我改进。