AgentConductor: 多智能体竞争级代码生成中的拓扑演化
AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generation
AI总结:
AgentConductor通过动态拓扑生成和强化学习优化,提升多智能体系统在竞争级代码生成中的性能和效率。
摘要:
基于大型语言模型(LLM)的多智能体系统(MAS)通过预定义的交互拓扑协调专门化的智能体,并在复杂任务如竞争级代码生成中展现出潜力。最近的研究表明,精心设计的多智能体工作流和通信图可以通过利用协作推理显著提高代码生成性能。然而,现有方法既不适应拓扑密度与任务难度之间的关系,也未能在实例内通过执行反馈迭代优化拓扑,导致通信冗余和性能瓶颈。为了解决这些问题,我们提出了AgentConductor:一种基于强化学习优化的MAS,其核心是一个基于LLM的调度智能体,能够实现端到端的反馈驱动动态生成交互拓扑。对于每个查询,AgentConductor推断智能体角色和任务难度,然后构建一个任务适应、密度感知的分层有向无环图(DAG)拓扑,其基础是两个关键创新。首先,我们设计了一个新的拓扑密度函数,该函数捕捉了通信感知的多智能体交互的数学特征。其次,我们采用难度区间划分,以避免对每个难度级别的精确拓扑密度上界测量进行过度剪枝,并实现更细粒度的控制。实验表明,在三个竞争级和两个基础代码数据集中,AgentConductor实现了最先进的准确性,其在pass@1准确率上比最强基线高出多达14.6%,在密度减少方面高出13%,在token成本减少方面高出68%。
英文摘要:
Large language model(LLM)-driven multi-agent systems(MAS) coordinate specialized agents through predefined interaction topologies and have shown promise for complex tasks such as competition-level code generation. Recent studies demonstrate that carefully designed multi-agent workflows and communication graphs can significantly improve code generation performance by leveraging collaborative reasoning. However, existing methods neither adapt topology density to task difficulty nor iteratively refine the topology within an instance using execution feedback, which leads to redundant communication and performance bottlenecks. To address these issues, we propose AgentConductor: a reinforcement learning-optimized MAS with an LLM-based orchestrator agent as its core, which enables end-to-end feedback-driven dynamic generation of interaction topologies. For each query, AgentConductor infers agent roles and task difficulty, then constructs a task-adapted, density-aware layered directed acyclic graph (DAG) topology, underpinned by two key innovations. First, we design a novel topological density function that captures communication-aware mathematical characterizations of multi-agent interactions. Second, we adopt difficulty interval partitioning to avoid excessive pruning for precise topological density upper bound measurement per difficulty level and finer-grained control. Empirically, across three competition-level and two foundational code datasets, AgentConductor achieves state-of-the-art accuracy, outperforming the strongest baseline by up to 14.6% in pass@1 accuracy, 13% in density reduction, and 68% in token cost reduction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。