Saved in:
Bibliographic Details
Main Authors: Zhao, Zixiao, Sun, Jing, Hou, Zhe, Wei, Zhiyuan, Cai, Cheng-Hao, Qiao, Miao, Dong, Jin Song
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.19245
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912336101507072
author Zhao, Zixiao
Sun, Jing
Hou, Zhe
Wei, Zhiyuan
Cai, Cheng-Hao
Qiao, Miao
Dong, Jin Song
author_facet Zhao, Zixiao
Sun, Jing
Hou, Zhe
Wei, Zhiyuan
Cai, Cheng-Hao
Qiao, Miao
Dong, Jin Song
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_19245
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming
Zhao, Zixiao
Sun, Jing
Hou, Zhe
Wei, Zhiyuan
Cai, Cheng-Hao
Qiao, Miao
Dong, Jin Song
Software Engineering
Computer Vision and Pattern Recognition
Multiagent Systems
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.
title MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming
topic Software Engineering
Computer Vision and Pattern Recognition
Multiagent Systems
url https://arxiv.org/abs/2410.19245