MasRouter: Learning to Route LLMs for Multi-Agent Systems
Yanwei Yue, Guibin Zhang, Boyang Liu, Guancheng Wan, Kun Wang, Dawei, Cheng, Yiyan Qi

TL;DR
MasRouter introduces a unified, cost-effective routing framework for multi-agent systems powered by LLMs, optimizing collaboration modes, roles, and routing to improve performance and reduce overhead.
Contribution
It is the first to unify MAS component routing into a single framework, employing a cascaded controller network for high performance and efficiency.
Findings
Achieves 1.8%-8.2% improvement over SOTA on MBPP.
Reduces overhead by up to 52.07% on HumanEval.
Seamlessly integrates with existing MAS frameworks, reducing overhead by 17.21%-28.17%.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSemantic Web and Ontologies · Service-Oriented Architecture and Web Services · Mobile Agent-Based Network Management
MethodsMixing Adam and SGD
