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

Rui Ye, Xiangrui Liu, Qimin Wu, Xianghe Pang, Zhenfei Yin +2 more
5/22/2025
cs.AIcs.CLcs.MA

No official code found. Best implementation: MASWorks/X-MAS (34 stars, last commit 2025-05-30).

Abstract

LLM-based multi-agent systems (MAS) extend the capabilities of single LLMs by enabling cooperation among multiple specialized agents. However, most existing MAS frameworks rely on a single LLM to drive all agents, constraining the system's intelligence to the limit of that model. This paper explores the paradigm of heterogeneous LLM-driven MAS (X-MAS), where agents are powered by diverse LLMs, elevating the system's potential to the collective intelligence of diverse LLMs. We introduce X-MAS-Bench, a comprehensive testbed designed to evaluate the performance of various LLMs across different domains and MAS-related functions. As an extensive empirical study, we assess 27 LLMs across 5 domains (encompassing 21 test sets) and 5 functions, conducting over 1.7 million evaluations to identify optimal model selections for each domain-function combination. Building on these findings, we demonstrate that transitioning from homogeneous to heterogeneous LLM-driven MAS can significantly enhance system performance without requiring structural redesign. Specifically, in a chatbot-only MAS scenario, the heterogeneous configuration yields up to 8.4\% performance improvement on the MATH dataset. In a mixed chatbot-reasoner scenario, the heterogeneous MAS could achieve a remarkable 47\% performance boost on the AIME dataset. Our results underscore the transformative potential of heterogeneous LLMs in MAS, highlighting a promising avenue for advancing scalable, collaborative AI systems.

View on arXivView PDF

Code Implementations(1)

MASWorks/X-MASCommunity100%
344Shell, PythonMay 16, 20251 years ago

Cite this paper

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

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16997.svg)](https://codeofpaper.com/paper/2505.16997)

Discussion