Abstract
The rapid growth of LLM-based Multi-Agent Systems (MAS) has led to fragmented codebases, making it incredibly difficult to fairly compare methods or build upon existing work. This paper introduces MASLab, a unified, open-source codebase that integrates over 20 established MAS methods with standardized evaluation protocols, shared toolkits, and consistent data preprocessing. By providing a level playing field, MASLab enables rigorous benchmarking and significantly lowers the barrier to entry for researchers developing new agentic workflows.
Introduction
As researchers push beyond the limits of single Large Language Models (LLMs), Multi-Agent Systems—where multiple specialized AI agents collaborate, debate, or write code together—have exploded in popularity. However, the field is currently suffering from a severe lack of standardization.
Because every new MAS paper introduces its own isolated repository, researchers waste countless hours re-implementing baselines. Worse, these isolated codebases use different data preprocessing steps and evaluation scripts. For example, one method might use a strict string-matching script to check math answers, while another uses an LLM as a judge. This creates "unfair comparisons" where a method might appear superior on a leaderboard not because its agentic reasoning is better, but because its prompt was heavily optimized to pass a specific, brittle evaluation script. MASLab addresses this by unifying the entire pipeline from data ingestion to final evaluation.
Methodology
MASLab standardizes the MAS research pipeline through several key architectural choices:
- Streamlined Representation: All 20+ integrated MAS methods (including AutoGen, MetaGPT, ChatDev, and AgentVerse) are abstracted into a shared Python class structure. A core
inferencefunction handles the query and outputs the response, making the underlying logic easy to read and extend. - Consistent Inputs & Shared Resources: MASLab standardizes dataset preprocessing so all models see the exact same inputs. It also provides a shared toolkit for all agents, including sandboxed Python execution, web search, and image analysis, eliminating redundant engineering.
- Unified Evaluation Protocols: To stop methods from "gaming" rule-based metrics with formatting tricks, MASLab defaults to LLM-based evaluation (using tools like
xVerifyto check semantic correctness) and sandboxed test-case execution for coding tasks. - Rigorous Verification: The authors manually verified their re-implementations by comparing step-by-step intermediate outputs against the original official codebases to ensure fidelity.
Benchmarks
The framework includes built-in support for over 10 benchmarks spanning diverse domains:
- Mathematics: MATH, GSM-Hard, AQUA-RAT, AIME-2024
- Science & Knowledge: SciBench, GPQA, MMLU-Pro
- Medicine: MedMCQA
- Coding: HumanEval, MBPP
- AI Assistants (Tool Use): GAIA
Analysis and Insights
A critical finding of this work is that the choice of evaluation metric drastically alters method rankings. On the MATH benchmark, a method called MAV ranks 1st under an LLM-based evaluation but drops to 10th under a strict rule-based metric. Traditional rule-based metrics only agreed with human manual checks 27% to 65% of the time. In contrast, LLM-based evaluators (like xVerify) achieved over 98% agreement with human judges, proving they are much better at assessing true semantic correctness rather than superficial formatting.
Furthermore, format adherence is a massive bottleneck for smaller models. When scaling down the backend LLM (e.g., using a 7B or 14B model), MAS performance often plummets due to failures in outputting strict formats (like specific JSON schemas) required for agent communication. Tool usage also presents a significant challenge; on the complex GAIA benchmark, 45% of agent failures were attributed to errors in tool usage (e.g., web search timeouts, document parsing crashes) rather than incorrect final reasoning.
Experimental Results
The authors benchmarked 20+ methods across 8 LLMs, including Llama-3.3-70B-Instruct, the Qwen-2.5 series, and GPT-4o-mini. Key results include:
- No Universal Winner: No single MAS method dominates across all domains. For instance, EvoMAC performs best on coding tasks when paired with GPT-4o-mini, but MapCoder takes the lead when using Llama-3.3-70B-Instruct.
- Cost-Performance Tradeoffs: A custom implementation, MASLab-ReAct, achieved a massive 171% relative improvement over a single-LLM baseline on the GAIA benchmark (using GPT-4.1), while consuming less than half the tokens of the second-best method (OWL-Roleplaying).
- Format Error Quantified: For the AgentVerse method running on Qwen-2.5-14B, format errors accounted for ~53% of all failures on MMLU-Pro and ~57% on MATH.
Conclusion
While MASLab is comprehensive, it does not yet include every MAS method in existence. Furthermore, the benchmarks currently integrated are standard LLM benchmarks; they are not explicitly designed to test the unique nuances of multi-agent collaboration (like conflict resolution or dynamic role allocation). Future work will focus on continuously integrating new methods, supporting emerging Model Context Protocol (MCP) tools, and developing novel benchmarks specifically tailored for evaluating Multi-Agent Systems.
Summary updated