MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming
Zixiao Zhao, Jing Sun, Zhe Hou, Zhiyuan Wei, Cheng-Hao Cai, Miao Qiao,, Jin Song Dong

TL;DR
MaCTG is a multi-agent framework that uses a dynamic graph to coordinate LLMs for automatic programming, reducing errors and costs while improving accuracy and scalability.
Contribution
It introduces a novel multi-agent collaborative framework with dynamic task allocation and verification, enhancing automatic programming efficiency and accuracy.
Findings
Achieved 83.33% accuracy on image processing tasks.
Reduced operational costs by 89.09% with hybrid LLM deployment.
Effectively minimized hallucination errors through structured collaboration.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Control Systems Optimization
MethodsSparse Evolutionary Training
