Manuscript Offprint

arXiv:2610.07860

WorkflowOps: Learning Agent Collaboration Priors for Multi-Agent Workflow Orchestration

Qi Cheng, Shengyu Chen, Wei Cheng, Zhengzhang Chen, Xiaowei Jia, Haoyu Wang, Haifeng Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multi-agent systems are increasingly deployed for complex knowledge work, yet their orchestration layers remain largely memoryless: each new task is decomposed, assigned, and executed from scratch with no benefit from prior successful executions. We present WORKFLOWOps, a multi-agent workflow orchestration framework that learns agent collaboration priors from historical workflows and expands its agent pool on demand to cover new capability requirements. Our approach introduces three coupled mechanisms. First, a transition probability matrix captures pairwise agent collaboration frequencies from past workflows and applies them as soft guidance during DAG workflow construction through intra-layer ordering optimization, probability-thresholded edge suggestion, and transitive reduction for parallelism maximization. Second, a sufficiency-driven agent creation loop detects capability gaps via semantic matching scores, generates specialized agents through an LLM, and simultaneously injects them into the collaboration matrix, so that newly created agents are immediately usable with predicted collaboration priors. Third, a layered semantic matching strategy uses pre-trained sentence embeddings for fast, deterministic capability matching as a first pass, invoking LLM verification only for low-confidence cases, thereby reducing LLM routing calls by over 80% compared to pure-LLM approaches. We formalize the workflow construction problem as constrained optimization over a dependency-valid DAG guided by Markov collaboration priors and show that even lightweight frequency-based statistics, without any training, provide effective orchestration guidance. Experiments on mixed code, math, and question-answering suites show that WORKFLOWOps improves end-to-end pass rates over recent workflow-construction baselines, with the largest gains on structured, decomposable tasks where past agent handoff patterns transfer.

1 Introduction

Large language model (LLM) based multi-agent systems have rapidly evolved from research prototypes into practical frameworks for complex knowledge-work tasks. Systems such as AutoGen (Wu et al. 2024), CrewAI (CrewAI 2024), and LangGraph (LangChain 2024) allow developers to compose specialized agents into collaborative workflows for tasks such as research synthesis, software engineering, compliance analysis, and business planning. As these systems are applied to increasingly complex and recurring tasks, the orchestration layer—how one task is decomposed, how subtasks are assigned to agents, how dependencies are structured, and how the resulting workflow is executed—has become a central bottleneck. Reconstructing a workflow from scratch for every query increases API cost, latency, and the risk of error accumulation, even when similar workflows have succeeded before.

The central limitation of many current orchestration pipelines is the lack of persistent orchestration state: workflow-level collaboration priors, evolving capability coverage, and low-cost capability matching are rarely carried across tasks. Historical workflow traces expose recurring handoffs, capability gaps, and matching patterns that can be reused as soft guidance rather than hard constraints. Recent work improves orchestration adaptivity through topology selection, dynamic coordination, learned optimization, routing, and sub-agent creation (authors 2026a,c,d; Yue et al. 2025; Zhang et al. 2026a; authors 2026b). However, these threads are typically studied separately: some methods recompute decisions at task time, some require task-specific training, and others create agents without integrating them into a persistent collaboration model.

We introduce WORKFLOWOps, a history-conditioned orchestration framework that maintains persistent state through a collaboration-prior matrix, an evolving agent pool, and a semantic capability index. The system uses historical or bootstrapped successful workflow traces as soft guidance for approximate constrained optimization over dependency-valid DAGs, balancing historical alignment, assignment sufficiency, and structural parallelism. Concretely, WORKFLOWOps builds a row-stochastic agent transition matrix for layer ordering, soft-edge proposal, and redundancy pruning via transitive reduction (Aho, Garey, and Ullman 1972); expands the agent pool only when semantic sufficiency checks reveal capability gaps; and uses Sentence-BERT-style embeddings (Reimers and Gurevych 2019) as the primary routing mechanism, with optional LLM verification for low-confidence cases.

We evaluate WORKFLOWOps on two heterogeneous suites: a Mixed code/math/QA benchmark and a harder Mixed_Hard suite of competition-grade and frontier-difficulty problems. On the Mixed test split, WORKFLOWOps in DAG mode

Figure

Figure 1: Overview of WORKFLOWOPS. Given an agent pool A, transition matrix P, and task T, the pipeline decomposes T, matches subtasks to agents (creating a∗a^* when ϕ<τ\phi < \tau), constructs a DAG using P as soft guidance, and executes it in parallel layers. Outputs: workflow W, expanded A′A', and updated P′P'. Coral marks the newly created agent.

achieves a 0.890 overall pass rate (Linear: 0.870), improving over MetaAgent (Zhang, Liu, and Xiao 2025), the strongest query-level baseline, by 13.9 absolute points, and over ADAS (Hu, Lu, and Clune 2025), the strongest task-level baseline, by 19.6 points. On the harder Mixed_Hard suite, WORKFLOWOps reaches 0.770, exceeding every fully-completed baseline by at least 15 points. Ablations show that removing the transition matrix, disabling agent-pool evolution, and replacing semantic embeddings with TF-IDF reduce accuracy by 4.5, 1.7, and 8.5 points, respectively, validating each of the three coupled mechanisms. The gains are strongest on code and math; DAG execution provides modest additional accuracy gains via matrix-suggested edges over the Linear mode.

Our contributions are as follows:

  1. We formulate history-conditioned multi-agent workflow construction as approximate constrained optimization over dependency-valid DAGs, guided by persistent Markov collaboration priors extracted from successful workflow traces.

  2. We instantiate this formulation with a transition-prior workflow-construction algorithm that uses empirical agent-to-agent transition probabilities for layer ordering, soft-edge proposal, and redundancy pruning, while preserving hard task dependencies.

  3. We introduce a sufficiency-driven agent-pool expansion loop that detects capability gaps through semantic matching, creates specialized agents only when needed, and immediately integrates new agents into the collaboration-prior matrix.

  4. We provide an end-to-end empirical study and ablation analysis on Mixed and Mixed_Hard benchmarks, showing a 13.9-point overall gain over the strongest query-level baseline on Mixed and a 15+ point lead over fully-completed baselines on Mixed_Hard, while isolating the effects of transition priors, agent evolution, and semantic matching.

Together, these results position WORKFLOWOps as a lightweight and interpretable framework for training-free, history-conditioned multi-agent orchestration. Rather than relying on expensive policy learning or reconstructing workflows from scratch, WORKFLOWOps demonstrates that simple frequency-based collaboration statistics, when coupled with persistent agent-pool evolution and semantic capability matching, can serve as effective operational priors for future workflow construction.

References (34)