Skip to main content
QUICK REVIEW

[Paper Review] MARE: Multi-Agents Collaboration Framework for Requirements Engineering

Dongming Jin, Zhi Jin|arXiv (Cornell University)|May 6, 2024
Service-Oriented Architecture and Web ServicesComputer Science4 citations
TL;DR

MARE is a multi-agent collaboration framework that automates end-to-end requirements engineering using large language models (LLMs). It orchestrates five specialized agents—stakeholder, collector, modeler, checker, and documenter—through a shared workspace to iteratively perform elicitation, modeling, verification, and specification, achieving a 15.4% improvement in F1 score over state-of-the-art baselines on requirements modeling tasks.

ABSTRACT

Requirements Engineering (RE) is a critical phase in the software development process that generates requirements specifications from stakeholders' needs. Recently, deep learning techniques have been successful in several RE tasks. However, obtaining high-quality requirements specifications requires collaboration across multiple tasks and roles. In this paper, we propose an innovative framework called MARE, which leverages collaboration among large language models (LLMs) throughout the entire RE process. MARE divides the RE process into four tasks: elicitation, modeling, verification, and specification. Each task is conducted by engaging one or two specific agents and each agent can conduct several actions. MARE has five agents and nine actions. To facilitate collaboration between agents, MARE has designed a workspace for agents to upload their generated intermediate requirements artifacts and obtain the information they need. We conduct experiments on five public cases, one dataset, and four new cases created by this work. We compared MARE with three baselines using three widely used metrics for the generated requirements models. Experimental results show that MARE can generate more correct requirements models and outperform the state-of-the-art approaches by 15.4%. For the generated requirements specifications, we conduct a human evaluation in three aspects and provide insights about the quality

Motivation & Objective

  • Address the challenge of fragmented automation in requirements engineering (RE) by unifying multiple RE tasks into a single, collaborative framework.
  • Overcome the limitations of single-task LLM applications in RE by enabling inter-task collaboration among specialized agents.
  • Improve the quality and consistency of generated requirements models and specifications through structured multi-agent workflows.
  • Demonstrate the superiority of collaborative LLM agents over individual LLMs in requirements modeling and specification generation.

Proposed method

  • MARE decomposes the RE process into four core tasks: elicitation, modeling, verification, and specification, each managed by dedicated agents.
  • Five specialized agents (stakeholder, collector, modeler, checker, documenter) are assigned specific roles and actions to perform their respective tasks.
  • A shared workspace enables agents to upload intermediate artifacts and access necessary information, facilitating coordination and iteration.
  • Each agent uses LLMs (e.g., gpt-3.5-turbo) with task-specific prompts and knowledge sources: meta-models for modeling, acceptance criteria for verification, and templates for specification.
  • The framework employs iterative refinement, where outputs from one agent feed into the next, ensuring consistency and completeness across stages.
  • Evaluation uses standard metrics (P, R, F1) for modeling and human evaluation on correctness, completeness, and consistency for specifications.

Experimental results

Research questions

  • RQ1RQ1: Can MARE effectively generate high-quality requirements models across diverse software systems compared to state-of-the-art baselines?
  • RQ2RQ2: How well does MARE generate complete, correct, and consistent requirements specifications, as judged by human evaluators?
  • RQ3RQ3: Does the multi-agent collaboration framework in MARE outperform individual LLMs in requirements modeling tasks?

Key findings

  • MARE outperforms three state-of-the-art baselines in requirements modeling, achieving a 15.4% higher F1 score on average when using gpt-3.5-turbo.
  • On five public cases, MARE improved average F1 by 23.9% over the SOTA for use case diagrams, 15.4% for problem diagrams, and 0.6% for goal models.
  • Human evaluation showed MARE achieved average scores of 0.98 (completeness), 1.92 (correctness), and 1.98 (consistency), indicating strong specification quality.
  • The completeness score was slightly lower than correctness and consistency, attributed to evaluators perceiving sections as insufficient and LLMs truncating long outputs.
  • Ablation studies confirmed that MARE’s collaborative framework outperformed individual LLMs, with 1.1% higher average F1, 2% higher recall, and 0.2% higher precision.
  • The results demonstrate that multi-agent collaboration significantly enhances modeling accuracy and specification quality compared to isolated LLM use.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.