TL;DR
This paper surveys the burgeoning field of Large Language Model (LLM)-based Multi-Agent (LMA) systems for Software Engineering (SE). It argues that combining LLMs with multi-agent architectures is crucial for tackling the complexity of modern software development, proposing a research agenda to advance this integration towards "Software Engineering 2.0."
What Problem Does This Paper Address?
Traditional autonomous agents, while capable, often lack the sophisticated reasoning and planning abilities of humans. The recent advent of LLMs has dramatically improved these capabilities, but applying a single LLM to complex, multi-faceted SE tasks is limited. Real-world SE involves diverse domains and requires collaboration. This paper addresses the challenge of effectively integrating LLMs into multi-agent systems (LMA systems) to create more robust, scalable, and autonomous solutions for the entire software development lifecycle (SDLC). It aims to map the current landscape, identify limitations, and chart a path forward for LMA systems in SE.
Methods
The authors conducted a systematic literature review of 71 recent studies on LMA systems in SE, categorizing applications across SDLC phases (requirements engineering, code generation, quality assurance, and maintenance). They also performed two case studies using the ChatDev framework to develop Snake and Tetris games, demonstrating current capabilities and limitations. Based on this analysis, they propose a two-phase research agenda: (1) enhancing individual agent capabilities and (2) optimizing agent synergy.
Datasets
Not explicitly discussed as training or evaluation datasets in the context of a novel contribution. The paper references the use of LLMs like ChatGPT and Gemini, which are pre-trained on massive datasets. The research agenda suggests creating specialized training datasets for SE roles.
Key Insights and Ideas
- LLMs are a game-changer for autonomous agents: LLMs bring human-level reasoning and planning, making them ideal cognitive cores for autonomous agents.
- Multi-agent systems are essential for SE complexity: Single LLMs struggle with multi-domain SE tasks. LMA systems, by leveraging specialized agents and collaborative mechanisms, offer a more scalable and robust approach.
- LMA systems offer significant benefits for SE: These include autonomous problem-solving, enhanced robustness and fault tolerance through cross-examination, and scalability to complex projects.
- Current LMA systems have limitations: While promising, they struggle with tasks requiring deep logical reasoning and abstraction, as seen in the Tetris game case study.
- A structured research agenda is needed: The paper proposes a two-phase agenda focusing on improving individual agent skills (role-playing, prompting) and optimizing agent collaboration (human-agent synergy, scaling, evaluation).
Key Results
- Literature Review: Identified 71 relevant studies, categorizing LMA applications across SDLC phases.
- Case Study 1 (Snake Game): ChatDev successfully generated a playable Snake game within a few iterations, demonstrating efficiency (76 seconds average, $0.019 cost).
- Case Study 2 (Tetris Game): ChatDev required ten attempts to produce a functional Tetris game, which still lacked core functionality (row removal). This highlights limitations in handling complex logic and abstraction. Development remained efficient (70 seconds average, $0.020 cost), suggesting potential for rapid prototyping.
Limitations and Future Work
Limitations: * The paper acknowledges that current LMA systems struggle with tasks requiring deeper logical reasoning and abstraction. * The case studies, while illustrative, are limited to two specific game development scenarios. * The literature review might have inadvertently excluded relevant studies.
Future Work: The paper proposes a comprehensive research agenda:
- Phase 1: Enhancing Individual Agent Capabilities:
- Identifying and refining SE roles for LLM-based agents.
- Developing effective, flexible, and robust prompting languages tailored for LLMs.
- Curating specialized training data and fine-tuning LLMs for specific SE roles.
- Phase 2: Optimizing Agent Synergy:
- Optimizing human-agent collaboration and task allocation.
- Developing benchmarks to evaluate cooperative abilities in LMA systems.
- Scaling LMA systems for large-scale projects through hierarchical decomposition and efficient communication.
- Leveraging industry principles (e.g., Value Stream Mapping, Design Thinking) for LMA system design.
- Enabling dynamic adaptation of LMA systems (scale, strategies, roles) in response to evolving project needs.
- Addressing privacy and partial information challenges in multi-organizational settings.
Summary updated