使用并行LLM智能体优化序列多步任务
Optimizing Sequential Multi-Step Tasks with Parallel LLM Agents
AI总结:
针对LLM多智能体系统在复杂任务中因多步迭代推理导致高延迟的问题,提出M1-Parallel框架,通过并行运行多智能体团队并结合异步通信机制,有效降低延迟并提升任务完成率。
摘要:
基于大语言模型(LLM)的多智能体系统通过将复杂任务分解为子任务,并对其进行迭代规划、执行、观察和细化,展现了解决复杂任务的显著潜力。尽管有效,但这些系统通常会产生高延迟,因为现实世界的问题经常需要多个推理步骤的迭代周期。为了应对这一挑战,我们提出了M1-Parallel框架,该框架并行运行多个多智能体团队,以发现不同的解决路径。通过利用带有异步消息传递的事件驱动通信模型,M1-Parallel有效地利用有效计划的固有多样性,从而降低端到端延迟或提高任务完成率。我们在复杂任务上的实验表明,具有提前终止功能的M1-Parallel在保持准确性的同时实现了高达2.2倍的加速,而具有聚合功能的M1-Parallel则产生了更高的任务完成率。我们进一步研究了旨在鼓励多样化执行计划的策略,但观察到在重复采样之上没有额外的性能提升。总的来说,这些发现强调了并行计划执行在优化多智能体系统以处理现实世界、高复杂性推理任务方面的潜力。
英文摘要:
Large language model (LLM)-based multi-agent systems have demonstrated remarkable promise for tackling complex tasks by breaking them down into subtasks that are iteratively planned, executed, observed, and refined. Despite their effectiveness, these systems often incur high latency because real-world problems frequently demand multiple iterative cycles of reasoning steps. To address this challenge, we propose M1-Parallel, a framework that concurrently runs multiple multi-agent teams in parallel to uncover distinct solution paths. By leveraging an event-driven communication model with asynchronous messaging, M1-Parallel efficiently capitalizes on the inherent diversity of valid plans to either reduce end-to-end latency or boost task completion rates. Our experiments on complex tasks show that M1-Parallel with early termination achieves up to $2.2\times$ speedup while preserving accuracy, and that M1-Parallel with aggregation yields higher task completion rates. We further investigate strategies aimed at encouraging diverse execution plans but observe no additional performance gains over repeated sampling. Overall, these findings underscore the potential of parallel plan execution for optimizing multi-agent systems for real-world, high-complexity reasoning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。