Abstract
Requirements Engineering (RE) is a critical yet complex phase of software development involving elicitation, modeling, verification, and specification. Traditional automation often focuses on isolated tasks, failing to capture the iterative, collaborative nature of human engineering teams. We present MARE, a multi-agent framework that leverages Large Language Models (LLMs) to automate the end-to-end RE lifecycle. By employing specialized agents—Stakeholders, Collector, Modeler, Checker, and Documenter—and a shared workspace, MARE facilitates autonomous collaboration and error correction. Experimental results demonstrate that MARE significantly outperforms state-of-the-art methods, achieving up to a 23.8% improvement in modeling accuracy.
Introduction
Requirements Engineering (RE) serves as the foundation of software development, yet it is notoriously difficult to automate. It requires eliciting needs from stakeholders, translating those needs into formal models, verifying consistency, and producing rigorous specifications. While deep learning has successfully automated isolated tasks like entity extraction, the overall process remains fragmented. A single LLM often struggles to maintain the global context and consistency required for a full RE process. MARE addresses this by creating a "team" of LLM agents that mirror the collaborative dynamics of a human engineering team.
The MARE Framework
MARE (Multi-Agent collaboration for Requirements Engineering) decomposes the RE process into four primary stages: Elicitation, Modeling, Verification, and Specification. The framework is built upon three core pillars: specialized roles, predefined actions, and a shared workspace.
Specialized Agent Roles
Rather than relying on a single generic model, MARE utilizes five distinct roles, each with specific goals and capabilities. This specialization allows each agent to focus on a single logical step, reducing hallucinations and improving overall output quality.
Shared Workspace and Iteration
The "secret sauce" of MARE is its Shared Work Space. This central repository allows agents to upload and retrieve intermediate artifacts such as drafts, models, and error reports. Each artifact includes metadata (creator, purpose, and recipient), enabling autonomous and iterative workflows. For instance, if the Checker identifies a "requirement smell" or inconsistency, the process automatically loops back to the Collector or Modeler for refinement before the final specification is generated.
Experimental Evaluation
The researchers evaluated MARE across several benchmarks, including Use Case Diagrams (e.g., ATM and Library systems), Goal Models (GoalModelDataset), and Problem Diagrams for control systems (e.g., Smart Home and Air Conditioner).
MARE was compared against three state-of-the-art (SOTA) baselines: IT4RE, EPD, and HAGM. Key results include:
- Modeling Accuracy: Using GPT-3.5-Turbo, MARE improved the F1 score for problem diagrams by 15.4% and for use case diagrams by 23.8% compared to SOTA tools.
- Human Evaluation: In a blind study by computer science graduate students, MARE’s specifications scored exceptionally high on correctness (1.92/2.0) and consistency (1.98/2.0).
- End-to-End Automation: The framework successfully transitioned from a "rough idea" to a structured Software Requirements Specification (SRS) without manual intervention.
Key Insights and Conclusion
The success of MARE highlights that collaboration beats scale; a team of specialized agents outperforms a single, larger LLM by focusing on specific logical tasks. The inclusion of an automated "Checker" loop is vital, as it allows the system to self-correct and mimic human peer-review processes.
While highly effective, MARE currently shows a slight trade-off in completeness, as LLMs tend toward conciseness. Future work will focus on scaling the framework for massive, multi-million-line projects and enabling agents to adapt to or define their own modeling languages. Overall, MARE represents a significant step toward fully autonomous, high-quality requirements engineering.
Summary updated