SECVMAOct 25, 2024

MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming

arXiv:2410.19245v23 citationsh-index: 6Has Code
Originality Highly original
AI Analysis

This addresses the problem of suboptimal workflows and high computational costs in multi-agent automatic programming systems, offering a scalable solution with significant efficiency gains.

The paper tackles inefficient task planning and cascading hallucinations in multi-agent systems for automatic programming by introducing MaCTG, a framework that uses a dynamic graph structure for precise task allocation and controlled collaboration. It achieved 83.33% accuracy on image processing tasks and reduced operational costs by 89.09% compared to existing frameworks.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes