mlsanityData to 14 Oct 2026

MAS-GPT: Training LLMs to Build LLM-based Multi-Agent Systems

arXiv 2503.03686 ↗First posted 5 Mar 2025cs.CL cs.MAcited by 50

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

LLM-based multi-agent systems (MAS) have shown significant potential in tackling diverse tasks. However, to design effective MAS, existing approaches heavily rely on manual configurations or multiple calls of advanced LLMs, resulting in inadaptability and high inference costs. In this paper, we simplify the process of building an MAS by reframing it as a generative language task, where the input is a user query and the output is a corresponding MAS. To address this novel task, we unify the representation of MAS as executable code and propose a consistency-oriented data construction pipeline to create a high-quality dataset comprising coherent and consistent query-MAS pairs. Using this dataset, we train MAS-GPT, an open-source medium-sized LLM that is capable of generating query-adaptive MAS within a single LLM inference. The generated MAS can be seamlessly applied to process user queries and deliver high-quality responses. Extensive experiments on 9 benchmarks and 5 LLMs show that the proposed MAS-GPT consistently outperforms 10+ baseline MAS methods on diverse settings, indicating MAS-GPT's high effectiveness, efficiency and strong generalization ability. Code will be available at https://github.com/rui-ye/MAS-GPT.

Key facts. Cited by 50 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 37 of its 49 references that are in the map. First posted on arXiv 5 Mar 2025.

Builds on

37 of 49 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024AFlow: Automating Agentic Workflow Generation14 Oct
  2. 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate30 May

Other references · 35

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  8. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  9. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  10. 2024Qwen2.5 Technical Reportcited by 4,942
  11. 2021Program Synthesis with Large Language Modelscited by 3,637
  12. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
23 more
  1. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  2. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
  3. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  4. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,784
  5. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  6. 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,395
  7. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  8. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  9. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  10. 2023ChatDev: Communicative Agents for Software Developmentcited by 919
  11. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  12. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
  13. 2022PAL: Program-aided Language Modelscited by 652
  14. 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 650
  15. 2023AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviorscited by 598
  16. 2024Scaling Synthetic Data Creation with 1,000,000,000 Personascited by 417
  17. 2024Automated Design of Agentic Systemscited by 407
  18. 2023MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoningcited by 316
  19. 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaborationcited by 290
  20. 2023SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Modelscited by 256
  21. 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaborationcited by 251
  22. 2024Scaling Large Language Model-based Multi-Agent Collaborationcited by 241
  23. 2024Intelligent Go-Explore: Standing on the Shoulders of Giant Foundation Modelscited by 33

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 18; 2026: 32.

50 papers.

Sort:

By area:

  1. 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 356
  2. 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
  3. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
  4. 2025Multi-Agent Collaboration via Evolving Orchestrationcited by 108
  5. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 103
  6. 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 50
  7. 2025SciMaster: Towards General-Purpose Scientific AI Agents, Part I. X-Master as Foundation: Can We Lead on Humanity's Last Exam?cited by 47
  8. 2025X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMscited by 38
  9. 2026MAS-Orchestra: Understanding and Improving Multi-Agent Reasoning Through Holistic Orchestration and Controlled Benchmarkscited by 32
  10. 2026Rethinking Failure Attribution in Multi-Agent Systems: A Multi-Perspective Benchmark and Evaluationcited by 24
  11. 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executorscited by 22
  12. 2025MermaidFlow: Redefining Agentic Workflow Generation via Safety-Constrained Evolutionary Programmingcited by 16
38 more
  1. 2025BrowseMaster: Towards Scalable Web Browsing via Tool-Augmented Programmatic Agent Paircited by 16
  2. 2025MASLab: A Unified and Comprehensive Codebase for LLM-based Multi-Agent Systemscited by 14
  3. 2026Agent Primitives: Reusable Latent Building Blocks for Multi-Agent Systemscited by 14
  4. 2025Stochastic Self-Organization in Multi-Agent Systemscited by 9
  5. 2025GenoMAS: A Multi-Agent Framework for Scientific Discovery via Code-Driven Gene Expression Analysiscited by 8
  6. 2026Workflow-R1: Group Sub-sequence Policy Optimization for Multi-turn Workflow Constructioncited by 8
  7. 2025On the Importance of Task Complexity in Evaluating LLM-Based Multi-Agent Systemscited by 6
  8. 2026Why Search When You Can Transfer? Amortized Agentic Workflow Design from Structural Priorscited by 6
  9. 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systemscited by 6
  10. 2025Inefficiencies of Meta Agents for Agent Designcited by 5
  11. 2026Yunjue Agent Tech Report: A Fully Reproducible, Zero-Start In-Situ Self-Evolving Agent System for Open-Ended Taskscited by 5
  12. 2026EvoMAS: Evolutionary Generation of Multi-Agent Systemscited by 5
  13. 2026Skill-MAS: Evolving Meta-Skill for Automatic Multi-Agent Systemscited by 5
  14. 2025Multi-View Encoders for Performance Prediction in LLM-Based Agentic Workflowscited by 3
  15. 2025MAS2: Self-Generative, Self-Configuring, Self-Rectifying Multi-Agent Systemscited by 3
  16. 2026Learning to Compose for Cross-domain Agentic Workflow Generationcited by 3
  17. 2026Unifying Temporal and Structural Credit Assignment in LLM-Based Multi-Agent Prompt Optimizationcited by 3
  18. 2026FlowBank: Query-Adaptive Agentic Workflows Optimization through Precompute-and-Reusecited by 3
  19. 2025MasHost Builds It All: Autonomous Multi-Agent System Directed by Reinforcement Learningcited by 2
  20. 2026Towards AGI A Pragmatic Approach Towards Self Evolving Agentcited by 2
  21. 2026When Agents "Misremember" Collectively: Exploring the Mandela Effect in LLM-based Multi-Agent Systemscited by 2
  22. 2026MetaAgent-X : Breaking the Ceiling of Automatic Multi-Agent Systems via End-to-End Reinforcement Learningcited by 2
  23. 2026Markets, Not Planners: Decentralized Orchestration of LLM Agents with Private Informationcited by 2
  24. 2026Rethinking the Evaluation of Efficiency Methods for Multi-Agent Systemscited by 2
  25. 2026Response-Conditioned Parallel-to-Sequential Orchestration for Multi-Agent Systemscited by 1
  26. 2026HyEvo: Self-Evolving Hybrid Agentic Workflows for Efficient Reasoningcited by 0
  27. 2026Is Monitoring Enough? Strategic Agent Selection For Stealthy Attack in Multi-Agent Discussionscited by 0
  28. 2026Improving Role Consistency in Multi-Agent Collaboration via Quantitative Role Claritycited by 0
  29. 2026Complete Cyclic Subtask Graphs for Tool-Using LLM Agents: Flexibility, Cost, and Bottlenecks in Long-Horizon Workflowscited by 0
  30. 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent Systemcited by 0
  31. 2026Reinforced Collaboration in Multi-Agent Flow Networkscited by 0
  32. 2026OptiMAS: Automatically Optimize Multi-Agent Systemcited by 0
  33. 2026Multi-Agent System Search via Active Substructure-aware Policy Optimizationcited by 0
  34. 2026Beyond Solo and Consistency: Vindicating Multi-Agent Debate via Conditional Progressive Pruningcited by 0
  35. 2026Inherit-MAS: Test-Time Evolution of Multi-Agent Systems through Workflow and Execution Inheritancecited by 0
  36. 2026Dynamic Harness Search: Building Multi-Agent Systems Per-Query via Predictioncited by 0
  37. 2026CB-Orchestrator: Adaptive Workflow Optimization for LLM Agents via Contextual Banditscited by 0
  38. 2026MAS-Gate: Unlocking Multi-Agent System Lifecycle via Node-Centric Quantificationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024A Survey on LLM-based Multi-Agent System: Recent Advances and New Frontiers in Application
  2. 2025MasRouter: Learning to Route LLMs for Multi-Agent Systems
  3. 2024MALT: Improving Reasoning with Multi-Agent LLM Training
  4. 2024BudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Tasks
  5. 2024Optima: Optimizing Effectiveness and Efficiency for LLM-Based Multi-Agent System
  6. 2024Enhancing the General Agent Capabilities of Low-Parameter LLMs through Tuning and Multi-Branch Reasoning
  7. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challenges
  8. 2025Modeling Response Consistency in Multi-Agent LLM Systems: A Comparative Analysis of Shared and Separate Context Approaches