arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.02533cs.LGcs.AIcs.CLcs.MA
收藏

多智能体设计:通过更优提示和拓扑结构优化智能体

Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies

Google(谷歌);University of Cambridge(剑桥大学)

Han Zhou, Xingchen Wan, Ruoxi Sun, Hamid Palangi, Shariq Iqbal, Ivan Vulić, Anna Korhonen, Sercan Ö. Arık

AI总结:

本文提出MASS框架,通过优化提示和拓扑结构提升多智能体系统性能,并揭示了有效构建多智能体系统的原理。

摘要:

大型语言模型被用作多个智能体,这些智能体相互交互和协作,已成功解决复杂任务。智能体通过提示声明其功能,并辅以拓扑结构来协调跨智能体的交互。为多个智能体系统(MAS)设计提示和拓扑结构本质上是复杂的。为了自动化整个设计过程,我们首先对设计空间进行深入分析,旨在理解构建有效MAS的因素。我们发现提示与拓扑结构在使MAS设计更加有效方面起着关键作用。基于这些见解,我们提出了多智能体系统搜索(MASS),一种MAS优化框架,通过在三个阶段内交错优化阶段,从局部到全局,从提示到拓扑结构,高效地利用复杂的MAS设计空间:1)块级(局部)提示优化;2)工作流拓扑优化;3)工作流级(全局)提示优化,其中每个阶段都基于前一阶段迭代优化的提示/拓扑结构。我们证明,MASS优化的多智能体系统在现有替代方案上表现显著优于。基于MASS发现的系统,我们最终提出了构建有效多智能体系统的原理。

英文摘要:

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.

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

↑