NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MegaAgent: A Large-Scale Autonomous LLM-based Multi-Agent System Without Predefined SOPs

Qian Wang, Tianyu Wang, Zhenheng Tang, Qinbin Li, Nuo Chen, Jingsheng Liang, Bingsheng He

TL;DR

MegaAgent is a highly scalable, autonomous multi-agent system (MAS) that eliminates the need for human-predefined Standard Operating Procedures (SOPs). By leveraging dynamic hierarchical task decomposition, parallel execution, and multi-level monitoring, it can coordinate hundreds of LLM agents to tackle complex tasks—like software development and large-scale social simulations—far more efficiently than existing frameworks.

The Bottleneck of Human-Defined SOPs

As Large Language Models (LLMs) have advanced, researchers have built Multi-Agent Systems (MAS) where multiple AI agents collaborate to solve complex problems. However, existing frameworks like MetaGPT and AutoGen face two major bottlenecks.

First, they rely heavily on human-defined Standard Operating Procedures (SOPs). A human must manually define agent roles, specific tasks, and communication protocols. While manageable for small coding tasks, this approach is unscalable for complex simulations involving hundreds of participants. Second, these systems typically run sequentially, leading to execution bottlenecks and "hallucination cascades," where a single agent's error derails the entire workflow due to a lack of robust error-checking.

Methodology: An OS-Inspired Framework

To address these scaling issues, MegaAgent draws inspiration from Operating Systems (OS) to build a more resilient and autonomous architecture.

MegaAgent Architecture: Dynamic hierarchical task decomposition and parallel execution levels.

Key innovations include:

  • Dynamic Hierarchy (No Predefined SOPs): Users provide a single "meta-prompt" to a "Boss Agent." This agent autonomously breaks the task into subtasks and recruits "Admin Agents." If a task remains too complex, Admin Agents recruit "Ordinary Agents," building an organizational chart on the fly.
  • Parallel Execution: Unlike sequential systems, MegaAgent allows groups of agents at the same hierarchical level to work simultaneously, shifting time complexity from $O(n)$ to $O(\log n)$.
  • Asynchronous Communication: Agents communicate via producer-consumer message queues, allowing them to process batches of messages efficiently without idling.
  • Git-Based File Management: To prevent agents from overwriting work, MegaAgent utilizes a Git-based version control system with global mutex locks, enabling agents to pull commits, edit, and resolve conflicts safely.
  • Hierarchical Monitoring: Agents use self-generated checklists to verify their work. Admin agents review group outputs, and the Boss agent performs a final system-level check to mitigate hallucinations.

Experimental Evaluation

The authors evaluated MegaAgent across standard benchmarks and complex custom scenarios:

  • Standard Benchmarks: MBPP and HumanEval (coding), MATH and GSM-8K (reasoning).
  • Gobang Game Development: A software engineering task requiring frontend and backend coordination.
  • National Policy Generation: A massive social simulation requiring hundreds of agents across simulated government ministries.

Key Results

MegaAgent consistently outperformed baselines across all metrics. In the Gobang Game Development task, it was the only system capable of building a playable game with an AI opponent, autonomously spawning 7 agents to complete the task in 800 seconds.

Performance comparison of MegaAgent against state-of-the-art MAS frameworks on standard benchmarks.

In the National Policy Generation task, MegaAgent demonstrated unprecedented scalability by coordinating 590 agents to draft and refine policies in under 3,000 seconds. Baseline models failed to handle more than 10 agents in the same scenario.

Insights and Future Directions

A critical insight from the study is that LLMs are capable of writing their own SOPs; humans do not need to micromanage agent roles if the high-level goal is clear. However, communication remains a significant bottleneck. Cost analysis revealed a 25:1 ratio of input to output tokens, as agents must constantly process dialogue history to maintain coordination.

Future work will focus on reducing token overhead through semantic compression and exploring the use of specialized, cheaper LLMs for subordinate roles while reserving powerful models like GPT-4o for "Boss" and "Admin" functions.

Summary updated

BibTeX
@inproceedings{wang2025megaagent,
  author = {Qian Wang and Tianyu Wang and Zhenheng Tang and Qinbin Li and Nuo Chen and Jingsheng Liang and Bingsheng He},
  title = {{MegaAgent: A Large-Scale Autonomous LLM-based Multi-Agent System Without Predefined SOPs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure