[论文解读] A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration
DyLAN 创建一个动态的多轮 LLM 代理协作框架,具备推理时代理选择和提前停止,以及用于优化代理团队的无监督代理重要性分数,从而在推理和代码生成任务中取得更高的准确性并提升效率。
Recent studies show that collaborating multiple large language model (LLM) powered agents is a promising way for task solving. However, current approaches are constrained by using a fixed number of agents and static communication structures. In this work, we propose automatically selecting a team of agents from candidates to collaborate in a dynamic communication structure toward different tasks and domains. Specifically, we build a framework named Dynamic LLM-Powered Agent Network ($ extbf{DyLAN}$) for LLM-powered agent collaboration, operating a two-stage paradigm: (1) Team Optimization and (2) Task Solving. During the first stage, we utilize an $ extit{agent selection}$ algorithm, based on an unsupervised metric called $ extit{Agent Importance Score}$, enabling the selection of best agents according to their contributions in a preliminary trial, oriented to the given task. Then, in the second stage, the selected agents collaborate dynamically according to the query. Empirically, we demonstrate that DyLAN outperforms strong baselines in code generation, decision-making, general reasoning, and arithmetic reasoning tasks with moderate computational cost. On specific subjects in MMLU, selecting a team of agents in the team optimization stage improves accuracy by up to 25.0% in DyLAN.
研究动机与目标
- 提出需要一个任务无关、高效的多代理 LLM 协作框架,以实现跨领域的一般化。
- 提出一个动态交互架构,使代理在多层网络中充当带时间步依赖的节点。
- 引入推理时代理选择与提前停止机制,以在不损失准确性的情况下提升效率。
- 开发基于无监督的代理重要性分数的自动代理团队优化算法,用以选择表现最佳的代理。
提出的方法
- 将 LLM-代理协作形式化为一个多层前馈网络,其中时间步的代理为节点,消息为边。
- 利用一个由 LLM 支持的排序器在推理时执行代理选择,并在后续步骤中停用低表现的代理。
- 应用布兰迪安共识启发的提前停止,在某一层达成共识时终止推理(或达到最大步数)。
- 通过一个三步过程引入代理重要性分数:传播(对前任进行打分)、聚合(以打分权重求和后继的贡献)、选择(按总重要性选出前 k 名代理)。
- 通过将交互架构与任务特定设计解耦,并在推理和代码生成任务上验证,展示任务无关设计。
实验结果
研究问题
- RQ1如何将 LLM-代理协作组织成一个动态、任务无关的架构,以适应不同的查询?
- RQ2推理时代理选择与提前停止是否能在不牺牲准确性的前提下提升推理和代码生成任务的效率?
- RQ3在不同领域中,是否可以通过无监督的代理重要性分数可靠地识别最佳子集代理?
- RQ4与静态的单代理基线相比,通过动态架构和代理团队优化可以达到何种程度的性能提升?
主要发现
- DyLAN 在 MATH 相较单次执行(带思路推导)提升了准确性4.1,在 HumanEval(GPT-4 架构)提升了 9.7。
- 在 MMLU 上,代理团队优化在某些科目中的准确性提升最高可达 25.0%。
- DyLAN 可以减少 API 调用并提高效率(例如在某些情况下 CodeT/LLM Debate 的 API 使用率降至36.6%)。
- 基于代理重要性分数的团队优化使使用更小、针对任务定制的代理集也能实现显著的性能提升(如 7→4 代理带来显著改进)。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。