arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.09873cs.CLcs.LG
收藏

HierRouter:基于强化学习的专业化大语言模型协同路由方法

HierRouter: Coordinated Routing of Specialized Large Language Models via Reinforcement Learning

David S. Hippocampus Department of Computer Science Cranberry-Lemon University(Cranberry-Lemon大学计算机科学系);University of Southern California(南加州大学);DEVCOM Army Research Office(陆军研究办公室)

Nikunj Gupta, Bill Guo, Rajgopal Kannan, Viktor K. Prasanna

AI总结:

针对大语言模型部署成本高的问题,提出基于PPO强化学习的层级路由框架HierRouter,动态组装轻量专业化模型推理流水线,在多基准测试中以极低额外开销最高提升2.4倍响应质量。

摘要:

大语言模型(LLMs)在诸多任务上取得了当前最优性能,但存在较高的计算与内存开销,限制了其在资源受限或实时场景下的部署。为解决该问题,我们提出HierRouter,这是一种层级路由方法,可从专业化轻量语言模型池中动态组装推理流水线。我们将该方法建模为有限时域马尔可夫决策过程(MDP),训练基于近端策略优化(PPO)的强化学习智能体,使其在多跳推理的每个阶段迭代选择待调用的模型。智能体以动态演化的上下文和累计开销为条件,做出具备上下文感知能力的路由决策。我们在涵盖问答、代码生成、数学推理的6个基准上,使用3个开源候选大语言模型开展实验,结果表明:与单独使用单个模型相比,HierRouter最高可将响应质量提升2.4倍,同时平均仅产生极低的额外推理开销。这些结果凸显了层级路由在实现高性价比、高性能大语言模型推理方面的应用潜力。所有代码可在https://github.com/Nikunj-Gupta/hierrouter获取。

英文摘要:

Large Language Models (LLMs) deliver state-of-the-art performance across many tasks but impose high computational and memory costs, limiting their deployment in resource-constrained or real-time settings. To address this, we propose HierRouter, a hierarchical routing approach that dynamically assembles inference pipelines from a pool of specialized, lightweight language models. Formulated as a finite-horizon Markov Decision Process (MDP), our approach trains a Proximal Policy Optimization (PPO)-based reinforcement learning agent to iteratively select which models to invoke at each stage of multi-hop inference. The agent conditions on the evolving context and accumulated cost to make context-aware routing decisions. Experiments with three open-source candidate LLMs across six benchmarks, including QA, code generation, and mathematical reasoning, show that HierRouter improves response quality by up to 2.4x compared to using individual models independently, while incurring only a minimal additional inference cost on average. These results highlight the promise of hierarchical routing for cost-efficient, high-performance LLM inference. All codes can be found here https://github.com/ Nikunj-Gupta/hierouter.

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

↑