[论文解读] LLM Router: Prefill is All You Need
本文提出 Encoder-Target Decoupling 与 SharedTrunkNet 路由架构,利用预填充激活来预测目标模型正确性,在路由性能上优于语义基线并显著降低成本。
LLMs often share comparable benchmark accuracies, but their complementary performance across task subsets suggests that an Oracle router--a theoretical selector with perfect foresight--can significantly surpass standalone model accuracy by navigating model-specific strengths. While current routers rely on fragile semantic signals, we propose using internal prefill activations via Encoder-Target Decoupling--a functional separation between the model providing the predictive signal (the Encoder) and the model whose performance is being estimated (the Target). This allows optimized heterogeneous pairing between unique encoders and target models. We utilize Fisher Separability (J) and Effective Dimensionality (d_eff) as mathematical probes to isolate optimal layer-wise signals, providing the predictive foundation for our SharedTrunkNet architecture. SharedTrunkNet captures up to 45.58% of the accuracy gap between the strongest standalone model and the Oracle while achieving 74.31% cost savings relative to the highest-cost model.
研究动机与目标
- 通过内部模型激活而非语义查询信号来驱动路由,以更好地预测模型特定的正确性和难度。
- 引入 Encoder-Target Decoupling,使开放权重的编码器能够预测闭源模型的性能。
- 使用几何探针识别信息量大的层,尤其是 Fisher 可分离性 (J),并辅以有效维度和各向异性诊断。
- 提出 SharedTrunkNet,一个多输出的 MLP,通过拼接的预填充特征联合预测多个候选模型的正确性。
- 在前沿、小规模和混合模型池中进行逐模型和全局层面的路由评估,以展示实际收益。
提出的方法
- 提出两阶段路由架构:从查询中提取信号并对候选靶标进行置信度估计。
- 从 Encoder LLM 提取预填充激活,并对选定的上层提取 PCA 降维特征。
- 训练 SharedTrunkNet,利用拼接的预填充特征同时预测所有候选靶标的正确性概率。
- 在多种模型池和基准(MMLU-Pro、 Humanity’s Last Exam、 LiveCodeBench)上将 Encoder-Target 路由与语义基线进行对比。
- 定义路由分数 s_k,q = λ * p_hat_k(q) - (1 - λ) * C̃_k,q,并在一系列 λ 上评估以追踪准确率-成本权衡。
- 使用基于中位输入/输出令牌数和提供商定价的部分成本模型来估算 C_k,q 的路由成本。

实验结果
研究问题
- RQ1开放权重编码器是否能利用预填充激活来预测闭源目标模型的性能?
- RQ2哪些内部激活层属性最能区分正确 vs 错误的路由预测(如 Fisher J、d_eff、各向异性)?
- RQ3联合多输出路由器(SharedTrunkNet)是否在预测目标正确性上优于语义基线?
- RQ4在前沿、小规模和混合模型池中,使用预填充信号进行路由在准确性和成本上有哪些提升?
主要发现
- SharedTrunkNet 在各池中始终达到最强的每模型 AUC 和最低的 Brier 分数。
- 在前沿、小规模和混合池中,SharedTrunkNet 在缩小与 Oracle 的差距方面取得显著进展,同时带来可观的成本节省(例如,在前沿池中相较于最贵模型实现 74.31% 的成本节省)。
- 对于编码器目标,大型开放权重编码器(如 Qwen-3.5 122B)往往带来最高的每目标 AUC,甚至超过许多目标模型自身隐藏状态的表现。
- Fisher Separability (J) 能有效识别预填充路由的信息层,而 d_eff 和各向异性提供了互证诊断。
- Encoder-Target Decoupling 使得使用开放编码器预测目标性能成为可能,从而实现跨模型上下文和更好的校准。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。