MAS-GPT: Training LLMs to Build LLM-based Multi-Agent Systems
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
- 2024AFlow: Automating Agentic Workflow Generation14 Oct
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate30 May
Other references · 35
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
23 more
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,784
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,395
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2023ChatDev: Communicative Agents for Software Developmentcited by 919
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2022PAL: Program-aided Language Modelscited by 652
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 650
- 2023AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviorscited by 598
- 2024Scaling Synthetic Data Creation with 1,000,000,000 Personascited by 417
- 2024Automated Design of Agentic Systemscited by 407
- 2023MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoningcited by 316
- 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaborationcited by 290
- 2023SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Modelscited by 256
- 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaborationcited by 251
- 2024Scaling Large Language Model-based Multi-Agent Collaborationcited by 241
- 2024Intelligent Go-Explore: Standing on the Shoulders of Giant Foundation Modelscited by 33
Built on by
Citing papers per year: 2025: 18; 2026: 32.
50 papers.
Sort:
By area:
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 356
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
- 2025Multi-Agent Collaboration via Evolving Orchestrationcited by 108
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 103
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 50
- 2025SciMaster: Towards General-Purpose Scientific AI Agents, Part I. X-Master as Foundation: Can We Lead on Humanity's Last Exam?cited by 47
- 2025X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMscited by 38
- 2026MAS-Orchestra: Understanding and Improving Multi-Agent Reasoning Through Holistic Orchestration and Controlled Benchmarkscited by 32
- 2026Rethinking Failure Attribution in Multi-Agent Systems: A Multi-Perspective Benchmark and Evaluationcited by 24
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executorscited by 22
- 2025MermaidFlow: Redefining Agentic Workflow Generation via Safety-Constrained Evolutionary Programmingcited by 16
38 more
- 2025BrowseMaster: Towards Scalable Web Browsing via Tool-Augmented Programmatic Agent Paircited by 16
- 2025MASLab: A Unified and Comprehensive Codebase for LLM-based Multi-Agent Systemscited by 14
- 2026Agent Primitives: Reusable Latent Building Blocks for Multi-Agent Systemscited by 14
- 2025Stochastic Self-Organization in Multi-Agent Systemscited by 9
- 2025GenoMAS: A Multi-Agent Framework for Scientific Discovery via Code-Driven Gene Expression Analysiscited by 8
- 2026Workflow-R1: Group Sub-sequence Policy Optimization for Multi-turn Workflow Constructioncited by 8
- 2025On the Importance of Task Complexity in Evaluating LLM-Based Multi-Agent Systemscited by 6
- 2026Why Search When You Can Transfer? Amortized Agentic Workflow Design from Structural Priorscited by 6
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systemscited by 6
- 2025Inefficiencies of Meta Agents for Agent Designcited by 5
- 2026Yunjue Agent Tech Report: A Fully Reproducible, Zero-Start In-Situ Self-Evolving Agent System for Open-Ended Taskscited by 5
- 2026EvoMAS: Evolutionary Generation of Multi-Agent Systemscited by 5
- 2026Skill-MAS: Evolving Meta-Skill for Automatic Multi-Agent Systemscited by 5
- 2025Multi-View Encoders for Performance Prediction in LLM-Based Agentic Workflowscited by 3
- 2025MAS2: Self-Generative, Self-Configuring, Self-Rectifying Multi-Agent Systemscited by 3
- 2026Learning to Compose for Cross-domain Agentic Workflow Generationcited by 3
- 2026Unifying Temporal and Structural Credit Assignment in LLM-Based Multi-Agent Prompt Optimizationcited by 3
- 2026FlowBank: Query-Adaptive Agentic Workflows Optimization through Precompute-and-Reusecited by 3
- 2025MasHost Builds It All: Autonomous Multi-Agent System Directed by Reinforcement Learningcited by 2
- 2026Towards AGI A Pragmatic Approach Towards Self Evolving Agentcited by 2
- 2026When Agents "Misremember" Collectively: Exploring the Mandela Effect in LLM-based Multi-Agent Systemscited by 2
- 2026MetaAgent-X : Breaking the Ceiling of Automatic Multi-Agent Systems via End-to-End Reinforcement Learningcited by 2
- 2026Markets, Not Planners: Decentralized Orchestration of LLM Agents with Private Informationcited by 2
- 2026Rethinking the Evaluation of Efficiency Methods for Multi-Agent Systemscited by 2
- 2026Response-Conditioned Parallel-to-Sequential Orchestration for Multi-Agent Systemscited by 1
- 2026HyEvo: Self-Evolving Hybrid Agentic Workflows for Efficient Reasoningcited by 0
- 2026Is Monitoring Enough? Strategic Agent Selection For Stealthy Attack in Multi-Agent Discussionscited by 0
- 2026Improving Role Consistency in Multi-Agent Collaboration via Quantitative Role Claritycited by 0
- 2026Complete Cyclic Subtask Graphs for Tool-Using LLM Agents: Flexibility, Cost, and Bottlenecks in Long-Horizon Workflowscited by 0
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent Systemcited by 0
- 2026Reinforced Collaboration in Multi-Agent Flow Networkscited by 0
- 2026OptiMAS: Automatically Optimize Multi-Agent Systemcited by 0
- 2026Multi-Agent System Search via Active Substructure-aware Policy Optimizationcited by 0
- 2026Beyond Solo and Consistency: Vindicating Multi-Agent Debate via Conditional Progressive Pruningcited by 0
- 2026Inherit-MAS: Test-Time Evolution of Multi-Agent Systems through Workflow and Execution Inheritancecited by 0
- 2026Dynamic Harness Search: Building Multi-Agent Systems Per-Query via Predictioncited by 0
- 2026CB-Orchestrator: Adaptive Workflow Optimization for LLM Agents via Contextual Banditscited by 0
- 2026MAS-Gate: Unlocking Multi-Agent System Lifecycle via Node-Centric Quantificationcited by 0
- 2026MAS-Gate: Unlocking Multi-Agent System Lifecycle via Node-Centric Quantification13 Oct 2026
- 2026CB-Orchestrator: Adaptive Workflow Optimization for LLM Agents via Contextual Bandits9 Oct 2026
- 2026Dynamic Harness Search: Building Multi-Agent Systems Per-Query via Prediction2 Oct 2026
- 2026Inherit-MAS: Test-Time Evolution of Multi-Agent Systems through Workflow and Execution Inheritance1 Oct 2026
- 2026Beyond Solo and Consistency: Vindicating Multi-Agent Debate via Conditional Progressive Pruning27 Sep 2026
- 2026Multi-Agent System Search via Active Substructure-aware Policy Optimization26 Sep 2026
- 2026Rethinking the Evaluation of Efficiency Methods for Multi-Agent Systems5 Sep 2026
- 2026Markets, Not Planners: Decentralized Orchestration of LLM Agents with Private Information24 Aug 2026
- 2026OptiMAS: Automatically Optimize Multi-Agent System22 Aug 2026
- 2026Skill-MAS: Evolving Meta-Skill for Automatic Multi-Agent Systems17 Jun 2026
- 2026FlowBank: Query-Adaptive Agentic Workflows Optimization through Precompute-and-Reuse9 Jun 2026
- 2026Unifying Temporal and Structural Credit Assignment in LLM-Based Multi-Agent Prompt Optimization28 May 2026
38 more
- 2026Response-Conditioned Parallel-to-Sequential Orchestration for Multi-Agent Systems15 May 2026
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systems14 May 2026
- 2026MetaAgent-X : Breaking the Ceiling of Automatic Multi-Agent Systems via End-to-End Reinforcement Learning14 May 2026
- 2026Reinforced Collaboration in Multi-Agent Flow Networks13 May 2026
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent System7 May 2026
- 2026Why Search When You Can Transfer? Amortized Agentic Workflow Design from Structural Priors27 Apr 2026
- 2026Complete Cyclic Subtask Graphs for Tool-Using LLM Agents: Flexibility, Cost, and Bottlenecks in Long-Horizon Workflows17 Apr 2026
- 2026Improving Role Consistency in Multi-Agent Collaboration via Quantitative Role Clarity3 Apr 2026
- 2026Rethinking Failure Attribution in Multi-Agent Systems: A Multi-Perspective Benchmark and Evaluation26 Mar 2026
- 2026Is Monitoring Enough? Strategic Agent Selection For Stealthy Attack in Multi-Agent Discussions22 Mar 2026
- 2026HyEvo: Self-Evolving Hybrid Agentic Workflows for Efficient Reasoning20 Mar 2026
- 2026Learning to Compose for Cross-domain Agentic Workflow Generation11 Feb 2026
- 2026EvoMAS: Evolutionary Generation of Multi-Agent Systems6 Feb 2026
- 2026Agent Primitives: Reusable Latent Building Blocks for Multi-Agent Systems3 Feb 2026
- 2026Workflow-R1: Group Sub-sequence Policy Optimization for Multi-turn Workflow Construction1 Feb 2026
- 2026When Agents "Misremember" Collectively: Exploring the Mandela Effect in LLM-based Multi-Agent Systems31 Jan 2026
- 2026Yunjue Agent Tech Report: A Fully Reproducible, Zero-Start In-Situ Self-Evolving Agent System for Open-Ended Tasks26 Jan 2026
- 2026MAS-Orchestra: Understanding and Improving Multi-Agent Reasoning Through Holistic Orchestration and Controlled Benchmarks21 Jan 2026
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agents18 Jan 2026
- 2026Towards AGI A Pragmatic Approach Towards Self Evolving Agent15 Jan 2026
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Management28 Oct 2025
- 2025Inefficiencies of Meta Agents for Agent Design8 Oct 2025
- 2025On the Importance of Task Complexity in Evaluating LLM-Based Multi-Agent Systems5 Oct 2025
- 2025Stochastic Self-Organization in Multi-Agent Systems1 Oct 2025
- 2025MAS2: Self-Generative, Self-Configuring, Self-Rectifying Multi-Agent Systems29 Sep 2025
- 2025BrowseMaster: Towards Scalable Web Browsing via Tool-Augmented Programmatic Agent Pair12 Aug 2025
- 2025GenoMAS: A Multi-Agent Framework for Scientific Discovery via Code-Driven Gene Expression Analysis28 Jul 2025
- 2025SciMaster: Towards General-Purpose Scientific AI Agents, Part I. X-Master as Foundation: Can We Lead on Humanity's Last Exam?7 Jul 2025
- 2025MasHost Builds It All: Autonomous Multi-Agent System Directed by Reinforcement Learning10 Jun 2025
- 2025MermaidFlow: Redefining Agentic Workflow Generation via Safety-Constrained Evolutionary Programming29 May 2025
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agents29 May 2025
- 2025Multi-View Encoders for Performance Prediction in LLM-Based Agentic Workflows26 May 2025
- 2025Multi-Agent Collaboration via Evolving Orchestration26 May 2025
- 2025X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMs22 May 2025
- 2025MASLab: A Unified and Comprehensive Codebase for LLM-based Multi-Agent Systems22 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executors7 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 356
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025Multi-Agent Collaboration via Evolving Orchestrationcited by 108
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 103
- 2025X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMscited by 38
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executorscited by 22
- 2025MermaidFlow: Redefining Agentic Workflow Generation via Safety-Constrained Evolutionary Programmingcited by 16
- 2025BrowseMaster: Towards Scalable Web Browsing via Tool-Augmented Programmatic Agent Paircited by 16
- 2025MASLab: A Unified and Comprehensive Codebase for LLM-based Multi-Agent Systemscited by 14
- 2026Agent Primitives: Reusable Latent Building Blocks for Multi-Agent Systemscited by 14
- 2025Stochastic Self-Organization in Multi-Agent Systemscited by 9
- 2025GenoMAS: A Multi-Agent Framework for Scientific Discovery via Code-Driven Gene Expression Analysiscited by 8
12 most cited of 37 All 37 (JSON)
- 2026MAS-Gate: Unlocking Multi-Agent System Lifecycle via Node-Centric Quantification13 Oct 2026
- 2026CB-Orchestrator: Adaptive Workflow Optimization for LLM Agents via Contextual Bandits9 Oct 2026
- 2026Dynamic Harness Search: Building Multi-Agent Systems Per-Query via Prediction2 Oct 2026
- 2026Inherit-MAS: Test-Time Evolution of Multi-Agent Systems through Workflow and Execution Inheritance1 Oct 2026
- 2026Multi-Agent System Search via Active Substructure-aware Policy Optimization26 Sep 2026
- 2026Markets, Not Planners: Decentralized Orchestration of LLM Agents with Private Information24 Aug 2026
- 2026OptiMAS: Automatically Optimize Multi-Agent System22 Aug 2026
- 2026Skill-MAS: Evolving Meta-Skill for Automatic Multi-Agent Systems17 Jun 2026
- 2026FlowBank: Query-Adaptive Agentic Workflows Optimization through Precompute-and-Reuse9 Jun 2026
- 2026Response-Conditioned Parallel-to-Sequential Orchestration for Multi-Agent Systems15 May 2026
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systems14 May 2026
- 2026Reinforced Collaboration in Multi-Agent Flow Networks13 May 2026
12 newest of 37 All 37 (JSON)
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 50
- 2026Rethinking Failure Attribution in Multi-Agent Systems: A Multi-Perspective Benchmark and Evaluationcited by 24
- 2026Unifying Temporal and Structural Credit Assignment in LLM-Based Multi-Agent Prompt Optimizationcited by 3
- 2026Rethinking the Evaluation of Efficiency Methods for Multi-Agent Systemscited by 2
- 2026HyEvo: Self-Evolving Hybrid Agentic Workflows for Efficient Reasoningcited by 0
- 2026Beyond Solo and Consistency: Vindicating Multi-Agent Debate via Conditional Progressive Pruningcited by 0
- 2026Beyond Solo and Consistency: Vindicating Multi-Agent Debate via Conditional Progressive Pruning27 Sep 2026
- 2026Rethinking the Evaluation of Efficiency Methods for Multi-Agent Systems5 Sep 2026
- 2026Unifying Temporal and Structural Credit Assignment in LLM-Based Multi-Agent Prompt Optimization28 May 2026
- 2026Rethinking Failure Attribution in Multi-Agent Systems: A Multi-Perspective Benchmark and Evaluation26 Mar 2026
- 2026HyEvo: Self-Evolving Hybrid Agentic Workflows for Efficient Reasoning20 Mar 2026
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agents18 Jan 2026
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025SciMaster: Towards General-Purpose Scientific AI Agents, Part I. X-Master as Foundation: Can We Lead on Humanity's Last Exam?cited by 47
- 2026MAS-Orchestra: Understanding and Improving Multi-Agent Reasoning Through Holistic Orchestration and Controlled Benchmarkscited by 32
- 2026Yunjue Agent Tech Report: A Fully Reproducible, Zero-Start In-Situ Self-Evolving Agent System for Open-Ended Taskscited by 5
- 2026MetaAgent-X : Breaking the Ceiling of Automatic Multi-Agent Systems via End-to-End Reinforcement Learningcited by 2
- 2026Is Monitoring Enough? Strategic Agent Selection For Stealthy Attack in Multi-Agent Discussionscited by 0
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent Systemcited by 0
- 2026MetaAgent-X : Breaking the Ceiling of Automatic Multi-Agent Systems via End-to-End Reinforcement Learning14 May 2026
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent System7 May 2026
- 2026Is Monitoring Enough? Strategic Agent Selection For Stealthy Attack in Multi-Agent Discussions22 Mar 2026
- 2026Yunjue Agent Tech Report: A Fully Reproducible, Zero-Start In-Situ Self-Evolving Agent System for Open-Ended Tasks26 Jan 2026
- 2026MAS-Orchestra: Understanding and Improving Multi-Agent Reasoning Through Holistic Orchestration and Controlled Benchmarks21 Jan 2026
- 2025SciMaster: Towards General-Purpose Scientific AI Agents, Part I. X-Master as Foundation: Can We Lead on Humanity's Last Exam?7 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024A Survey on LLM-based Multi-Agent System: Recent Advances and New Frontiers in Application
- 2025MasRouter: Learning to Route LLMs for Multi-Agent Systems
- 2024MALT: Improving Reasoning with Multi-Agent LLM Training
- 2024BudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Tasks
- 2024Optima: Optimizing Effectiveness and Efficiency for LLM-Based Multi-Agent System
- 2024Enhancing the General Agent Capabilities of Low-Parameter LLMs through Tuning and Multi-Branch Reasoning
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challenges
- 2025Modeling Response Consistency in Multi-Agent LLM Systems: A Comparative Analysis of Shared and Separate Context Approaches