arXiv:2510.19506cs.CL2025-10NeurIPS被引 6

让大模型路由提前‘预判’输出,提升复杂任务分配准确率

Lookahead Routing for Large Language Models

  • 基于潜在输出表征预测实现前瞻式路由,无需完整推理
  • 在7个基准上平均性能提升7.7%,最高超越现有最优方案
  • 适合需要精准模型调度的多模型系统开发者使用

大型语言模型(LLM)路由器通过将每个查询导向最合适的模型,提升多模型系统的效率,同时利用异构LLM的多样化优势。现有方法通常仅根据输入查询进行路由分类,虽降低开销但忽略了潜在输出中蕴含的信息,也难以捕捉响应生成过程中浮现的隐含意图或语境细节。这可能导致复杂或模糊查询的次优路由决策。为此,我们提出Lookahead框架,通过预测潜在输出的隐状态来“预见”可能结果,并据此指导模型选择,实现无需完整推理的更明智路由。该框架采用因果与掩码语言模型两种实现方式。在涵盖指令遵循、数学推理和代码生成的七个公开基准上的实证评估表明,Lookahead持续优于现有路由基线,在平均性能上较最先进方法提升7.7%。代码已开源。

原文摘要 · Abstract (English)

Large language model (LLM) routers improve the efficiency of multi-model systems by directing each query to the most appropriate model while leveraging the diverse strengths of heterogeneous LLMs. Most existing approaches frame routing as a classification problem based solely on the input query. While this reduces overhead by avoiding inference across all models, it overlooks valuable information that could be gleaned from potential outputs and fails to capture implicit intent or contextual nuances that often emerge only during response generation. These limitations can result in suboptimal routing decisions, particularly for complex or ambiguous queries that require deeper semantic understanding. To address this challenge, we propose Lookahead, a routing framework that "foresees" potential model outputs by predicting their latent representations and uses these predictions to guide model selection, thus enabling more informed routing without full inference. Within this framework, we implement two approaches based on causal and masked language models. Empirical evaluations across seven public benchmarks - spanning instruction following, mathematical reasoning, and code generation - show that Lookahead consistently outperforms existing routing baselines, achieving an average performance gain of 7.7% over the state-of-the-art. Our code is available at https://github.com/huangcb01/lookahead-routing.

大模型路由前瞻预测多模型系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。