Towards Generalized Routing: Model and Agent Orchestration for Adaptive and Efficient Inference

Xiyu Guo, Shan Wang, Chunfang Ji, Xuefeng Zhao, Wenhao Xi +4 more
9/9/2025
cs.MAcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

The rapid advancement of large language models (LLMs) and domain-specific AI agents has greatly expanded the ecosystem of AI-powered services. User queries, however, are highly diverse and often span multiple domains and task types, resulting in a complex and heterogeneous landscape. This diversity presents a fundamental routing challenge: how to accurately direct each query to an appropriate execution unit while optimizing both performance and efficiency. To address this, we propose MoMA (Mixture of Models and Agents), a generalized routing framework that integrates both LLM and agent-based routing. Built upon a deep understanding of model and agent capabilities, MoMA effectively handles diverse queries through precise intent recognition and adaptive routing strategies, achieving an optimal balance between efficiency and cost. Specifically, we construct a detailed training dataset to profile the capabilities of various LLMs under different routing model structures, identifying the most suitable tasks for each LLM. During inference, queries are dynamically routed to the LLM with the best cost-performance efficiency. We also introduce an efficient agent selection strategy based on a context-aware state machine and dynamic masking. Experimental results demonstrate that the MoMA router offers superior cost-efficiency and scalability compared to existing approaches.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guo2025towards,
  title  = {Towards Generalized Routing: Model and Agent Orchestration for Adaptive and Efficient Inference},
  author = {Xiyu Guo and Shan Wang and Chunfang Ji and Xuefeng Zhao and Wenhao Xi and Yaoyao Liu and Qinglan Li and Chao Deng and Junlan Feng},
  year   = {2025},
  eprint = {2509.07571},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.07571v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.07571.svg)](https://codeofpaper.com/paper/2509.07571)

Discussion