PreprintCited by 8Multi-Agent Systems and NegotiationNatural Language Processing TechniquesAI-based Problem Solving and Planning

Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies

Open access
Zhou, Han, Wan, Xingchen, Sun, Ruoxi, Palangi, Hamid, Iqbal, Shariq, Vulić, Ivan, Korhonen, Anna, Arık, Sercan Ö.·2025·arXiv

Abstract

Large language models, employed as multiple agents that interact and collaborate with each other, have excelled at solving complex tasks. The agents are programmed with prompts that declare their functionality, along with the topologies that orchestrate interactions across agents. Designing prompts and topologies for multi-agent systems (MAS) is inherently complex. To automate the entire design process, we first conduct an in-depth analysis of the design space aiming to understand the factors behind building effective MAS. We reveal that prompts together with topologies play critical roles in enabling more effective MAS design. Based on the insights, we propose Multi-Agent System Search (MASS), a MAS optimization framework that efficiently exploits the complex MAS design space by interleaving its optimization stages, from local to global, from prompts to topologies, over three stages: 1) block-level (local) prompt optimization; 2) workflow topology optimization; 3) workflow-level (global) prompt optimization, where each stage is conditioned on the iteratively optimized prompts/topologies from former stages. We show that MASS-optimized multi-agent systems outperform a spectrum of existing alternatives by a substantial margin. Based on the MASS-found systems, we finally propose design principles behind building effective multi-agent systems.

AI snapshot

Written from the paper’s full text.

TL;DR

Mass is a multi-stage framework that interleaves prompt optimization and topology optimization for LLM-based multi-agent systems, searching a pruned design space. It outperforms manual and automated MAS baselines across reasoning, multi-hop/long-context, and coding tasks.

Key findings

  • Mass-optimized MAS averaged 78.8% on Gemini 1.5 Pro and 74.3% on Gemini 1.5 Flash across eight tasks, versus CoT 65.3/60.9, Self-Consistency 68.2/63.5, Self-Refine 66.9/63.5, Multi-Agent Debate 70.3/65.9, and ADAS 69.7/64.8 (Table 1).
  • Stage ablation on Gemini 1.5 Pro: CoT 63.5, single-agent APO 68.0, block-level prompt optimization 74.2, topology optimization 77.3, workflow-level prompt optimization 78.8; the paper reports ~6% gain from block-level over single-agent APO, ~3% from topology optimization, and ~2% from workflow-level prompt optimization.
  • Prompt optimization is token-effective: prompt-optimized agents outperform scaling with self-consistency, self-refine, and multi-agent debate at matched token cost on MATH (Fig. 2); not all topologies help—on HotpotQA only debate gave ~3% gain while others failed or degraded.
  • Design principles: optimize individual agents before composing them; compose influential topologies; model inter-agent interdependence via workflow-level joint optimization.

Methods

  • Three-stage Mass: (1) block-level local prompt optimization per topology block; (2) workflow topology optimization over a pruned influence-weighted space using rejection sampling; (3) workflow-level global prompt optimization on the best-found topology.
  • Uses MIPRO prompt optimizer (instructions + demonstrations via Bayesian surrogate), 3 bootstrapped demos, 10 instruction candidates, 10 rounds per agent; searches 10 topologies via rejection sampling; each topology evaluated 3 times on validation; temperature 0.7, max output 4096, Softmax t=0.05; max 10 agents.
  • Evaluated on MATH, DROP, HotpotQA, MuSiQue, 2WikiMQA, MBPP, HumanEval, and LiveCodeBench test-output prediction; Gemini 1.5 Pro/Flash primary, Claude 3.5 Sonnet validation; baselines CoT, SC, Self-Refine, Multi-Agent Debate, ADAS, AFlow.

Limitations

  • Stated: the topology space covers most effective MAS designs but other topologies may improve performance; the debate topology is fully connected and sparse communication pruning may improve efficiency; more advanced search algorithms (e.g., Bayes optimizer) may improve sample efficiency; prompt optimizer sample efficiency may benefit from textual feedback from error logs.
  • Stated/evident: the AFlow comparison is not completely fair because its meta-prompt only works properly with Claude 3.5 Sonnet, so AFlow results are treated as reference only; experiments use randomly sampled subsets of original validation/test splits to save computation.
  • Evident: evaluation is limited to Gemini 1.5 and Claude 3.5 Sonnet backbones and eight tasks; no broader model or task coverage is reported.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2502.02533

Cites

0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

7 of 15 cited sources checked · 4 supported · 0 flagged · accuracy not yet measured

  • Findingcitation

    Similar trends are observed in the test-output-prediction subtask of LiveCodeBench.

    “We again observe similar trends in the test-output-prediction subtask of LiveCodeBench (Jain et al., 2024).”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites Jain et al., 2024 source
  • Premisecitation

    Agents in debate can elicit more truthful predictions than single-agent prediction.

    “Agents in debate can elicit more truthful predictions than single-agent prediction (Du et al., 2024;Liang et al., 2024)”
    Quote in the paperNot a substantial claim1 of 2 sources checked
    • cites Du et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Liang et al., 2024 source
  • Premisecitation

    This type of multi-agent system typically outperforms its single-agent counterpart by involving more diverse agentic perspectives or role profiles.

    “This type of multi-agent system (MAS) typically outperforms its singleagent counterpart by involving more diverse agentic perspectives or role profiles, such as agents as verifiers (Shinn et al., 2024) and multi-agent debate (Qian et al., 2024;Wang et al., 2024b).”
    Quote in the paperSubstantial claim1 of 3 sources checked
    • cites Shinn et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Qian et al., 2024 source

      The Introduction (p. 2) says task-oriented multi-agent collaboration often surpasses standalone intelligence, and Network Construction (p. 3) describes distinct critic and actor roles. The paper studies collaborative critique and refinement, however; it does not identify MACNET as a multi-agent debate system, the specific example for which this citation is offered. (LLM, conf=0.83)

      Experimental — accuracy not yet measured
    • cites Wang et al., 2024b

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Interpretationcitation

    AFlow's performance is attributable to its expansion phase generating new nodes based on an error log contrasting predictions with ground truth, providing implicit textual gradients to reflect on formatting errors in prompt design.

    “We attribute the performance of AFlow to: 1) its 'expansion' phase that generates new nodes based on an error log that contrasts the predictions with the ground truth, which provides implicit textual gradients (Pryzant et al., 2023) to reflect on any formatting errors in prompt design;”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites Pryzant et al., 2023 source
  • Findingown data

    Mass-optimized multi-agent systems outperform existing manually-crafted MAS baselines and automatically-generated alternatives by a substantial margin across reasoning, multi-hop understanding, and code generation tasks.

    “We show that M as s-optimized multi-agent systems outperform a spectrum of existing alternatives by a substantial margin.”
    • Also stated in: § 1. Introduction · boosted
      “By optimizing over the identified influential components, M as s yields optimized MAS that achieves state-of-the-art performance, outperforming existing manually-crafted MAS baselines and automatically-generated alternatives, by a substantial margin, demonstrated across an extensive selection of tasks, including reasoning, multi-hop understanding, and code generation.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim. 13
  • May combine two claims. 12
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationcitation

    Mass can automatically search the best topology among the aforementioned spaces.

    “Recent agent topology extends beyond the above connections (Qian et al., 2024;Wang et al., 2024b), and Mass can automatically search the best topology among the aforementioned spaces.”
    Quote in the paperNot a substantial claim1 of 2 sources checked
    • cites Qian et al., 2024 source

      Section 2.1 (p. 3) describes chain, tree, and graph topology spaces, and Section 3.2 (p. 7) suggests automated searching as a possible way to find an effective configuration. But the paper does not identify Mass or say that it automatically searches those spaces for the best topology; its automated search is a suggested strategy, not a reported capability. (LLM, conf=0.82)

      Experimental — accuracy not yet measured
    • cites Wang et al., 2024b

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • Rests on an assumption: The former three forms of agents (Aggregate, Reflect, Debate) represent the vast majority of agent topologies constructed as multiple parallel, serial, and mixture of agents.
  • May combine two claims.

    Findingcitation

    In HotpotQA, only debate brings 3% gain while other topologies fail to improve or even degrade systematic performance.

    “It is noticeable that not all topologies are beneficial to MAS design, whereas positively influenced topologies only represent a small fraction of the overall set, such that, in HotpotQA (Yang et al., 2018), only debate brings 3% gain while others fail to improve or even degrade systematic performance.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites Yang et al., 2018 source
  • May combine two claims.

    Premiseown data

    Neither DyLAN nor Archon has taken the important prompt space into account.

    “Neither of them has taken the important prompt space into account, where we demonstrated the importance of prompt optimization in Sec.2.2.”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites Liu et al., 2024b

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Saad-Falcon et al., 2024 source

      Section 3.3 explicitly says Archon leaves alternative component prompts outside its architecture search space, supporting the claim if “prompt space” means prompt optimization. The paper does use prompts for its components (Section 3.1), however, and the cited passage does not establish whether DyLAN optimizes prompts. The citing sentence’s claim about both systems is therefore only partially supported. (LLM, conf=0.87)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingown data

    Applying self-consistency on top of the prompt-optimized agent improves scaling performance on token cost, whereas standard approaches in scaling the number of agents (SC, Reflect) saturate much earlier.

    “Furthermore, by applying self-consistency on top of the prompt-optimized agent, we observe an improved scaling performance on the token cost, whereas standard approaches in scaling the number of agents (e.g.SC, or Reflect) saturate much earlier.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Mass achieves average performance of 78.8% on Gemini 1.5 Pro and 74.3% on Gemini 1.5 Flash.

    “M as s leads to high-performing MAS: 78.8% and 74.3% on average on Gemini 1.5 Pro and Flash, respectively, where we observe consistent improvements on Claude 3.5 Sonnet as reported in Table 4.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: The proposed topology search space covers the vast majority of effective multi-agent system designs.
  • May combine two claims.

    Findingnone given

    The ADAS meta-agent keeps proposing complex topologies without optimizing prompt design.

    “The meta-agent keeps proposing complex topologies but without optimizing the prompt design.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Findingnone given

    The meta-prompt of AFlow only works properly with Claude 3.5 Sonnet.

    “We note that the meta-prompt of AFlow * only works properly with Claude 3.5 Sonnet.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    The optimization starts from a zero-shot CoT agent, and Mass in Stage (1) identifies the high-performing topology in debate with its optimized prompt.

    “The optimization starts from a zero-shot CoT agent, and soon Mass in Stage (1) identifies the high-performing topology in debate with its optimized prompt.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    Mass successfully recovers performance and brings significant improvements over the initial agent on Claude 3.5 Sonnet.

    “As we transfer the prompt template for each agent from Gemini to Claude, it is noticeable that the basic topology on some tasks may result in severe degradation of performance, and Mass successfully recovers the performance and brings significant improvements over the initial agent.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationreasoning

    In MAS, when sensitive agents are cascaded, the compounding effect due to prompt sensitivity may be amplified.

    “In MAS, when sensitive agents are cascaded, the compounding effect due to prompt sensitivity may be amplified.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    The mean and standard deviation are reported for all results with 3 runs of evaluations.

    “We report the mean and standard deviation for all results with 3 runs of evaluations.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    AFlow lacks a phase of prompt optimization to optimize its pre-defined operators properly, resulting in under-performance for MAS search results at MATH and MuSiQue.

    “Though AFlow draws similar inspirations on the importance of search space design as M as s, it still lacks a phase of prompt optimization to optimize its pre-defined operators properly, resulting in under-performance for MAS search results at MATH and MuSiQue.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Premisereasoning

    Crafting an effective topology might demand a substantial amount of manual experimentation, based on trial and error.

    “Together with the prompt design, crafting an effective topology might demand a substantial amount of manual experimentation, based on trial and error.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Premisereasoning

    The problem complexity is exacerbated by the overall combinatorial search space, over not only the unbounded space of prompt design but also the design decisions of what agent to integrate into the topology.

    “The problem complexity is exacerbated by the overall combinatorial search space, over not only the unbounded space of prompt design but also the design decisions of what agent to integrate into the topology.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Interpretationreasoning

    Stage 1 (block-level prompt optimization) is a critical stage that guarantees follow-up topology optimization is searching in an effective space, composing well-performing agents instead of suffering from compounding impact from ill-formed agents with manual prompts.

    “It is important that though Stage (1) serves as the warm-up stage per building block, it is still a critical stage that guarantees the follow-up topology optimization is searching in an effective space, composing well-performing agents instead of suffering from the compounding impact from any ill-formed agents with manual prompts.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    The number of agents in inference for all methods is below 10.

    “Number of agents in inference for all methods are below 10.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    Including decremental building blocks may not only result in higher search complexity but also degrade performance.

    “It highlights the importance of searching in the influential set of search space, whereas including decremental building blocks may not only result in higher search complexity but also degrade the performance.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S2 (checkable).

    Premisereasoning

    There is still a gap in understanding of what matters most regarding improved MAS performance.

    “Although recent research has explored automating various aspects of agentic designs, there is still a gap in understanding of what matters most regarding improved MAS performance.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Interpretationreasoning

    Workflow-level prompt optimization acts as an adaptation or fine-tuning process, ensuring prompts are tailored for orchestration within the MAS and that interdependence between agents is optimized appropriately.

    “It is worth noting that although prompts were optimized at the individual level in Stage (1), this stage acts as an adaptation or fine-tuning process, ensuring that prompts are tailored for orchestration within the MAS and that the interdependence between agents is optimized appropriately.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    Each topology is evaluated on the validation set 3 times to stabilize the prediction.

    “Along with topology optimization, each topology is evaluated on the validation set 3 times to stabilize the prediction.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given

    All baselines are fairly compared by limiting the maximum number of agents to 10.

    “We fairly compare all baselines by limiting the maximum number of agents to 10.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S2 (checkable), S4 (based).

    Premisereasoning

    The interplay between multiple design spaces, including prompts and topologies, remains unclear.

    “However, the interplay between multiple design spaces, including prompts and topologies, remains unclear.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data

    Both prompt optimization beforehand and search space pruning are critical for effective search space exploration.

    “Fig. 5 (right) shows that both of them are critical for effective search space exploration.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationown data

    The optimization trajectory of Mass highlights the importance of optimizing in an effective design space, where interleaved optimization further resolves complexity with more consecutive rewards.

    “Overall, the optimization trajectory of M as s highlights the importance of optimizing in an effective design space, where interleaved optimization further resolves the complexity with more consecutive rewards.”
    Quote in the paperSubstantial claim
24 of 24
  • The paper relies on this without support.

    The former three forms of agents (Aggregate, Reflect, Debate) represent the vast majority of agent topologies constructed as multiple parallel, serial, and mixture of agents.

    “While the former three forms of agents represent the vast majority of agent topologies constructed as multiple parallel, serial, and mixture of agents, more versatile definitions of agents can be inserted into the MAS design space.”
  • The paper relies on this without support.

    The proposed topology search space covers the vast majority of effective multi-agent system designs.

    “Though our proposed topology space has covered the vast majority of effective MAS designs, including serial, parallel, and mixture of connections, it is still likely that incorporating other topologies may further improve the final performance of M as s, which is complementary to the development of M as s.”
  • The paper relies on this without support.

    The design principles extracted from Mass-optimized systems generalize to future LLM-based multi-agent systems.

    “Finally, based on the optimized systems discovered by Mass, we extract valuable design principles to guide the development of future effective LLM-based MAS.”
3 of 3

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Topology activation reverses the stated selection probabilities

    Major

    With u uniformly distributed between 0 and 1, the rule u > p a activates a topology with probability 1 − p a. Thus, a higher stated selection probability makes an influential topology less likely to be activated, contrary to the paper's stated intent.

  • Debate baseline exceeds the stated below-10-agent limit

    Minor

    The paper says every method uses fewer than 10 agents during inference, but its baseline specification explicitly counts 10 agents for Multi-Agent Debate.

2 of 2

Cites

The publisher hasn’t deposited this paper’s reference list.

Research works printed but not linked: 7

  1. Chen, R. Aksitov, U. Alon, J. Ren, K. Xiao, P. Yin, S. Prakash, C. Sutton, X. Wang, and D. Zhou. Universal self-consistency for large language models. In ICML 2024 Workshop on In-Context Learning, 2024c. URL https://openreview.net/forum?id=LjsjHF7nAN.
  2. Y. Du, S. Li, A. Torralba, J. B. Tenenbaum, and I. Mordatch. Improving factuality and reasoning in language models through multiagent debate. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024. URL https: //openreview.net/forum?id=zj7YuTE4t8.
  3. O. Khattab, A. Singhvi, P. Maheshwari, Z. Zhang, K. Santhanam, S. V. A, S. Haq, A. Sharma, T. T. Joshi, H. Moazam, H. Miller, M. Zaharia, and C. Potts. DSPy: Compiling declarative language model calls into state-of-the-art pipelines. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=sY5N0zY5Od.
  4. P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W.-t. Yih, T. Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33:9459-9474, 2020.
  5. Z. Liu, Y. Zhang, P. Li, Y. Liu, and D. Yang. A dynamic LLM-powered agent network for task- oriented agent collaboration. In First Conference on Language Modeling, 2024b. URL https: //openreview.net/forum?id=XII0Wp1XA9.
  6. X. Wang, J. Wei, D. Schuurmans, Q. V. Le, E. H. Chi, S. Narang, A. Chowdhery, and D. Zhou. Self- consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id= 1PL1NIMMrw.
  7. S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. R. Narasimhan, and Y. Cao. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=WE_vluYUL-X.

Cited by

Sorted by citations

Authors
Zhou, H., Wan, X., Sun, R., Palangi, H., Iqbal, S., Vulić, I., Korhonen, A., & Arık, S. Ö.
Affiliations
University of Cambridge (GB)
Venue
arXiv
Publisher
arXiv
Published
2025
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4407186876
Cited by
0
References
0
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Multi-Agent Systems and Negotiation
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › AI-based Problem Solving and Planning
Keywords
multi-agent systems, large language models, prompt optimization, agent cooperation, design space exploration

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-24.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-24.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review