arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.19208cs.CL
收藏

DiSRouter: 分布式自路由用于大语言模型选择

DiSRouter: Distributed Self-Routing for LLM Selections

X-LANCE Lab, School of Computer Science, Shanghai Jiao Tong University, Shanghai, China(上海交通大学计算机科学系X-LANCE实验室);Shanghai Innovation Institution, Shanghai, China(上海创新机构);Jiangsu Key Lab of Language Computing, Suzhou, China(江苏省语言计算重点实验室);AISpeech Co., Ltd., Suzhou, China(AISpeech公司);Suzhou Laboratory, Suzhou, China(苏州实验室)

Hang Zheng, Hongshen Xu, Yongkai Lin, Shuai Fan, Lu Chen, Kai Yu

AI总结:

DiSRouter通过分布式自路由机制,利用LLM的自我认知能力,实现更灵活、可扩展的多代理系统。

摘要:

大语言模型(LLMs)的普及催生了一个包含性能和成本差异显著的模型生态系统,需要有效的查询路由来平衡性能和成本。当前的路由系统通常依赖于一个集中式的外部路由器,该路由器在固定的一组LLMs上进行训练,使其缺乏灵活性且容易表现不佳,因为小规模的路由器无法完全理解不同LLMs的知识边界。我们介绍了DiSRouter(分布式自路由器),一种新的范式,从集中式控制转向分布式路由。在DiSRouter中,查询会经过一个LLM代理网络,每个代理独立决定是否回答或路由到其他代理,基于其自身的自我认知和判断自身能力的能力。这种分布式设计提供了优越的灵活性、可扩展性和通用性。为此,我们提出了一种两阶段的自我认知训练流程,以增强每个LLM的自我认知。大量实验表明,DiSRouter在各种场景中显著优于现有路由方法,在区分简单和困难查询方面表现出色,并且在非领域任务中显示出强大的泛化能力。我们的工作验证了利用LLM的内在自我认知比外部评估更有效,为更模块化和高效的多代理系统铺平了道路。

英文摘要:

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 routing systems often rely on a centralized external router trained on a fixed set of LLMs, making them inflexible and prone to poor performance since the small router can not fully understand the knowledge boundaries of different LLMs. We introduce DiSRouter (Distributed Self-Router), a novel paradigm that shifts from centralized control to distributed routing. In DiSRouter, a query traverses a network of LLM agents, each independently deciding whether to answer or route to other agents based on its own self-awareness, its ability to judge its competence. This distributed design offers superior flexibility, scalability, and generalizability. To enable this, we propose a two-stage Self-Awareness Training pipeline that enhances each LLM's self-awareness. Extensive experiments demonstrate that DiSRouter significantly outperforms existing routing methods in utility across various scenarios, effectively distinguishes between easy and hard queries, and shows strong generalization to out-of-domain tasks. Our work validates that leveraging an LLM's intrinsic self-awareness is more effective than external assessment, paving the way for more modular and efficient multi-agent systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑