arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.19245cs.SEcs.CVcs.MA
收藏

MaCTG:用于自动编程的多智能体协作思维图

MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming

School of Computer Science, University of Auckland(计算机科学系,奥克兰大学);School of Information and Communication Technology, Griffith University(信息与通信技术系,格里菲斯大学);Beijing Institute of Technology(北京理工大学);Suzhou Industrial Park Monash Research Institute of Science and Technology(苏州工业园区莫纳什科学与技术研究所);School of Computing, National University of Singapore(计算系,新加坡国立大学)

Zixiao Zhao, Jing Sun, Zhe Hou, Zhiyuan Wei, Cheng-Hao Cai, Miao Qiao, Jin Song Dong

AI总结:

本文提出MaCTG多智能体框架,通过动态图结构实现LLM智能体的精准协作,在传统图像处理自动编程任务中达83.33%最优准确率,运营成本较现有多智能体框架降低89.09%。

摘要:

随着大语言模型(LLMs)的快速发展,基于LLM的方法在多个领域展现出强大的问题解决能力。然而在自动编程领域,单个LLM通常仅能实现函数级代码生成,而由多个LLM组成的多智能体系统往往存在任务规划效率低下的问题。这种结构化协调的缺失会引发连锁幻觉,即智能体间累积的错误会导致工作流程欠佳且计算成本过高。为克服这些挑战,本文提出MaCTG(Multi-Agent Collaborative Thought Graph,多智能体协作思维图),这是一种新型多智能体框架,采用动态图结构促进LLM智能体间的精准任务分配与可控协作。MaCTG可根据编程需求自主分配智能体角色,通过上下文感知调整动态优化任务分配,并系统验证与整合项目级代码,有效减少幻觉错误并提升整体准确率。MaCTG通过混合LLM部署模式提升成本效益:专有模型处理复杂推理,开源模型用于常规编码与验证任务。为评估MaCTG的有效性,本文将其应用于传统图像处理自动编程任务,实现了83.33%的当前最优准确率;此外,借助混合LLM配置,MaCTG相比现有多智能体框架显著降低了89.09%的运营成本,展现出其效率、可扩展性及实际应用价值。

英文摘要:

With the rapid advancement of Large Language Models (LLMs), LLM-based approaches have demonstrated strong problem-solving capabilities across various domains. However, in automatic programming, a single LLM is typically limited to function-level code generation, while multi-agent systems composed of multiple LLMs often suffer from inefficient task planning. This lack of structured coordination can lead to cascading hallucinations, where accumulated errors across agents result in suboptimal workflows and excessive computational costs. To overcome these challenges, we introduce MaCTG (Multi-Agent Collaborative Thought Graph), a novel multi-agent framework that employs a dynamic graph structure to facilitate precise task allocation and controlled collaboration among LLM agents. MaCTG autonomously assigns agent roles based on programming requirements, dynamically refines task distribution through context-aware adjustments, and systematically verifies and integrates project-level code, effectively reducing hallucination errors and improving overall accuracy. MaCTG enhances cost-effectiveness by implementing a hybrid LLM deployment, where proprietary models handle complex reasoning, while open-source models are used for routine coding and validation tasks. To evaluate MaCTG's effectiveness, we applied it to traditional image processing auto-programming tasks, achieving a state-of-the-art accuracy of 83.33%. Additionally, by leveraging its hybrid LLM configuration, MaCTG significantly reduced operational costs by 89.09% compared to existing multi-agent frameworks, demonstrating its efficiency, scalability, and real-world applicability.

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

↑