arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19705cs.CL
收藏

RouteWeaver:将模式选择与执行编织为统一的大语言模型路由框架

RouteWeaver: Weaving Mode Selection and Execution into Unified LLM Routing

Nanyang Technological University(南洋理工大学);Huazhong University of Science and Technology(华中科技大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Xiaohan Wang, Haozhen Zhang, Qingyuan Liu, Tao Feng, Wenya Wang

AI总结:

RouteWeaver是整合多种路由模式的统一LLM路由框架,通过COMET-GRPO与渐进式探索优化,在五大任务上平均准确率达61.4%,较最强基线提升11.03%且全面优于对比方法。

摘要:

大语言模型(LLM)路由会针对不同任务动态选择并协调异构语言模型。然而,现有方法大多围绕预定义的执行范式构建,例如单轮、多轮或智能体路由,这些范式固定了模型调用的组织方式,限制了对不同查询需求的适应性。我们提出RouteWeaver,这是一个统一的路由框架,它将这些路由模式整合到单一的LLM策略中,联合学习使用哪种模式以及在该模式下如何选择模型。为了联合优化模式选择和模式内执行,我们开发了COMET-GRPO(协调模式-执行训练),它将轨迹级优势解耦为模式选择和模式内执行的单独信号,从而能够为每个决策层级分配更具针对性的信用。我们还引入了渐进式探索,它将训练从外部分配的模式逐步转向自主选择,使路由器先学习如何执行每种模式,再决定何时使用它。我们在数学、编码、知识、逻辑推理和事实回忆任务上对RouteWeaver进行评估,其平均准确率达到61.4%,比最强基线高出11.03%的相对提升,且在五个领域中均优于所有对比基线。 ablation实验表明,COMET-GRPO和渐进式探索对自适应路由都至关重要;若没有渐进式探索,路由策略会完全崩溃为单轮执行。

英文摘要:

LLM routing dynamically selects and coordinates heterogeneous language models across diverse tasks. However, existing approaches are largely built around a predefined execution paradigm, such as single-round, multi-round, or agentic routing, which fixes how model calls are organized and limits adaptation to different query needs. We propose RouteWeaver, a unified routing framework that integrates these routing modes within a single LLM policy, jointly learning which mode to use and how to select models within that mode. To jointly optimize mode selection and within-mode execution, we develop COMET-GRPO (COordinated Mode-Execution Training), which decouples the trajectory-level advantage into separate signals for mode selection and within-mode execution, enabling more targeted credit assignment to each decision level. We further introduce progressive exploration, which gradually shifts training from externally assigned modes to autonomous selection, so that the router first learns how to execute each mode before deciding when to use it. We evaluate RouteWeaver across mathematics, coding, knowledge, logical reasoning, and factual recall. RouteWeaver achieves an average accuracy of 61.4%, an 11.03% relative improvement over the strongest baseline, and outperforms all compared baselines in each of the five domains. Ablations show that both COMET-GRPO and progressive exploration are important for adaptive routing; without progressive exploration, the routing policy collapses entirely to single-round execution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑