Skip to main content
QUICK REVIEW

[论文解读] Scaling Large Language Model-based Multi-Agent Collaboration

Qian Chen, Zihao Xie|arXiv (Cornell University)|Jun 11, 2024
Multi-Agent Systems and NegotiationComputer Science被引用 6
一句话总结

MacNet 使用 DAG 结构的多代理协作来组织 LLM 代理,使互动可扩展并在基线之上取得更优结果,包括超过一千个代理的协作。

ABSTRACT

Recent breakthroughs in large language model-driven autonomous agents have revealed that multi-agent collaboration often surpasses each individual through collective reasoning. Inspired by the neural scaling law--increasing neurons enhances performance, this study explores whether the continuous addition of collaborative agents can yield similar benefits. Technically, we utilize directed acyclic graphs to organize agents into a multi-agent collaboration network (MacNet), upon which their interactive reasoning is topologically orchestrated for autonomous task solving. Extensive evaluations reveal that it effectively supports collaboration among over a thousand agents, with irregular topologies outperforming regular ones. We also identify a collaborative scaling law--the overall performance follows a logistic growth pattern as agents scale, with collaborative emergence occurring earlier than traditional neural emergence. We speculate this may be because scaling agents catalyzes their multidimensional considerations during interactive reflection and refinement, thereby producing more comprehensive artifacts. The code is available at https://github.com/OpenBMB/ChatDev/tree/macnet.

研究动机与目标

  • 通过利用受神经尺度化启发的涌现行为,推动超越单代理推理的可扩展多代理协作。
  • 设计 MacNet 通过有向无环图来组织代理,分为指令者(instructor)和助手(assistant)角色。
  • 通过拓扑排序和有限上下文传播,实现高效的交互式推理。
  • 研究拓扑密度和结构如何影响性能和可扩展性。
  • 确定在 MacNet 中存在协作扩展定律以及早期协作涌现。

提出的方法

  • 将拓扑建模为有向无环图(DAG),节点分配给助手代理,边分配给指令代理。
  • 使用拓扑排序沿边(指令–助手对话)编排两代理交互轮次。
  • 实现带有短期交互内存和长期最终解传播的记忆控制,以保持上下文的可扩展性。
  • 在多任务上评估多种拓扑结构(链、树、图;包括链、较宽/更深的树、网格、分层、随机)。
  • 在 MMLU、HumanEval、SRDD 和 CommonGen-Hard 基准测试上与基线(CoT、AutoGPT、GPTSwarm、AgentVerse)进行比较。

实验结果

研究问题

  • RQ1增加代理数量是否会产生类似神经尺度定律的涌现式协作能力?
  • RQ2不同的 MacNet 拓扑(链、树、图及其变体)如何影响各任务的性能?
  • RQ3哪些网络属性(如小世界特性、密度)能优化协作推理和解的质量?
  • RQ4协作涌现能否早于神经涌现发生?扩展如何影响它?
  • RQ5在大规模 MacNet 拓扑中,记忆控制如何影响可扩展性和解的质量?

主要发现

  • MacNet 在各任务和拓扑下均持续超越基线。
  • 密集且类似小世界的拓扑往往带来更优的性能(小世界协作现象)。
  • 出现协作扩展定律:归一化的解质量随代理数量增加呈对数生长曲线,涌现发生早于神经涌现。
  • 许多拓扑在适度规模(大约 2^4 到 2^5 个代理)时就达到性能饱和,而不需要神经元级扩展。
  • 非规则/随机拓扑可能因捷径降低有效路径长度、提升推理效率而超越规则网格。
  • 分支型拓扑(子节点多于父节点)通常在代理协作中胜过汇聚型拓扑。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。