Multi-agent systems (MAS) based on large language models (LLMs) have emerged as a powerful solution for dealing with complex problems across diverse domains. The effectiveness of MAS is critically dependent on its collaboration topology, which has become a focal point for automated design research. However, existing approaches are fundamentally constrained by their reliance on a template graph modification paradigm with a predefined set of agents and hard-coded interaction structures, significantly limiting their adaptability to task-specific requirements. To address these limitations, we reframe MAS design as a conditional autoregressive graph generation task, where both the system composition and structure are designed jointly. We propose ARG-Designer, a novel autoregressive model that operationalizes this paradigm by constructing the collaboration graph from scratch. Conditioned on a natural language task query, ARG-Designer sequentially and dynamically determines the required number of agents, selects their appropriate roles from an extensible pool, and establishes the optimal communication links between them. This generative approach creates a customized topology in a flexible and extensible manner, precisely tailored to the unique demands of different tasks. Extensive experiments across six diverse benchmarks demonstrate that ARG-Designer not only achieves state-of-the-art performance but also enjoys significantly greater token efficiency and enhanced extensibility. The source code of ARG-Designer is available at https://github.com/Shiy-Li/ARG-Designer.
翻译:基于大语言模型(LLMs)的多智能体系统(MAS)已成为处理跨领域复杂问题的强大解决方案。MAS的有效性关键取决于其协作拓扑结构,这已成为自动化设计研究的焦点。然而,现有方法从根本上受限于其对模板图修改范式的依赖,即依赖预定义的智能体集合和硬编码的交互结构,显著限制了其适应任务特定需求的能力。为解决这些局限,我们将MAS设计重新定义为条件自回归图生成任务,其中系统组成与结构被联合设计。我们提出了ARG-Designer,一种新颖的自回归模型,通过从零开始构建协作图来实施这一范式。在自然语言任务查询的条件下,ARG-Designer顺序且动态地确定所需智能体数量,从可扩展的池中选择合适的角色,并建立它们之间的最优通信链路。这种生成式方法以灵活且可扩展的方式创建定制化拓扑,精确适配不同任务的独特需求。在六个多样化基准测试上的广泛实验表明,ARG-Designer不仅实现了最先进的性能,还具备显著更高的令牌效率和增强的可扩展性。ARG-Designer的源代码可在https://github.com/Shiy-Li/ARG-Designer获取。