Mining the Design Space of Multi-Agent Workflows
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 -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 (); persistent shared documents (SharedMemory) outperform debate (); and prompt specificity and placeholder-based context routing yield gains comparable to communication-structure selection (). 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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Comments
- 21 pages, including appendices. Equal contribution: Xavier Cadet and Junyan Cheng. Website: https://junyan.ch/apex-paper/
Related papers
CodeMeepo: A Multi-Agent Workflow for Repository-Level Code Migration and Optimization
Shared title terminologycs.SEFarzad Habibi, Changrong Wu, Jinzhou Jiang et al.
Multi-Agent Coordinated Method-Level Refactoring of Rust Code
Shared title terminologycs.SEYijian Zheng, Yi Zhang, Juyuan Zhang et al.
Mind the Gap: A Deployed Multi-Agent System for Documentation Maintenance
Shared title terminologycs.SELorenzo Masoero
MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation
Shared title terminologycs.SEJie Wu, Haoran Ma, Shisong Tang et al.
When Single Agent Is Enough: Rethinking Multi-Agent Systems for Automated Code Review
Shared title terminologycs.SEJiawei Li, Hoa Khanh Dam, Iftekhar Ahmed
ArchGuard-APR: Architecture-Constraint-Aware Multi-Agent Program Repair Using Repository Graphs and Execution Feedback
Shared title terminologycs.SEMajid Feiz Deilami