arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.05901cs.CLcs.AI
收藏

路由与推理:通过强化模型路由扩展大语言模型推理

Route-and-Reason: Scaling Large Language Model Reasoning with Reinforced Model Router

Department of Electronic Engineering, Tsinghua University(清华大学电子工程系);BNRist, Tsinghua University(清华大学BNRist)

Chenyang Shao, Xinyang Liu, Yutang Lin, Fengli Xu, Yong Li

AI总结:

R2-Reasoner通过强化模型路由器实现高效的大语言模型推理扩展,减少API成本并保持推理准确性。

摘要:

链式推理已被证明是增强大型语言模型(LLM)复杂推理能力的关键,但也会导致较高的计算成本。最近的进展探索了在多个模型之间路由查询的方法,并证明其作为一种有前途的途径。然而,先前的工作直接在任务层面操作,即分配用户查询到合适的LLM,这不允许混合LLM在更细粒度的子任务上真正协作。在中间推理步骤(思考)层面进行协作可以实现更高效的协调,但这也对路由调度提出了显著挑战,对任务分解的质量和路由器的精度提出了巨大要求。为了解决这个问题,我们提出了R2-Reasoner,一种以强化模型路由器为核心的新型框架,旨在高效扩展LLM的推理能力。该路由器通过首先将复杂查询分解为子任务,然后将每个子任务分配给最优模型,平衡性能与成本。训练此路由器涉及分解器和分配器的两阶段交替过程,整合监督微调与强化学习以实现有效的自监督细化。在六个具有挑战性的推理基准上的广泛实验表明,R2-Reasoner将API成本降低了84.46%,同时保持了具有竞争力的推理准确性。我们的框架为开发更可扩展和高效的推理系统铺平了道路。我们的代码在https://anonymous.4open.science/r/R2_Reasoner上开源。

英文摘要:

Chain-of-thought has been proven essential for enhancing the complex reasoning abilities of Large Language Models (LLMs), but it also leads to high computational costs. Recent advances have explored the method to route queries among multiple models and proved it as a promising approach. However, previous works directly operate at the task level, i.e., assigning user queries to suitable LLMs, which does not allow hybrid LLMs to truly collaborate on finer-grained sub-tasks. Collaboration at the level of intermediate reasoning steps (thoughts) could enable more efficient coordination, but it also poses significant challenges for router scheduling, placing immense demands on the quality of task decomposition and the precision of the router. To address this, we propose R2-Reasoner, a novel framework centered around a Reinforced Model Router designed to efficiently scale LLM reasoning. This router orchestrates collaboration across nine heterogeneous models, whose parameter scales range from less than 1B to hundreds of billions, by first breaking down a complex query into subtasks with a decomposer, and then assigning each subtask to the optimal model with a subtask allocator, balancing performance with cost. Training this router involves a two-stage alternating process for the decomposer and the allocator, integrating supervised fine-tuning with reinforcement learning to enable effective self-supervised refinement. Extensive experiments across six challenging reasoning benchmarks demonstrate that R2-Reasoner reduces API costs by 84.46% compared with state-of-the-art baselines while maintaining competitive reasoning accuracy. Our framework paves the way for the development of more scalable and efficient reasoning systems. Our code is open-source at https://anonymous.4open.science/r/R2_Reasoner.

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

↑