自动优化多智能体的提示词与协作结构,提升复杂任务解决能力
Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies
- 分三阶段迭代优化提示词与拓扑结构
- 在多个任务上显著优于现有方法
- 适合需要高效多智能体协作的研究者
大型语言模型作为相互交互与协作的多个智能体,已在解决复杂任务中表现出色。智能体通过提示词定义功能,并由拓扑结构协调交互。多智能体系统(MAS)的设计本质上非常复杂。为自动化整个设计过程,我们首先深入分析设计空间,揭示提示词与拓扑结构对构建有效MAS的关键作用。基于此,提出多智能体系统搜索框架(MASS),通过三阶段交织优化:1)块级(局部)提示词优化;2)工作流拓扑优化;3)工作流级(全局)提示词优化,每阶段均依赖前序阶段迭代优化的结果。实验表明,经MASS优化的多智能体系统显著优于多种现有方案。基于所发现系统,进一步提炼出构建高效多智能体系统的若干设计原则。
原文摘要 · Abstract (English)
Large language models, employed as multiple agents that interact and collaborate with each other, have excelled at solving complex tasks. The agents are programmed with prompts that declare their functionality, along with the topologies that orchestrate interactions across agents. Designing prompts and topologies for multi-agent systems (MAS) is inherently complex. To automate the entire design process, we first conduct an in-depth analysis of the design space aiming to understand the factors behind building effective MAS. We reveal that prompts together with topologies play critical roles in enabling more effective MAS design. Based on the insights, we propose Multi-Agent System Search (MASS), a MAS optimization framework that efficiently exploits the complex MAS design space by interleaving its optimization stages, from local to global, from prompts to topologies, over three stages: 1) block-level (local) prompt optimization; 2) workflow topology optimization; 3) workflow-level (global) prompt optimization, where each stage is conditioned on the iteratively optimized prompts/topologies from former stages. We show that MASS-optimized multi-agent systems outperform a spectrum of existing alternatives by a substantial margin. Based on the MASS-found systems, we finally propose design principles behind building effective multi-agent systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。