大型语言模型(LLM)和特定领域AI智能体的快速发展极大地扩展了AI驱动服务的生态系统。然而,用户查询高度多样化,且通常跨越多个领域和任务类型,导致复杂且异构的格局。这种多样性带来了一个根本性的路由挑战:如何在优化性能和效率的同时,将每个查询准确引导至合适的执行单元。为解决此问题,我们提出了MoMA(模型与智能体混合,Mixture of Models and Agents),一个集成LLM路由和基于智能体路由的通用路由框架。基于对模型和智能体能力的深入理解,MoMA通过精确的意图识别和自适应路由策略有效处理多样化查询,在效率和成本之间实现最优平衡。具体而言,我们构建了一个详细的训练数据集,以刻画不同路由模型结构下各种LLM的能力,为每个LLM识别最合适的任务。在推理过程中,查询被动态路由至性价比最优的LLM。我们还引入了一种基于上下文感知状态机和动态掩码的高效智能体选择策略。实验结果表明,与现有方法相比,MoMA路由器提供了更优的成本效益和可扩展性。
英文摘要:
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.
Disentangling Intrinsic Importance from Emergent Structure in Multi-Expert Orchestration
Yardi School of Artificial Intelligence(亚里学校人工智能学院);Indian Institute of Technology Delhi(印度德里理工学院);Department of Electrical Engineering(电气工程系);DRDO Young Scientist Laboratory – Artificial Intelligence(DRDO年轻科学家实验室–人工智能);Defence Research and Development Organisation, India(印度国防研究与发展组织)
RSIFlow: Adaptive Self-Improvement Workflows with an Evolving Meta-Agent
Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing(未来区块链与隐私计算北京高精尖创新中心);School of Artificial Intelligence(人工智能学院);Beihang University(北京航空航天大学);Tsinghua University(清华大学);Beijing Academy of Artificial Intelligence (BAAI)(北京人工智能研究院)
ConsRoute:Consistency-Aware Adaptive Query Routing for Cloud-Edge-Device Large Language Models
Department of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术系);National Key Laboratory of Smart Farm Technologies and Systems(国家智能农业技术与系统重点实验室);Department of Computer Science and Technology, Harbin Institute of Technology (ShenZhen)(哈尔滨工业大学(深圳)计算机科学与技术系)