paper-with-me

홈 › Papers

MasRouter: Learning to Route LLMs for Multi-Agent Systems

2025-02-16 · Yanwei Yue, Guibin Zhang, Boyang Liu, Guancheng Wan, Kun Wang, Dawei Cheng, Yiyan Qi

Multi-agent systems (MAS) powered by Large Language Models (LLMs) have been demonstrated to push the boundaries of LLM capabilities, yet they often incur significant costs and face challenges in dynamic LLM selection. Current LLM routing methods effectively reduce overhead in single-agent scenarios by customizing LLM selection for each query, but they overlook the critical decisions regarding collaboration modes and agent roles in MAS. In response to this challenge, we first introduce the problem of Multi-Agent System Routing (MASR), which integrates all components of MAS into a unified routing framework. Toward this goal, we propose MasRouter, the first high-performing, cost-effective, and inductive MASR solution. MasRouter employs collaboration mode determination, role allocation, and LLM routing through a cascaded controller network, progressively constructing a MAS that balances effectiveness and efficiency. Extensive experiments demonstrate that MasRouter is (1) high-performing, achieving a $1.8\%\sim8.2\%$ improvement over the state-of-the-art method on MBPP; (2) economical, reducing overhead by up to $52.07\%$ compared to SOTA methods on HumanEval; and (3) plug-and-play, seamlessly integrating with mainstream MAS frameworks, reducing overhead by $17.21\%\sim28.17\%$ via customized routing. The code is available at https://github.com/yanweiyue/masrouter.

📄 PDF Abstract BibTeX arXiv:2502.11133

Code (1)

yanweiyue/masrouter 공식 구현 pytorch

Tasks

HumanEvalmbpp

Methods 이 논문이 사용한 방법론

MAS This optimizer mix ADAM and SGD creating the MAS optimizer.

Similar Papers 제목 키워드 기반

DiSRouter: Distributed Self-Routing for LLM Selections

2025-10-22 · Hang Zheng, Hongshen Xu, Yongkai Lin, Shuai Fan 외 arxiv

The proliferation of Large Language Models (LLMs) has created a diverse ecosystem of models with highly varying performance and costs, necessitating effective query routing to balance performance and expense. Current rou…

EvoRoute: Experience-Driven Self-Routing LLM Agent Systems

2026-01-06 · Guibin Zhang, Haiyang Yu, Kaiming Yang, Bingli Wu 외 arxiv

Complex agentic AI systems, powered by a coordinated ensemble of Large Language Models (LLMs), tool and memory modules, have demonstrated remarkable capabilities on intricate, multi-turn tasks. However, this success is s…

Learning Agent Routing From Early Experience

2026-05-08 · Yimin Wang, Jiahao Qiu, Xuan Qi, Xinzhe Juan 외 arxiv

LLM agents achieve strong performance on complex reasoning tasks but incur high latency and compute cost. In practice, many queries fall within the capability boundary of cutting-edge LLMs and do not require full agent e…

Agent-as-a-Router: Agentic Model Routing for Coding Tasks

2026-06-22 · Pengfei Zhou, Zhiwei Tang, Yixing Ma, Jiasheng Tang 외 arxiv

Real-world users typically have access to multiple Large Language Models (LLMs) from different providers, and these LLMs often excel at distinct domains, yet none dominate all. Consequently, routing each task to the most…

RCR-Router: Efficient Role-Aware Context Routing for Multi-Agent LLM Systems with Structured Memory

2025-08-06 · Jun Liu, Zhenglun Kong, Changdi Yang, Fan Yang 외 arxiv

Multi-agent large language model (LLM) systems have shown strong potential in complex reasoning and collaborative decision-making tasks. However, most existing coordination schemes rely on static or full-context routing …