X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMs

Rui Ye, Xiangrui Liu, Qimin Wu, Xianghe Pang, Zhenfei Yin, Lei Bai, Siheng ChenarXiv 2025 · DOI

Introduction

Most current Multi-Agent Systems (MAS)—where multiple AI agents collaborate to solve complex tasks—are "homogeneous." In these systems, every agent (e.g., the coder, the reviewer, the manager) is powered by the same underlying Large Language Model (LLM), such as GPT-4 or Qwen-2.5. This research argues that such a setup creates an "intelligence ceiling": if the base model has a specific factual blind spot or reasoning flaw, the entire agentic committee will likely share that same error, making it impossible to correct through collaboration.

To break this bottleneck, the X-MAS framework explores Heterogeneous MAS, leveraging the unique strengths of different models trained on diverse datasets. By matching specific LLMs to specialized agent roles, the framework moves beyond the limitations of single-model systems to unleash collective intelligence.

The X-MAS Framework

The researchers introduced a two-part approach to building superior multi-agent systems:

  1. X-MAS-Bench: A massive evaluation testbed designed to identify the "best tool for the job." MAS behavior is decomposed into five atomic functions: Question-Answering (QA), Revise, Aggregation, Planning, and Evaluation. The researchers conducted over 1.7 million evaluations across 27 different LLMs to determine which models excel at specific functions across five domains: Mathematics, Coding, Science, Medicine, and Finance.
  2. X-MAS-Design: A methodology for transitioning existing MAS frameworks (like AgentVerse or DyLAN) from homogeneous to heterogeneous. Instead of a structural redesign, the single "driver" model is swapped for a curated selection of models that performed best in X-MAS-Bench for specific roles.
Overview of the X-MAS framework, illustrating the evaluation of atomic functions in X-MAS-Bench and the implementation of heterogeneous MAS in X-MAS-Design.

Additionally, the team developed X-MAS-Proto, a custom prototype MAS that explicitly utilizes all five atomic functions in a single pipeline: a Planner generates ideas, multiple QA agents answer concurrently, an Evaluator/Reviser refines the best answer, and an Aggregator synthesizes the final result.

Experimental Setup and Datasets

The study utilized 21 different test sets across five domains to ensure broad generalization:

  • Mathematics: MATH, AIME-2024, AIME-2025, and MATH-MAS.
  • Coding: MBPP, HumanEval, and MMLU-Coding.
  • Science: SciBench, GPQA, and SciEval.
  • Medicine: PubMedQA and MedQA.
  • Finance: FinanceBench and FinQA.

Key Insights

  • No "One Model to Rule Them All": Benchmarking revealed that no single LLM excels across all functions and domains. A model might be a world-class coder but a mediocre aggregator or evaluator.
  • Size vs. Specialization: In several niche scenarios, smaller models outperformed larger counterparts. For instance, Qwen2.5-14B proved to be a better aggregator for finance tasks than much larger 70B+ models.
  • Chatbot-Reasoner Synergy: A powerful finding was the benefit of mixing "chatbots" (standard instruction-tuned models) with "reasoners" (models like DeepSeek-R1 or QwQ). While reasoner-only systems sometimes struggled with formatting, using them as "solvers" within a heterogeneous system driven by a standard "planner" led to massive gains.
  • Monotonic Improvement: System performance improved consistently as the number of candidate models available for selection increased, proving that diversity is a core feature of effective MAS.

Results and Discussion

The X-MAS-Design approach proved to be "method-agnostic," improving the performance of four different existing MAS frameworks across almost every tested domain.

Comparative performance of X-MAS-Design against homogeneous baselines across various MAS methods and domains.

Key performance highlights include:

  • MATH Benchmark: Transitioning to a heterogeneous configuration yielded an 8.4% improvement on the MATH dataset without changing the system's underlying logic.
  • AIME (Competition Math): In a mixed chatbot-reasoner scenario, X-MAS achieved a 47% performance boost on the AIME dataset compared to the best homogeneous setup.

Limitations and Future Work

Currently, the "optimal" models are assigned manually based on benchmark results. Future work will focus on automated or dynamic model selection, where the system chooses which LLM to invoke on the fly. Additionally, while 27 models were tested, the rapidly evolving LLM landscape requires continuous updates to the model library. Future research will also investigate the scalability of X-MAS across complex industrial tasks and the training of "specialist" small models specifically for the atomic roles identified in this paper.

Summary updated

BibTeX
@misc{ye2025x,
  author = {Rui Ye and Xiangrui Liu and Qimin Wu and Xianghe Pang and Zhenfei Yin and Lei Bai and Siheng Chen},
  title = {{X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMs}},
  year = {2025},
  eprint = {2505.16997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.16997},
}
Figure