Heterogeneous Swarms: Jointly Optimizing Model Roles and Weights for Multi-LLM Systems
Not on the map. Why?
Abstract (arXiv)
We propose Heterogeneous Swarms, an algorithm to design multi-LLM systems by jointly optimizing model roles and weights. We represent multi-LLM systems as directed acyclic graphs (DAGs) of LLMs with topological message passing for collaborative generation. Given a pool of LLM experts and a utility function, Heterogeneous Swarms employs two iterative steps: role-step and weight-step. For role-step, we interpret model roles as learning a DAG that specifies the flow of inputs and outputs between LLMs. Starting from a swarm of random continuous adjacency matrices, we decode them into discrete DAGs, call the LLMs in topological order, evaluate on the utility function (e.g. accuracy on a task), and optimize the adjacency matrices with particle swarm optimization based on the utility score. For weight-step, we assess the contribution of individual LLMs in the multi-LLM systems and optimize model weights with swarm intelligence. We propose JFK-score to quantify the individual contribution of each LLM in the best-found DAG of the role-step, then optimize model weights with particle swarm optimization based on the JFK-score. Experiments demonstrate that Heterogeneous Swarms outperforms 15 role- and/or weight-based baselines by 18.5% on average across 12 tasks. Further analysis reveals that Heterogeneous Swarms discovers multi-LLM systems with heterogeneous model roles and substantial collaborative gains, and benefits from the diversity of language models.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 99 of its 120 references that are in the map. First posted on arXiv 6 Feb 2025.
Builds on
99 of 120 references.
References · 99
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Mistral 7Bcited by 3,065
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
38 more
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 995
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2023AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviorscited by 580
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
- 2024Mixture-of-Agents Enhances Large Language Model Capabilitiescited by 420
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agentscited by 406
- 2024AFlow: Automating Agentic Workflow Generationcited by 395
- 2024Automated Design of Agentic Systemscited by 360
- 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 359
- 2023MLAgentBench: Evaluating Language Agents on Machine Learning Experimentationcited by 339
- 2024AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agentscited by 319
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 316
- 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
- 2023Can Language Models Solve Graph Problems in Natural Language?cited by 249
- 2024Scaling Large Language Model-based Multi-Agent Collaborationcited by 235
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 227
- 2024RouterBench: A Benchmark for Multi-LLM Routing Systemcited by 222
- 2024Evolutionary Optimization of Model Merging Recipescited by 204
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2024Mobile-Agent-v2: Mobile Device Operation Assistant with Effective Navigation via Multi-Agent Collaborationcited by 187
- 2024Don't Hallucinate, Abstain: Identifying LLM Knowledge Gaps via Multi-LLM Collaborationcited by 176
- 2024Recursive Introspection: Teaching Language Model Agents How to Self-Improvecited by 162
- 2023Language Agents with Reinforcement Learning for Strategic Play in the Werewolf Gamecited by 148
- 2024AgentSquare: Automatic LLM Agent Search in Modular Design Spacecited by 141
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 135
- 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 134
- 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 132
- 2024Cut the Crap: An Economical Communication Pipeline for LLM-based Multi-Agent Systemscited by 129
50 most cited of 99 All 99 (JSON)
Built on by
Citing papers per year: 2025: 10; 2026: 12.
22 papers.
Sort:
By area:
- 2025FlowReasoner: Reinforcing Query-Level Meta-Agentscited by 56
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 49
- 2025How to Train a Leader: Hierarchical Reasoning in Multi-Agent LLMscited by 11
- 2025S-DAG: A Subject-Based Directed Acyclic Graph for Multi-Agent Heterogeneous Reasoningcited by 8
- 2026Learning Decentralized LLM Collaboration with Multi-Agent Actor Criticcited by 7
- 2026FlowSteer: Prompt-Only Workflow Steering Exposes Planning-Time Vulnerabilities in Multi-Agent LLM Systemscited by 7
- 2026Among Us: Measuring and Mitigating Malicious Contributions in Model Collaboration Systemscited by 6
- 2026MoCo: A One-Stop Shop for Model Collaboration Researchcited by 5
- 2025Cross-Task Experiential Learning on LLM-based Multi-Agent Collaborationcited by 4
- 2025Generalizing Test-time Compute-optimal Scaling as an Optimizable Graphcited by 4
- 2025VeriTrail: Closed-Domain Hallucination Detection with Traceabilitycited by 3
- 2025AgentBalance: Backbone-then-Topology Design for Cost-Effective Multi-Agent Systems under Budget Constraintscited by 3
10 more
- 2025Data Swarms: Optimizable Generation of Synthetic Evaluation Datacited by 2
- 2026No Single Best Model for Diversity: Learning a Router for Sample Diversitycited by 2
- 2026Scaling Participation in Modular AI Systemscited by 2
- 2026Decomposing Evolutionary Mixture-of-LoRA Architectures: The Routing Lever, the Lifecycle Penalty, and a Substrate-Conditional Boundarycited by 1
- 2026SwarmBench: Can Large Language Models Act as Agent Swarm Orchestrators?cited by 1
- 2025SERFLOW: A Cross-Service Cost Optimization Framework for SLO-Aware Dynamic ML Inferencecited by 0
- 2026Swarm-Driven Multi-Agent Reasoning for Smart City Securitycited by 0
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMscited by 0
- 2026From Solo to Social Learning: Characterizing Recursive Social Improvement in LLMscited by 0
- 2026Multi-LLM Collaborative Alignment via Stackelberg Gamescited by 0
- 2026Multi-LLM Collaborative Alignment via Stackelberg Games30 Sep 2026
- 2026From Solo to Social Learning: Characterizing Recursive Social Improvement in LLMs29 Sep 2026
- 2026SwarmBench: Can Large Language Models Act as Agent Swarm Orchestrators?31 Aug 2026
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMs17 Aug 2026
- 2026Swarm-Driven Multi-Agent Reasoning for Smart City Security3 Jul 2026
- 2026Scaling Participation in Modular AI Systems5 Jun 2026
- 2026FlowSteer: Prompt-Only Workflow Steering Exposes Planning-Time Vulnerabilities in Multi-Agent LLM Systems12 May 2026
- 2026Decomposing Evolutionary Mixture-of-LoRA Architectures: The Routing Lever, the Lifecycle Penalty, and a Substrate-Conditional Boundary11 May 2026
- 2026No Single Best Model for Diversity: Learning a Router for Sample Diversity2 Apr 2026
- 2026Among Us: Measuring and Mitigating Malicious Contributions in Model Collaboration Systems5 Feb 2026
- 2026Learning Decentralized LLM Collaboration with Multi-Agent Actor Critic29 Jan 2026
- 2026MoCo: A One-Stop Shop for Model Collaboration Research29 Jan 2026
10 more
- 2025AgentBalance: Backbone-then-Topology Design for Cost-Effective Multi-Agent Systems under Budget Constraints12 Dec 2025
- 2025S-DAG: A Subject-Based Directed Acyclic Graph for Multi-Agent Heterogeneous Reasoning10 Nov 2025
- 2025SERFLOW: A Cross-Service Cost Optimization Framework for SLO-Aware Dynamic ML Inference31 Oct 2025
- 2025Generalizing Test-time Compute-optimal Scaling as an Optimizable Graph29 Oct 2025
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directions23 Sep 2025
- 2025How to Train a Leader: Hierarchical Reasoning in Multi-Agent LLMs11 Jul 2025
- 2025Data Swarms: Optimizable Generation of Synthetic Evaluation Data31 May 2025
- 2025Cross-Task Experiential Learning on LLM-based Multi-Agent Collaboration29 May 2025
- 2025VeriTrail: Closed-Domain Hallucination Detection with Traceability27 May 2025
- 2025FlowReasoner: Reinforcing Query-Level Meta-Agents21 Apr 2025
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 49
- 2026Learning Decentralized LLM Collaboration with Multi-Agent Actor Criticcited by 7
- 2026FlowSteer: Prompt-Only Workflow Steering Exposes Planning-Time Vulnerabilities in Multi-Agent LLM Systemscited by 7
- 2026Among Us: Measuring and Mitigating Malicious Contributions in Model Collaboration Systemscited by 6
- 2025Cross-Task Experiential Learning on LLM-based Multi-Agent Collaborationcited by 4
- 2025AgentBalance: Backbone-then-Topology Design for Cost-Effective Multi-Agent Systems under Budget Constraintscited by 3
- 2026SwarmBench: Can Large Language Models Act as Agent Swarm Orchestrators?cited by 1
- 2026Swarm-Driven Multi-Agent Reasoning for Smart City Securitycited by 0
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMscited by 0
- 2026From Solo to Social Learning: Characterizing Recursive Social Improvement in LLMscited by 0
- 2026From Solo to Social Learning: Characterizing Recursive Social Improvement in LLMs29 Sep 2026
- 2026SwarmBench: Can Large Language Models Act as Agent Swarm Orchestrators?31 Aug 2026
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMs17 Aug 2026
- 2026Swarm-Driven Multi-Agent Reasoning for Smart City Security3 Jul 2026
- 2026FlowSteer: Prompt-Only Workflow Steering Exposes Planning-Time Vulnerabilities in Multi-Agent LLM Systems12 May 2026
- 2026Among Us: Measuring and Mitigating Malicious Contributions in Model Collaboration Systems5 Feb 2026
- 2026Learning Decentralized LLM Collaboration with Multi-Agent Actor Critic29 Jan 2026
- 2025AgentBalance: Backbone-then-Topology Design for Cost-Effective Multi-Agent Systems under Budget Constraints12 Dec 2025
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directions23 Sep 2025
- 2025Cross-Task Experiential Learning on LLM-based Multi-Agent Collaboration29 May 2025
- 2026Multi-LLM Collaborative Alignment via Stackelberg Gamescited by 0
- 2026Multi-LLM Collaborative Alignment via Stackelberg Games30 Sep 2026
- 2025FlowReasoner: Reinforcing Query-Level Meta-Agentscited by 56
- 2026MoCo: A One-Stop Shop for Model Collaboration Researchcited by 5
- 2025VeriTrail: Closed-Domain Hallucination Detection with Traceabilitycited by 3
- 2025Data Swarms: Optimizable Generation of Synthetic Evaluation Datacited by 2
- 2026No Single Best Model for Diversity: Learning a Router for Sample Diversitycited by 2
- 2026Scaling Participation in Modular AI Systemscited by 2
- 2026Decomposing Evolutionary Mixture-of-LoRA Architectures: The Routing Lever, the Lifecycle Penalty, and a Substrate-Conditional Boundarycited by 1
- 2025SERFLOW: A Cross-Service Cost Optimization Framework for SLO-Aware Dynamic ML Inferencecited by 0
- 2026Scaling Participation in Modular AI Systems5 Jun 2026
- 2026Decomposing Evolutionary Mixture-of-LoRA Architectures: The Routing Lever, the Lifecycle Penalty, and a Substrate-Conditional Boundary11 May 2026
- 2026No Single Best Model for Diversity: Learning a Router for Sample Diversity2 Apr 2026
- 2026MoCo: A One-Stop Shop for Model Collaboration Research29 Jan 2026
- 2025SERFLOW: A Cross-Service Cost Optimization Framework for SLO-Aware Dynamic ML Inference31 Oct 2025
- 2025Data Swarms: Optimizable Generation of Synthetic Evaluation Data31 May 2025
- 2025VeriTrail: Closed-Domain Hallucination Detection with Traceability27 May 2025
- 2025FlowReasoner: Reinforcing Query-Level Meta-Agents21 Apr 2025