🤖 AI Summary
Routing queries to heterogeneous AI execution units—such as large language models (LLMs) and domain-specific agents—remains challenging due to their disparate capabilities and dynamic operational contexts.
Method: This paper proposes MoMA, a framework that unifies the hybrid capability space of LLMs and agents via fine-grained intent recognition and context-aware finite-state machine modeling. It introduces a dynamic masking mechanism for adaptive, scalable routing decisions, integrates multi-LLM architectures for capability modeling and task matching, and constructs a dedicated benchmark dataset for rigorous evaluation.
Contribution/Results: Experiments demonstrate that MoMA significantly improves routing accuracy while maintaining inference quality and reducing service costs. It achieves both high efficiency and scalability, establishing a novel paradigm for intelligent scheduling in multi-agent systems.
📝 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.