arXiv:2610.31709cs.SEOct 2026

Manuscript Offprint

arXiv:2610.31709

Mining the Design Space of Multi-Agent Workflows

Xavier Cadet, Junyan Cheng, Peter Chin, Kyle Richardson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Xavier Cadet α,∗^{\alpha,*} Junyan Cheng α,∗^{\alpha,*} Peter Chin α^{\alpha} Kyle Richardson β^{\beta}

α^{\alpha}Dartmouth College β^{\beta}Allen Institute for AI

∗^{*}Equal contribution.

{xavier.fjf.cadet,jc.th}@dartmouth.edu kyler@allenai.org

Website junyan.ch/apex-paper Code github.com/xcadet/apex

Abstract—Designing large language model (LLM) multi-agent systems (MAS) still relies on trial and error and informal “folk wisdom.” Manual studies test only a few communication structures or topologies (e.g., sequential, parallel, shared-memory, or debate), while automated optimizers discard search trajectories after selecting a task-specific workflow. We present a two-phase pipeline for mining reproducible design principles from workflow code and execution traces. We repurpose AFlow’s MCTS optimizer across six composable operators and 26 deterministically verified Enigmata tasks, retaining all intermediate rounds to build a corpus of 28,568 executable workflows. A sandboxed AutoResearch loop then mines orchestration code and prompt templates under an L0L_{0}-penalized validation objective and tests candidate principles on held-out searches. Across 300 feature-mining trials, we identify effects that persist on held-out searches across three levels of workflow design: workflows beginning with independent solvers and one-shot aggregation (STAR-first) perform worse ( Δ=−0.045\Delta = -0.045); persistent shared documents (SHAREDMEMORY) outperform debate ( Δ=+0.135\Delta = +0.135); and prompt specificity and placeholder-based context routing yield gains comparable to communication-structure selection ( Δ=+0.118\Delta = +0.118). More broadly, our pipeline and results show the feasibility of turning discarded search trajectories into a statistical testbed for discovering and validating multi-agent workflow design principles.

I. INTRODUCTION

Large Language Model (LLM)-based Multi-Agent Systems (MAS) have become a foundational tool for complex problem solving in many areas such as software engineering [29], economic forecasting [6, 9], and scientific discovery [21, 23]. In these systems, performance depends not only on the base LLM, but critically on the workflow architecture: how agents are connected, how intermediate state is routed, and how role-specific prompts are structured [19]. Yet, designing multi-agent workflows remains largely guided by manual trial-and-error and informal “folk wisdom” (e.g., “more agents improve accuracy” or “multi-agent debate improves reasoning”). This raises the question: Can workflow search traces be used to identify statistically reliable principles for multi-agent system design?

Recent studies have taken initial steps toward quantifying MAS design choices, examining agent-count scaling [34], load balancing in compressor-predictor pipelines [14], and canonical topologies [19]. However, two bottlenecks limit existing paradigms: (1) manual empirical studies evaluate only a handful of fixed, hand-crafted topologies (typically 3–5 patterns), leaving composed workflows and sub-topological prompt implementations unexamined; and (2) automated workflow optimizers such as AFlow [33] and ADAS [15] dynamically search over code and prompts, but discard over 95% of evaluated architectures to return a single task-specific optimum W∗W^{*}.

To bridge this gap, we introduce a two-phase empirical pipeline that transforms complete workflow-search trajectories into a controlled testbed for discovering design principles (Fig. 1). In the Sampling Phase, we repurpose the MCTS-based AFlow optimizer [33] to compose six workflow operators: SEQUENTIAL, STAR, SHAREDMEMORY, DEBATE, STARWITHCOORDINATOR, and DEBATEWITHMODERATOR. Rather than retaining only the final workflow, we collect all N = 20 evaluated workflows from each of K = 5 independent runs per condition. To limit confounding from external tools, specialized domain knowledge, and LLM-as-a-judge noise, we evaluate every workflow in a tool-free setting on 26 deterministically verified reasoning tasks from Enigmata [3]. This produces a corpus of 28,568 executable workflow-task-performance triplets.

In the Analysis Phase, we run an adapted AutoResearch loop [17] in a leakage-controlled sandbox with a strict search-level train/validation/test split. Across 300 trials, it mines features from orchestration code (graph.py) and role-prompt templates (prompt.py) under an L0L_{0}-regularized validation R2R^{2} objective; we then test 70 candidate contrasts on held-out searches.

Our analysis identifies three effects that persist on held-out searches, spanning progressively finer levels of workflow specification: (1) Entry-Point Topology: workflows beginning with STAR fan-out—in which parallel workers solve independently before a one-shot aggregator combines their outputs—perform worse than alternative entry structures (median Δ=−0.045\Delta = -0.045), corroborating Kim et al. [19]'s finding that uncoordinated agents can amplify errors; (2) Communication State: SHARED-MEMORY, in which workers sequentially update a persistent shared document [13], outperforms conversational message passing ( Δ=+0.135\Delta = +0.135); and (3) Prompt Structure: more specific prompt templates and named placeholders that route context lift

∗^{*}Equal contribution. XC: system implementation & operator set, large-scale experiments, data analysis, and empirical write-up; JC: project conception, theoretical framework & instruments, experimental design, and theoretical write-up.

Figure

Sampling phase

Analysis phase

Fig. 1. Overview of our two-phase pipeline. (1) Sample: for each verified task bundle T, an AFlow MCTS search proposes and evaluates workflows; optimizers keep only the final W∗W^*, whereas we keep every evaluated node ( N=20N=20 rounds ×\times K=5K=5 runs, failures included). (2) Build a corpus: each of the 28,568 entries is a triplet (W,T,m)(W, T, m), an executable workflow W (orchestration code graph.py plus its prompt templates prompt.py), a task bundle T, and verified metrics m (score, cost), split into train/val/test at the level of whole searches. (3) Mine features: a sandboxed AutoResearch loop proposes code and prompt features a=ϕ(W)\boldsymbol{a} = \phi(W) (e.g., the entry operator or the number of {placeholders}), fits a regressor κ\kappa from (a,t)(\boldsymbol{a}, t) to m, and scores candidates by L0L_0-penalized validation R2R^2. (4) Verify principles: surviving features are tested on held-out searches as score contrasts Δ\Delta between workflows that have vs. lack the feature.

validation R2R^{2} from 0.521 with graph features alone to 0.638, with held-out gains ( Δ=+0.118\Delta = +0.118) comparable to choosing the overall communication or orchestration topology.

Taken together, our work makes the follow three concrete contributions 1^{1}:

  1. Full-Trace Design-Space Mining. We introduce a pipeline that combines complete MCTS search trajectories with deterministic evaluation to mine code- and prompt-level design principles ( §\S III, §\S IV).

  2. Large-Scale Workflow Corpus. We construct a corpus of 28,568 executable multi-agent workflows covering 26 verifiable reasoning tasks, with train/validation/test splits defined at the level of complete searches ( §\S V-A).

  3. Multi-Granularity Design Evidence. We identify and validate held-out effects across three levels of workflow design: entry-point topology, communication state, and prompt structure ( §\S V-B).

References (33)