betaFeedback

WorksComputer Science

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

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. 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.

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 [15], and LangGraph [22] 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; 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 [1]; expands the agent pool only when semantic sufficiency checks reveal capability gaps; and uses Sentence-BERT-style embeddings [24] 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 achieves a 0.890 overall pass rate (Linear: 0.870), improving over MetaAgent [38], 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.

  1. 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.

  1. 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.

  1. 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 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.

Related Work

Recent multi-agent orchestration methods improve adaptability through topology selection, dynamic coordination, learned workflow optimization, routing, or agent creation. Adapt-Orch (authors 2026a) selects among predefined orchestration patterns, CORAL (authors 2026c) studies information-flow-based dynamic coordination, and FlowSteer (authors 2026d) learns workflow-editing policies through reinforcement learning. Other work optimizes workflow structure or interaction policies directly, including HeGFlow [18], AgentPO [27], and agentic architecture search methods such as ADAS (Hu, Lu, and Clune 2025) and MaAS [34]. These approaches show that orchestration structure matters, but many either recompute decisions at task time or require training/search for each target setting.

Our baselines instantiate this workflow-search line: AFlow (Zhang et al. 2025c) searches workflow code with MCTS, ADAS (Hu, Lu, and Clune 2025) performs automated agentic-system search, MaAS [34] searches over architecture supernets, and MetaAgent (Zhang, Liu, and Xiao 2025) constructs a finite-state-machine workflow per query. A further line reuses workflow experience: Agent Workflow Memory [29] induces and stores reusable workflow skills, EvoFlow [33] evolves a population of diverse workflows, and TopoPrior [37] learns topology priors that transfer across domains. WorkflowOps is complementary to both lines: rather than storing executable workflows or learning topology generators, it accumulates interpretable agent-to-agent transition statistics and applies them as training-free soft guidance under hard task dependencies.

A complementary line of work studies agent routing and self-evolving agent systems. MasRouter [32] and EvoRoute [35] learn routing policies for multi-agent systems, while AOrchestra (authors 2026b), SEAA (SEAA authors 2026), SEVerA [12], and AgentOrchestra (authors 2025a) explore dynamic sub-agent creation, self-extension, verification, or hierarchical orchestration. WorkflowOps differs by integrating these threads into a single training-free, history-conditioned orchestration layer: empirical transition priors guide DAG construction, semantic matching assigns subtasks to agents, and demand-driven agent creation expands the pool while immediately updating the persistent collaboration prior. Extended related work is provided in Appendix A.

Problem Formulation

General problem. Given a task TT and an agent pool A\mathcal{A}, workflow orchestration must produce a dependency-valid workflow DAG WW and an agent assignment π\pi that maximize downstream task success. This statement is independent of any particular mechanism. WorkflowOps additionally assumes access to a history of successful workflows, from which it derives a transition matrix P\mathbf{P}; P\mathbf{P} is an input to our approach, not part of the problem itself. We first define the core objects.

Definition 1 (Agent Pool) An agent pool A={a1,…,aN}\mathcal{A} = \{a_1,\ldots,a_N\} consists of NN specialized agents. Each agent aia_i is characterized by a natural language capability description did_i and dense embedding ei=fenc(di)∈Rhe_i = f_{\mathrm{enc}}(d_i) \in\mathbb{R}^{h}, where fencf_{\mathrm{enc}} is a pre-trained sentence encoder.

Definition 2 (Task Decomposition) Given a natural language task TT, a decomposition function DLLMD_{\mathrm{LLM}} produces subtasks S={s1,…,sK}S = \{s_1,\ldots,s_K\} and a dependency DAG Gdep=(S,Edep)G_{\mathrm{dep}} = (S,E_{\mathrm{dep}}), where each directed edge (si,sj)∈Edep(s_i,s_j) \in E_{\mathrm{dep}} indicates that sis_i must complete before sjs_j begins. Each subtask sjs_j carries a required capability description cjc_j.

Definition 3 (Capability Matching) For subtask sjs_j with requirement cjc_j, the matching score against agent aia_i is

ϕ(sj,ai)=cos⁡(fenc(cj),ei).(1)\phi(s_j,a_i)=\cos(f_{\mathrm{enc}}(c_j),e_i). \tag*{(1)}

The assignment π:S→A\pi:S\to\mathcal{A} maps each subtask to its best-matching agent: π(sj)=arg⁡max⁡ai∈Aϕ(sj,ai)\pi(s_j)=\arg\max_{a_i\in\mathcal{A}}\phi(s_j,a_i).

Definition 4 (Sufficiency) Assignment π\pi is τ\tau-sufficient if and only if ϕ(sj,π(sj))≥τ\phi(s_j,\pi(s_j))\ge\tau for all sj∈Ss_j\in S, where τ∈[0,1]\tau\in[0,1] is the sufficiency threshold. The gap set is G={sj∣ϕ(sj,π(sj))<τ}\mathcal{G}=\{s_j\mid\phi(s_j,\pi(s_j))<\tau\}.

Definition 5 (Transition Matrix) Given a history of successful workflows H={W1,…,WM}\mathcal{H}=\{W_1,\ldots,W_M\}, each containing an ordered sequence of agent invocations, the transition matrix P∈RN×N\mathbf{P}\in\mathbb{R}^{N\times N} is

Pij=count⁡(ai→aj in H)∑k=1Ncount⁡(ai→ak in H).(2)P_{ij}=\frac{\operatorname{count}(a_i\to a_j\text{ in }\mathcal{H})}{\sum_{k=1}^{N}\operatorname{count}(a_i\to a_k\text{ in }\mathcal{H})}. \tag*{(2)}

Here count⁡(ai→aj in H)\operatorname{count}(a_i\to a_j\text{ in }\mathcal{H}) denotes the number of times agent aja_j immediately follows aia_i across workflows in H\mathcal{H}. P\mathbf{P} is row-stochastic and encodes empirical first-order Markov collaboration priors.

Definition 6 (Workflow) A workflow W=(V,E,π)W=(V,E,\pi) consists of nodes V=SV=S, edges E=Edep∪EmatE=E_{\mathrm{dep}}\cup E_{\mathrm{mat}} containing hard dependency edges and soft matrix-suggested edges, and agent assignment π\pi.

WorkflowOps design objective. Because downstream task success is not directly measurable at construction time, our approach optimizes a history-conditioned surrogate balancing three terms: alignment with historical collaboration priors, semantic sufficiency of subtask–agent assignments, and structural parallelism:

Q(W,π,A′)=α⋅Align⁡(W,P)+β⋅Suff⁡(π)+γ⋅Par⁡(W),(3)Q(W,\pi,\mathcal{A}')=\alpha\cdot\operatorname{Align}(W,\mathbf{P})+\beta\cdot\operatorname{Suff}(\pi)+\gamma\cdot\operatorname{Par}(W), \tag*{(3)}

subject to preserving hard task dependencies, maintaining acyclicity, and allowing only monotonic expansion of the agent pool A′⊇A\mathcal{A}'\supseteq\mathcal{A}, where

Align⁡(W,P)=1∣E∣∑(si,sj)∈EPπ(si),π(sj),(4)\operatorname{Align}(W,\mathbf{P})=\frac{1}{|E|}\sum_{(s_i,s_j)\in E}P_{\pi(s_i),\pi(s_j)}, \tag*{(4)}
Suff⁡(π)=1∣S∣∑j=1Kϕ(sj,π(sj)),(5)\operatorname{Suff}(\pi)=\frac{1}{|S|}\sum_{j=1}^{K}\phi(s_j,\pi(s_j)), \tag*{(5)}
Par⁡(W)=∣S∣depth⁡(W),(6)\operatorname{Par}(W)=\frac{|S|}{\operatorname{depth}(W)}, \tag*{(6)}

with depth⁡(W)\operatorname{depth}(W) the length of the longest path in the DAG. Align measures agreement with historical collaboration patterns, Suff measures capability coverage, and Par measures available parallelism. We use this objective as a design principle rather than solving it globally; WorkflowOps approximates it through staged decomposition, semantic matching, agent-pool expansion, transition-guided DAG construction, and layered execution.

Method

WorkflowOps operates as a pipeline of four stages: (1) task decomposition with layered semantic matching, (2) sufficiency-driven agent pool expansion, (3) transition-prior-guided workflow construction, and (4) layered parallel execution. We describe each stage below, with detailed algorithms where useful. The general flow of WorkflowOps can be found in Figure 1.

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

Task decomposition and layered semantic matching

Task decomposition. Given a natural language task TT, an LLM decomposes it into KK subtasks S={s1,…,sK}S = \{s_1, \ldots, s_K\} (3≤K≤73 \le K \le7), each with a required capability description cjc_j and dependency links forming a DAG GdepG_{\mathrm{dep}}. The decomposition prompt enforces valid DAG structure; a post-processing step detects and breaks cycles via DFS if they arise from LLM output errors. All dependency links are thus proposed by the LLM under a schema-constrained prompt: structural validity is enforced programmatically, while the semantic correctness of the decomposition is delegated to the LLM.

Layered semantic matching. We adopt a two-layer matching strategy that balances quality and efficiency:

Layer 1: Sentence embedding matching. We use a pre-trained sentence encoder fencf_{\mathrm{enc}} (Sentence-BERT (Reimers and Gurevych [24]), specifically the all-MiniLM-L6-v2 variant) to encode both agent capability descriptions and subtask requirements into 384-dimensional dense vectors. Matching scores are computed as:

ϕ(sj,ai)=cos⁡(fenc(cj),fenc(di)).(7)\phi(s_j, a_i) = \cos\left(f_{\mathrm{enc}}(c_j), f_{\mathrm{enc}}(d_i)\right). \tag*{(7)}

Here aia_i denotes an agent, did_i its capability description, and cjc_j the subtask requirement (cf. Definition 3). Agent embeddings are pre-computed and cached; subtask embeddings are computed at decomposition time. This layer is deterministic, has zero LLM cost, and runs in sub-millisecond time per subtask-agent pair through batched matrix multiplication.

Layer 2: LLM on-demand verification. For subtasks where the best matching score falls below the sufficiency threshold τ\tau, an optional LLM verification stage can judge whether an existing agent is truly adequate or whether a capability gap exists. This stage is invoked only for low-confidence cases where embedding similarity is ambiguous.

Complexity comparison. Pure LLM routing evaluates K×NK \times N subtask-agent pairs with LLM calls. Our approach requires K×NK \times N vector operations (Layer 1, negligible cost) plus at most K′×1K' \times1 LLM calls (Layer 2, where K′≪KK' \ll K). For a typical setting with K=5K=5 subtasks and N=35N=35 agents, this reduces from 175 LLM calls to ∼5\sim5 vector-similarity computations plus ∼1\sim1 LLM verification call.

Transition-prior-guided workflow construction

Matrix construction. The transition matrix P\mathbf{P} (Definition 5) is built offline from a corpus of historical (or synthetic) workflows by counting pairwise agent transitions and row-normalizing. In our deployment, we bootstrap from ∼65\sim65 synthetic workflows spanning eight task domains, yielding a 35×3535 \times35 matrix with approximately 20% non-zero entries. Constructing P\mathbf{P} is a single counting pass over historical hand-offs, lookup requires O(1)O(1), and memory grows as O(N2)O(N^2); at N=35N=35 the matrix occupies a few kilobytes, so its construction and query cost are negligible relative to a single LLM call.

Algorithm 1. Transition-guided DAG workflow construction

Require: Subtasks SS, dependency graph Gdep=(S,Edep)G_{\mathrm{dep}} = (S, E_{\mathrm{dep}}), assignment π\pi, transition matrix P\mathbf{P}, edge threshold θ\theta

Ensure: Workflow W=(V,E,π)W = (V, E, \pi)

1: V←SV \leftarrow S; E←EdepE \leftarrow E_{\mathrm{dep}} 2: Compute topological depths: depth⁡(s)←\operatorname{depth}(s) \leftarrow longest path from any source to ss in GdepG_{\mathrm{dep}} 3: for each pair (si,sj)∈S×S(s_i, s_j) \in S \times S with si≠sjs_i \ne s_j and (si,sj)∉E(s_i, s_j) \notin E do 4: if Pπ(si),π(sj)≥θP_{\pi(s_i),\pi(s_j)} \ge\theta and depth⁡(si)<depth⁡(sj)\operatorname{depth}(s_i) < \operatorname{depth}(s_j) then 5: E←E∪{(si,sj)}E \leftarrow E \cup\{(s_i,s_j)\} &nbsp;&nbsp; Add matrix-suggested soft edge 6: end if 7: end for 8: E←TransitiveReduction⁡(V,E)E \leftarrow\operatorname{TransitiveReduction}(V,E) &nbsp;&nbsp; Remove redundant edges 9: Compute parallel groups via layered topological sort of (V,E)(V,E) 10: Sort agents within each layer by Pprev,π(s)P_{\mathrm{prev},\pi(s)} descending &nbsp;&nbsp; Intra-layer ordering 11: return W=(V,E,π)W = (V,E,\pi)

Triple-role mechanism. The transition matrix serves three distinct roles during workflow construction:

(a) Intra-layer ordering optimization. Within each topological layer (subtasks that share the same depth and can be freely reordered), agents are sorted by their transition probability from the preceding layer’s agents. If the previous layer’s agent was apa_p, and the current layer contains subtasks assigned to agents axa_x and aya_y, the system prefers the ordering where Pp,x>Pp,yP_{p,x} > P_{p,y}, placing axa_x before aya_y. This optimizes information flow sequence based on historically successful patterns.

(b) Probability-thresholded edge suggestion. For each pair of subtasks (si,sj)(s_i,s_j) with no explicit dependency edge, if Pπ(si),π(sj)≥θP_{\pi(s_i),\pi(s_j)} \ge\theta (the edge threshold) and adding the edge preserves topological ordering (i.e., depth⁡(si)<depth⁡(sj)\operatorname{depth}(s_i) < \operatorname{depth}(s_j)), a soft edge is added. These matrix-suggested edges encode the system’s belief, grounded in historical data, that agent π(si)\pi(s_i)’s output is valuable as input to agent π(sj)\pi(s_j).

(c) Transitive reduction. After both hard dependency edges and soft matrix-suggested edges are incorporated, the system performs a transitive reduction (Aho, Garey, and Ullman [1]): if edges (u,v)(u,v) and (v,w)(v,w) exist, and a direct edge (u,w)(u,w) also exists, the direct edge (u,w)(u,w) is removed because the dependency is already transitively satisfied. This maximizes parallelism by removing redundant sequential constraints, allowing more subtasks to execute concurrently within each topological layer.

Algorithm 1 formalizes this procedure.

Dynamic matrix update. When new agents are created (§ 4.3), they must be integrated into P\mathbf{P}. The system uses the Algorithm 2 Sufficiency-driven agent pool expansion

Require: Subtasks S\mathcal{S}, agent pool A\mathcal{A}, threshold τ\tau, max rounds RR, matrix PP

Ensure: Expanded pool A′\mathcal{A}', updated matrix P′P', sufficient assignment π′\pi'

1: A′←A\mathcal{A}' \leftarrow\mathcal{A}; P′←PP' \leftarrow P 2: for r=1,…,Rr = 1, \ldots, R do 3: &nbsp;&nbsp;&nbsp;&nbsp;Build matching index from A′\mathcal{A}' using fencf_{\mathrm{enc}} 4: &nbsp;&nbsp;&nbsp;&nbsp;Compute π′←arg⁡max⁡a∈A′ϕ(sj,a)\pi' \leftarrow\arg\max_{a \in\mathcal{A}'} \phi(s_j, a) for all sj∈Ss_j \in\mathcal{S} 5: &nbsp;&nbsp;&nbsp;&nbsp;G←{sj∣ϕ(sj,π′(sj))<τ}\mathcal{G} \leftarrow\{s_j \mid\phi(s_j, \pi'(s_j)) < \tau\} ▷ Identify capability gaps 6: &nbsp;&nbsp;&nbsp;&nbsp;if G=∅\mathcal{G} = \emptyset then 7: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break ▷ All subtasks sufficiently covered 8: &nbsp;&nbsp;&nbsp;&nbsp;end if 9: &nbsp;&nbsp;&nbsp;&nbsp;for each sj∈Gs_j \in\mathcal{G} do 10: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if optional adequacy check indicates existing agents are insufficient then 11: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;anew←LLMGenerate⁡(sj.capability)a_{\mathrm{new}} \leftarrow\operatorname{LLMGenerate}(s_j.\mathrm{capability}) ▷ Generate agent definition 12: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Persist anewa_{\mathrm{new}} to agent pool on disk 13: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A′←A′∪{anew}\mathcal{A}' \leftarrow\mathcal{A}' \cup\{a_{\mathrm{new}}\} 14: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(pred,succ)←LLMPredict⁡(anew,A′)(\mathrm{pred}, \mathrm{succ}) \leftarrow\operatorname{LLMPredict}(a_{\mathrm{new}}, \mathcal{A}') ▷ Predict collaborators 15: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P′←InjectAndNormalize⁡(P′,anew,pred,succ)P' \leftarrow\operatorname{InjectAndNormalize}(P', a_{\mathrm{new}}, \mathrm{pred}, \mathrm{succ}) 16: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end for 17: &nbsp;&nbsp;&nbsp;&nbsp;end for 18: return A′,P′,π′\mathcal{A}', P', \pi'

LLM to predict likely predecessor and successor agents for the new agent anewa_{\mathrm{new}}; the prediction is conditioned on the new agent’s capability card and the capability descriptions of the existing pool (cf. Algorithm 2), and the predicted transition probabilities are injected into the corresponding rows and columns of PP. All affected rows are re-normalized to maintain row-stochasticity. This ensures that the matrix grows alongside the agent pool, so workflow construction can immediately exploit the new agent’s predicted collaboration patterns.

Why soft guidance. The matrix is used as soft guidance rather than hard constraints for three reasons: (i) with ∼20%\sim20\% matrix density, hard constraints would block valid but historically unseen workflows; (ii) dependency structure is always the non-negotiable foundation—the matrix cannot override task logic; (iii) novel task patterns should still be expressible even if they deviate from historical priors.

Sufficiency-driven agent-pool expansion

When the current agent pool cannot τ\tau-sufficiently cover a task’s requirements, WorkflowOps enters a closed-loop agent creation process. This is a defining capability: the system does not stop at weak assignments but actively expands its capability boundaries.

Algorithm 2 formalizes the sufficiency loop.

Key design decisions. Demand-driven creation. Unlike AOrchestra (authors 2026b), which creates agents for every task regardless of pool coverage, WorkflowOps creates agents only when a measurable capability gap is detected (ϕ<τ\phi< \tau). This prevents unnecessary pool inflation.

Integrated collaboration knowledge. Each new agent is not only added to the pool but also injected into the transition matrix PP with LLM-predicted predecessor and successor relationships. This means the next workflow that uses the new agent benefits from collaboration priors immediately, rather than requiring multiple executions to accumulate transition statistics organically.

Safety mechanisms. The loop is bounded by three mechanisms: (i) a maximum round count RR (default 3), (ii) a per-subtask deduplication guard, and (iii) a maximum agent creation count per run.

Persistence and lifecycle. Created agents are persisted to disk and become part of the available pool for future runs. The system supports three environment modes—exploratory (free evolution), controlled (periodic curation), and frozen (version-locked for production)—enabling a governance path from experimentation to enterprise deployment.

Layered Parallel Execution

After workflow construction, WorkflowOps executes the DAG by topological layers. All nodes in the same layer are dependency-independent and can therefore run concurrently; downstream nodes receive either a single predecessor output or a merged message containing all upstream results. This execution mode preserves hard dependencies while exploiting the parallelism exposed by transition-guided DAG construction.

We compare this DAG mode with a Linear mode that uses the same decomposition and agent assignment but executes subtasks sequentially. Both modes use the same message abstraction and logging interface, enabling a controlled comparison between sequential execution and transition-guided DAG execution. Detailed message schemas, fan-in merging, error propagation, audit logging, and the end-to-end pipeline algorithm (Algorithm 3) are provided in Appendix § 10.

Experiments

Experimental Setup

Task suites. We use two heterogeneous benchmark suites with the same inference pipeline and grading harness. Mixed combines code generation (HumanEval [13], MBPP [2]), mathematical reasoning (GSM8K [14], MATH [19]), and question answering (DROP [16], HotpotQA [31]); it contains 120 validation and 300 test problems, sampled equally across sources. Mixed_Hard contains harder competition-grade and frontier-difficulty problems from AIME 2025 [11], LiveCodeBench [21], CodeContests (Li et al. 2022), and GPQA Diamond [25]; it contains 180 validation and 694 test problems. The orchestrator does not observe the benchmark identity, so it must handle both broad category coverage and harder problem distributions without source-specific routing.

Baselines. We compare against four recent multi-agent orchestration systems: AFlow (Zhang et al. 2025c), an MCTS-based workflow generator; ADAS (Hu, Lu, and Clune 2025), an automated agentic-system search method; MaAS (Zhang

SystemMixedMixed_Hard
AFlow (Zhang et al. 2025c)0.6760.218
ADAS (Hu, Lu, and Clune 2025)0.6940.729†
MaAS [34]0.400DNF
MetaAgent (Zhang, Liu, and Xiao 2025)0.7510.618
WorkflowOps Linear0.8700.763
WorkflowOps DAG0.8900.770

Table 1. End-to-end pass rate on Mixed and Mixed_Hard. Full category breakdowns are in Appendix C.

et al. 2025b), architecture search over agentic supernets; and MetaAgent (Zhang, Liu, and Xiao 2025), a finite-state-machine multi-agent constructor. MetaAgent constructs a fresh workflow per query, while AFlow, ADAS, and MaAS search for one workflow per benchmark and reuse it across queries.

Backbone and configuration. All systems use gpt-5 as the underlying language model. WorkflowOps uses sufficiency threshold τ=0.45\tau=0.45, edge threshold θ=0.3\theta=0.3, the all-MiniLM-L6-v2 sentence-transformer matcher [24], MAX_AGENTS_PER_RUN=4, MAX_CREATION_ROUNDS=3, and MAX_DAG_BRANCHING=3. Decomposition produces 3–7 subtasks per query, workflows execute with 16 worker processes per configuration, and each query has a 900 s wall-clock timeout.

Metrics. The primary metric is pass rate: the fraction of test rows where the extracted final answer matches ground truth, with code tasks graded by sandboxed execution against canonical tests. We also log matrix alignment, sufficiency, dynamic-agent creation, gap closure, LLM calls, token counts, latency, and DAG-vs.-Linear wall time; detailed operational statistics are reported in Appendix § 13.

End-to-end Workflow Quality

Table 1 reports the headline pass rates on Mixed and Mixed_Hard. Full category-level breakdowns are provided in Appendix § 11. Baseline numbers are taken from the respective systems’ evaluation runs on the same splits with the same gpt-5 backbone.

Mixed. On Mixed, WorkflowOps (DAG) reaches 0.890, improving over the strongest query-level baseline, MetaAgent (0.751), by 13.9 absolute points and over the strongest task-level baseline, ADAS (0.694), by 19.6 points. The gain is largest on CODE: WorkflowOps obtains 0.940 in Linear mode and 0.960 in DAG mode, more than 40 points above the nearest baseline. On MATH, WorkflowOps ties MetaAgent at 0.940. QA remains the weakest category: MetaAgent leads by 4–8 points, suggesting that the current agent pool and transition priors are better aligned with structured code/math workflows than with open-ended reading-comprehension style reasoning. DAG mode improves over Linear by 2 points overall, with the gain concentrated on CODE and QA.

Mixed_Hard. On the harder benchmark suite, WorkflowOps (DAG) reaches 0.770, outperforming every fully completed baseline by at least 15 points and exceeding the strongest partial ADAS result by 4 points. The breakdown shows strong performance across competitive-grade problems: 0.850 on MATH, 0.780 on CODE, and 0.700 on QA. DAG and Linear modes are within 1 point of each other on Mixed_Hard, indicating that the harder suite benefits more from robust assignment and agent coverage than from additional DAG structure.

Significance. A paired bootstrap test on Mixed finds the gap between WorkflowOps (DAG) and MetaAgent significant (p<0.001p<0.001). The effect is driven primarily by CODE; MATH is statistically tied and QA marginally favors MetaAgent. Full confidence intervals, category results, and effect sizes are in Appendix § 11.

Ablation Studies

We ablate the mechanisms introduced in § 4: transition-matrix guidance, sufficiency-driven agent-pool expansion, semantic embedding matching, pure-LLM matching, and the edge threshold θ\theta. Each cell uses the same agent pool, matrix initialization, decomposition prompt, and execution engine.

The ablations validate all three core mechanisms. Removing the transition matrix drops Mixed accuracy by 4.5–5.0 points, showing that historical collaboration priors provide useful structural guidance. Disabling agent evolution drops accuracy by 1.7 points but reduces cost sharply, identifying a cheaper operating point when the static pool already covers the task distribution. Replacing semantic embeddings with TF-IDF drops accuracy by 8.5–13.0 points, while pure LLM matching is both less accurate and more expensive than the layered matcher. The edge-threshold sweep peaks near the default θ=0.3\theta=0.3, with θ=0.5\theta=0.5 close behind. Full per-benchmark ablations and detailed interpretations are in Appendix D. Together, these ablations support the central design claim: WorkflowOps improves not through a single dominant component, but through the coupling of historical transition priors, semantic capability matching, and bounded agent-pool expansion. In terms of effect size, semantic capability matching is the largest single factor, transition-matrix guidance contributes a consistent additional gain, and pool expansion trades a smaller accuracy gain for the largest share of cost, while DAG construction adds a further modest improvement over Linear at near-equal wall time. The headline improvement is therefore driven primarily by reliable subtask–agent matching, with the transition prior and DAG structure supplying complementary structural guidance.

Efficiency Analysis

WorkflowOps exposes a clear cost–accuracy tradeoff. Appendix E tabulates the full operational profile of the RefferENCE configuration on the Mixed test split. The system uses 14.8 LLM calls and 43.6k tokens per query on average, with a median wall time of 605 seconds. Most calls come from two sources: the sufficiency-driven agent-creation loop, which creates an average of 3.5 agents per query, and agent execution, which invokes one agent per workflow node. The embedding matcher itself contributes essentially no LLM calls, supporting the design choice of using semantic embeddings as the routing fast path.

VariantLinearDAGCODEMATHQAcallstokens
Reference0.870 [0.830, 0.907]0.890 [0.853, 0.923]0.9400.9400.73014.843.6k
No-Matrix0.825 [0.780, 0.867]0.840 [0.797, 0.880]0.9200.9100.64513.941.2k
No-Evolve0.853 [0.813, 0.893]0.850 [0.807, 0.890]0.9300.9600.6707.815.9k
TF-IDF0.785 [0.737, 0.830]0.760 [0.710, 0.810]0.8900.9100.55514.743.0k
LLM-Match0.840 [0.800, 0.883]0.853 [0.813, 0.890]0.9300.9400.65017.748.0k
θ=0.0\theta= 0.00.825 [0.780, 0.867]0.815 [0.770, 0.857]0.8700.9100.69514.642.5k
θ=0.5\theta= 0.50.855 [0.813, 0.893]0.870 [0.830, 0.907]0.9100.9200.73514.742.6k
θ=0.7\theta= 0.70.795 [0.747, 0.840]0.815 [0.770, 0.857]0.8700.8900.62514.542.3k

Table 2. Ablation results on the Mixed test split (300 problems per cell). “Linear” and “DAG” columns give overall pass rate; brackets are 95% bootstrap CIs (nboot=2000n_{\mathrm{boot}}=2000). CODE/MATH/QA are unweighted category means in Linear mode. Calls and tokens are mean per query in Linear mode.

Normalizing by the cheapest ablation cell, No-Evolve (7.8 calls and 15.9k tokens), Reference spends 1.9× the calls and 2.7× the tokens for a +1.7 point accuracy gain. This makes agent-pool expansion an explicit deployment knob: disabling expansion is attractive when the static pool already covers the task distribution, while the reference setting is preferable when tasks may expose new capability gaps. DAG execution provides modest accuracy gains with near-equal median wall time to Linear mode on Mixed, because most workflows are shallow; detailed DAG-vs.-Linear timing and additional operational statistics are provided in Appendix § 13.

Discussion and Limitations

Lightweight priors as orchestration memory. A key finding is that simple frequency-based transition priors can provide useful workflow guidance without gradient-based training. Unlike learned workflow optimizers, the transition matrix requires only execution history, is interpretable, updates incrementally as new workflows complete, and degrades gracefully when no relevant transition has been observed. This makes it a practical middle ground between static templates and expensive task-specific workflow search.

Limitations. WorkflowOps shows that lightweight collaboration priors can improve multi-agent orchestration without gradient-based training, but several limitations remain. First, the transition matrix captures only first-order pairwise handoffs; higher-order collaboration patterns such as repeated agent sequences are not modeled. Second, dynamic agent creation depends on LLM generation quality, so poorly specified agents may persist unless the pool is curated; relatedly, our evaluation does not measure long-term effects of pool expansion—whether created agents are reused by later tasks, refined, or pruned—so we claim demand-driven expansion rather than sustained self-evolution. Third, the current system uses a single shared transition matrix, whereas domain-specific matrices may provide more targeted guidance; because P\mathbf{P} indexes agent roles rather than backbone outputs, it need not be rebuilt when the underlying LLM changes, though transition quality may shift and should be re-validated. Finally, our evaluation focuses on code, math, and QA-style knowledge work; generalization to substantially different domains requires further study. Additional discussion of matrix sparsity, matching design, and future extensions is provided in Appendix § 14.

Conclusion

We presented WorkflowOps, a multi-agent workflow orchestration framework that addresses the memoryless orchestration problem in current multi-agent systems. Our three coupled mechanisms—transition probability matrix guidance, sufficiency-driven agent-pool expansion, and layered semantic matching—enable the system to learn from execution history, expand its capabilities on demand, and efficiently route subtasks to agents, all without requiring gradient-based training. The benefits are largest on structured, decomposable tasks where past agent handoff patterns transfer.

The transition matrix demonstrates that even simple first-order Markov collaboration statistics, when applied as soft guidance during DAG workflow construction, provide meaningful improvement in workflow quality and parallelism. The sufficiency loop shows that demand-driven agent creation with integrated collaboration knowledge updates lets the agent pool and its collaboration priors grow together on demand. The layered matching strategy shows that pretrained sentence embeddings can serve as an effective fast path for capability matching, with LLM verification reserved for genuinely ambiguous queries.

Future work. Several directions are promising: (i) upgrading the matrix to learned completion methods (matrix factorization, neural completion) for better coverage of sparse transitions; (ii) online matrix learning from execution feedback, creating an RL-style closed loop; (iii) domain-specific matrices that capture field-specific collaboration patterns; (iv) integration with emerging inter-agent protocols such as A2A [17] and MCP for standardized agent communication.

Technical Appendix

Extended Related Work

Adaptive and Dynamic Orchestration

Recent orchestration methods mainly improve adaptivity through topology routing or learned control policies. AdaptOrch (authors 2026a) proposes task-adaptive topology selection among predefined orchestration patterns and reports gains over static templates. CORAL (authors 2026c) moves from fixed workflows to information-flow-based dynamic coordination via agent-to-agent communication.

FlowSteer (authors 2026d) applies end-to-end reinforcement learning to optimize workflow editing decisions.

These methods are highly relevant but differ from our focus: WORKFLOWOPS emphasizes persistent, training-free collaboration priors accumulated from workflow history and used as soft constraints during DAG construction.

Workflow Structure Learning and Optimization

HeGFlow [18] formulates workflow design as heterogeneous graph adjacency optimization with a training pipeline, while AgentPO [27] optimizes collaborative interaction policies under fixed topology assumptions. ProMAS (authors 2026e) uses Markov transition dynamics for error forecasting rather than workflow synthesis. In contrast, WORKFLOWOPS directly uses historical transition statistics as an interpretable and incrementally updatable prior for structure construction.

A broader survey perspective (authors 2026f, 2025b; survey authors 2026) highlights an open gap between static template orchestration and expensive training-heavy optimization. Our method is positioned in that gap: lightweight, history-informed graph construction without retraining.

Agent Routing and Selection

MasRouter [32] and EvoRoute [35] study learned routing in multi-agent systems, primarily targeting model allocation and cost-performance trade-offs. Our setting is complementary: we focus on capability matching between subtasks and role-specialized agents. The layered semantic matching strategy in WORKFLOWOPS can be interpreted as a routing policy over agent capabilities, using an embedding fast path with optional LLM fallback, rather than routing over model backbones.

Self-Evolving Agent Architectures

AOOrchestra (authors 2026b) demonstrates dynamic sub-agent creation through compositional agent specifications, but treats created sub-agents as ephemeral: they are not persisted, and no collaboration knowledge about them is accumulated. SEAA (SEA authors 2026) and SEVerA [12] provide formal perspectives on self-extension and verification, mainly at the tool or synthesis-control layer. AgentOrchestra (authors 2025a) studies hierarchical orchestration with dynamic tool pathways. WORKFLOWOPS differs by coupling demand-driven agent creation with immediate integration into a persistent collaboration-prior matrix, so newly created roles influence future workflow construction.

Workflow Memory and Experience Reuse

Agent Workflow Memory [29] induces reusable workflow skills from experience and stores them for later tasks, EvoFlow [33] evolves a population of diverse agentic workflows, and TopoPrior [37] learns topology priors that transfer across domains. These systems persist executable workflows or learned topology generators. WORKFLOWOPS instead persists pairwise collaboration statistics that act as training-free soft guidance

Algorithm 3 WorkflowOps end-to-end pipeline

Require: Task TT, agent pool A\mathcal{A}, transition matrix PP, threshold τ\tau, edge threshold θ\theta, max rounds RR, workflow type ∈{linear,dag}\in\{\text{linear},\text{dag}\}

Ensure: Final result mfinalm_{\mathrm{final}}, workflow WW, logs L\mathcal{L}

  1. // Stage 1: Decomposition

  2. S,Gdep←DLLM(T)S, G_{\mathrm{dep}} \leftarrow\mathrm{DLLM}(T) ▷ LLM decomposes task into subtasks with dependencies

  3. Validate DAG: if HasCycle(Gdep)\mathrm{HasCycle}(G_{\mathrm{dep}}), linearize dependencies

  4. // Stage 2: Matching + Sufficiency Loop

  5. A′,π←SufficiencyLoop(S,A,τ,R,P)\mathcal{A}', \pi\leftarrow\mathrm{SufficiencyLoop}(S, \mathcal{A}, \tau, R, P) ▷ Algorithm 2

  6. // Stage 3: Workflow Construction

  7. if workflow type = dag then

  8. W←TransitionGuidedDAG(S,Gdep,π,P′,θ)W \leftarrow\mathrm{TransitionGuidedDAG}(S, G_{\mathrm{dep}}, \pi, P', \theta) ▷ Algorithm 1

  9. else

  10. W←BuildLinear(S,π,P′)W \leftarrow\mathrm{BuildLinear}(S, \pi, P') ▷ Linear with intra-layer ordering

  11. end if

  12. // Stage 4: Execution

  13. mfinal,L←ExecuteDAG(W,T)m_{\mathrm{final}}, \mathcal{L} \leftarrow\mathrm{ExecuteDAG}(W, T) ▷ Algorithm 4

  14. // Stage 5: Persistence

  15. Save (W,mfinal,L)(W, m_{\mathrm{final}}, \mathcal{L}) to results directory with timestamps and metadata

  16. return mfinal,W,Lm_{\mathrm{final}}, W, \mathcal{L}

during construction: hard task dependencies are always preserved, the prior is interpretable and incrementally updatable without retraining, and previously unseen workflow shapes remain expressible.

Pipeline and Execution Engine Details

End-to-End Pipeline

Algorithm 3 summarizes the complete WorkflowOps pipeline; the individual stages are described in § 4.

Layered DAG Execution

After workflow construction, the execution engine processes the DAG through layered topological traversal. Nodes in the same layer have no unresolved dependencies and are executed in parallel. A downstream node receives the output of its predecessor when it has one parent, or a merged message when it has multiple parents.

Unified Messaging Protocol

All inter-agent communication uses a single AgentMessage schema carrying natural language content, optional structured data, typed artifacts, and trace metadata, including source agent, target agent, parent message ID, workflow ID, and step index. This composable protocol avoids the pairwise adapter problem that arises when agents use heterogeneous message formats.

Fan-in Merge

When parallel branches converge, upstream messages are merged into a single input for the downstream agent. The merge concatenates labeled content sections, preserves source attribution, and unions artifact collections, maintaining provenance across branches.

Algorithm 4 DAG execution engine

Require: Workflow W=(V,E,π)W=(V,E,\pi), original task TT

Ensure: Final result message mfinalm_{\mathrm{final}}, execution logs L\mathcal{L}

  1. Compute topological layers L0,L1,…,LDL_0,L_1,\ldots,L_D from (V,E)(V,E)

  2. results←{}\mathrm{results}\leftarrow\{\}; L←[]\mathcal{L}\leftarrow[]

  3. minit←CreateMessage(T)m_{\mathrm{init}}\leftarrow\mathrm{CreateMessage}(T)

  4. for l=0,1,…,Dl=0,1,\ldots,D do

  5. &nbsp;&nbsp;parallel for each node v∈Llv\in L_l: ▷ Thread pool within layer

  6. &nbsp;&nbsp;&nbsp;&nbsp;preds←{u∣(u,v)∈E}\mathrm{preds}\leftarrow\{u\mid(u,v)\in E\}

  7. &nbsp;&nbsp;&nbsp;&nbsp;if preds=∅\mathrm{preds}=\varnothing: min←minitm_{\mathrm{in}}\leftarrow m_{\mathrm{init}}

  8. &nbsp;&nbsp;&nbsp;&nbsp;else if ∣preds∣=1|\mathrm{preds}|=1: min←results[preds[0]]m_{\mathrm{in}}\leftarrow\mathrm{results}[\mathrm{preds}[0]]

  9. &nbsp;&nbsp;&nbsp;&nbsp;else: min←MergeMessages({results[u]∣u∈preds})m_{\mathrm{in}}\leftarrow\mathrm{MergeMessages}(\{\mathrm{results}[u]\mid u\in\mathrm{preds}\})

  10. &nbsp;&nbsp;&nbsp;&nbsp;mout←ExecuteAgent(π(v),min)m_{\mathrm{out}}\leftarrow\mathrm{ExecuteAgent}(\pi(v),m_{\mathrm{in}})

  11. &nbsp;&nbsp;&nbsp;&nbsp;results[v]←mout\mathrm{results}[v]\leftarrow m_{\mathrm{out}}; append log to L\mathcal{L}

  12. &nbsp;&nbsp;end for

  13. terminals←{v∈V∣∄(v,w)∈E}\mathrm{terminals}\leftarrow\{v\in V\mid\nexists(v,w)\in E\}

  14. mfinal←MergeMessages({results[v]∣v∈terminals})m_{\mathrm{final}}\leftarrow\mathrm{MergeMessages}(\{\mathrm{results}[v]\mid v\in\mathrm{terminals}\})

  15. return mfinal,Lm_{\mathrm{final}},\mathcal{L}

Error Propagation

If an individual agent step fails, the system creates an error-typed message and propagates it downstream. Subsequent agents receive the error context and may still produce partial results. This prioritizes operational continuity and traceability over immediate workflow abortion.

Audit Logging

Every execution step records timestamps, input/output previews, success or error status, and agent metadata. Combined with the workflow definition, including nodes, edges, assignments, matrix alignment score, and sufficiency report, this provides a complete decision trail from task intake to final output.

Full End-to-end Results

Tables 3 and 4 provide the full category-level pass-rate breakdowns corresponding to the compact main results table.

On Mixed, WorkflowOps dominates the CODE category in both modes and ties MetaAgent on MATH, while MetaAgent remains stronger on QA. On Mixed_Hard, WorkflowOps is strongest overall, with especially large gains on competition-level math and competitive results on code. A paired bootstrap test (nboot=2000n_{\mathrm{boot}}=2000) on the per-row pass/fail vector finds the gap between WorkflowOps (DAG) and MetaAgent on Mixed highly significant (p<0.001p<0.001), driven by CODE (p<0.001p<0.001); MATH is statistically tied and QA marginally favors MetaAgent (p<0.05p<0.05). Cohen’s hh on overall Mixed pass rate is +0.53 over AFlow, +0.49 over ADAS, +1.09 over MaAs, and +0.37 over MetaAgent.

Detailed Ablation Results

Table 5 reports per-benchmark ablation results. Disabling the transition matrix reduces all categories by 2–8 points, indicating that the matrix shapes workflow construction across subtasks rather than carrying a single category. Disabling agent evolution reduces accuracy modestly but cuts calls and tokens substantially, making it a cost-optimized operating point when the static agent pool is already sufficient. Replacing embeddings with TF-IDF causes the largest degradation, validating semantic matching over sparse keyword overlap. Pure LLM matching is more expensive and less accurate than the layered matcher because it bypasses the agent-creation loop. The edge-threshold sweep peaks at the default θ=0.3\theta=0.3, with θ=0.5\theta=0.5 close behind.

Varianthumanevalmbppgsm8kmathdrophotpotqa
Reference0.9400.9400.9800.9000.6400.820
No-Matrix0.9400.9000.9800.8400.5300.760
No-Evolve0.9000.9601.0000.9200.5600.780
TF-IDF0.8600.9201.0000.8200.4500.660
LLM-Match0.9200.9401.0000.8800.5800.720
θ=0.0\theta= 0.00.8400.9001.0000.8200.6400.750
θ=0.5\theta= 0.50.9000.9201.0000.8400.6600.810
θ=0.7\theta= 0.70.8200.9201.0000.7800.5800.670

Table 5. Per-benchmark pass-rate per ablation cell on the Mixed test split (Linear mode, n=50n=50 per benchmark per cell).

SystemOverallCODEMATHQA
AFlow (Zhang et al. 2025c)0.6760.4700.8100.747
ADAS (Hu, Lu, and Clune 2025)0.6940.4800.8700.731
MaAS [34]0.400———
MetaAgent (Zhang, Liu, and Xiao 2025)0.7510.5000.9400.812
WorkflowOps (Linear)0.870 [0.830, 0.907]0.9400.9400.730
WorkflowOps (DAG)0.890 [0.853, 0.923]0.9600.9400.770

Table 3. End-to-end accuracy on the Mixed test split (300 problems). Per-category numbers are unweighted means across the benchmarks within each category. “Overall” is the unweighted mean over all rows; brackets are 95% bootstrap CIs (nboot=2000n_{\mathrm{boot}}=2000) on WorkflowOps rows where per-row pass/fail data is available. Best result per column is in bold.

SystemOverallCODEMATHQA
AFlow (Zhang et al. 2025c)0.2180.0000.2000.365
ADAS (Hu, Lu, and Clune 2025) (Self-Refine, partial)0.7290.7510.5670.723
MetaAgent (Zhang, Liu, and Xiao 2025)0.6180.6480.4500.584
WorkflowOps (Linear)0.763 [0.731, 0.795]0.7700.8500.700
WorkflowOps (DAG)0.770 [0.738, 0.802]0.7800.8500.700

Table 4. End-to-end accuracy on the Mixed_Hard test split (694 problems): AIME 2025 (math), LiveCodeBench and Code-Contests (code), and GPQA Diamond (qa). Best result per column in bold. ADAS results are from the strongest per-benchmark strategy among the 10 of 25 candidate strategies that completed; MaAS deadlocked and is omitted.

Efficiency Details

We report per-query operational characteristics from the Reference cell on the Mixed test split. Table 6 summarizes calls, tokens, latency, and workflow statistics; Table 7 compares DAG and Linear median wall time.

StatisticReference
LLM calls / query (mean)14.8
decomposition1.0
matcher (sufficiency check)∼0\sim0 (embedding)
agent-creation loop∼7\sim7 (3.5 new agents avg.)
agent execution∼6\sim6 (one per node)
Prompt tokens / query (mean)∼10\sim10k
Completion tokens / query (mean)∼33\sim33k
Total tokens / query (mean)43,620
Wall-time / query (median)605 s
Workflow nodes / query (mean)5.62
Workflow edges / query (mean)5.38
Matrix alignment score Aˉ\bar{A}0.181
Avg. sufficiency score ϕˉ\bar{\phi}0.748
Avg. dynamic agents created3.50
Gap closure rate0.96
Errors0/300

Table 6. Operational statistics for the Reference cell on the Mixed test split (n=300n = 300). “Calls/query” and “Tokens/query” are means; “Wall-time/query” is median.

CellLinear (s)DAG (s)Ratio
Reference (test, n=300n=300)6055980.99×
No-Matrix (test, n=300n=300)5885901.00×
No-Evolve (test, n=300n=300)2482501.01×
TF-IDF (test, n=300n=300)4254080.96×
LLM-Match (test, n=300n=300)2071990.96×

Table 7. DAG vs. Linear median wall-time per query on the Mixed test split and selected ablation cells. “Ratio” is DAG-median / Linear-median; values close to 1 indicate near-equal wall time.

Normalizing by the cheapest cell, No-Evolve (7.8 calls, 15.9k tokens), Reference spends 1.9× the calls and 2.7× the tokens for +1.7 points of overall accuracy. The agent-creation loop is the dominant driver of latency variance: queries that trigger multiple creation rounds run approximately 3× longer than queries where the static pool is already sufficient.

DAG mode provides consistent accuracy gains in cells where the matrix mechanism is active, but wall-time differences are small because Mixed workflows are shallow. Thus, the main benefit of DAG mode in this setting is structural guidance rather than large parallel speedup.

Additional Discussion

Lightweight priors vs. trained optimizers. The transition matrix is built from simple frequency counting without gradient-based training. This design is useful when execution history exists but task-specific training is expensive: the matrix is interpretable, updates incrementally as new workflows complete, and degrades gracefully when no historical transition is available. The matrix interface can also support learned completion methods, such as matrix factorization or neural completion, without changing the surrounding orchestration pipeline.

Embedding matching vs. TF-IDF. Sentence embeddings capture semantic relationships beyond keyword overlap, such as “regulatory audit” and “compliance assessment,” while retaining low cost because agent embeddings are pre-computed and cached. The matching module is abstracted, so future systems can replace the current encoder with domain-specific embeddings or cross-encoder rerankers.

Matrix sparsity. With approximately 65 bootstrapped workflows over a 35-agent grid, the transition matrix has about 20% non-zero entries. This sparsity is acceptable because the matrix is used as soft guidance; workflow construction still preserves hard dependencies when the matrix has no relevant history. As more workflows execute, matrix density increases organically, and LLM-predicted links for newly created agents provide immediate approximate guidance that can later be refined.

Agent card specification

Each agent in WorkflowOps is defined by a structured YAML card with the schema listed in Table 8.

FieldTypeDescription
idstringUnique identifier (snake_case)
namestringHuman-readable agent name
descriptionstringCapability description (primary signal for matching, 2–3 sentences)
keywordslist[string]Search keywords for enriching embedding vectors
categoryenumOne of: research, content, analysis, business, engineering, quality, planning
instructionsstringSystem prompt governing agent behavior
llm_configobjectModel configuration: model, temperature, max_tokens
metadatadictOptional key-value metadata (e.g., priority, domain)

Table 8. Agent card schema.

In addition, each predefined agent has a corresponding three-layer Agent Card providing richer structured metadata:

  • Meta layer: Role identity (role_definition), semantic classification (semantic_tags), and overarching purpose (primary_objective).

  • Reasoning layer: Capabilities, anti-patterns (domain-specific guardrails), and declared dependencies (upstream/downstream agents).

  • Execution layer: System prompt, output schema, and tool selection.

Message schema

The unified AgentMessage schema enables O(1)O(1)-composable inter-agent communication; Table 9 lists its fields.

FieldTypeDescription
message_idUUIDUnique identifier
message_typeenumTASK, RESULT, ERROR, or HANDOFF
source_agentstringSending agent ID
target_agentstringReceiving agent ID
contentstringPrimary natural language body
structured_datadictOptional key-value structured data
artifactslistTyped attachments with name, content_type, content
task_contextstringOriginal user task (immutable, passed through entire workflow)
workflow_idstringWorkflow this message belongs to
step_indexintCurrent step number
parent_message_idUUIDUpstream message ID for traceability
metadatadictArbitrary metadata dictionary

Table 9. AgentMessage schema.

Predefined agent pool

The system ships with 35 predefined agents organized into 7 categories, summarized in Table 10.

CategoryCountRepresentative capabilities
Research5Information gathering, literature review, hypothesis generation
Content8Writing, summarization, translation, report synthesis
Analysis2Data analysis, benchmarking, comparative evaluation
Business11Risk assessment, market analysis, legal compliance, financial modeling
Engineering4Code generation, data processing, visualization
Quality4Review, editing, fact-checking, peer review simulation
Planning1Strategic planning and task decomposition
Total35

Table 10. Predefined agent pool composition.

Configuration parameters

Table 11 lists the key configuration parameters and their defaults.

ParameterDefaultDescription
τ\tau (SUFFICIENCY_THRESHOLD)0.45Minimum matching score for subtask-agent assignment
θ\theta (EDGE_THRESHOLD)0.3Minimum transition probability for matrix-suggested edges
RR (MAX_CREATION_ROUNDS)3Maximum rounds of dynamic agent creation
TOP_K_MATCHES3Number of top agent candidates per subtask
MAX_DAG_BRANCHING3Maximum branching factor in DAG workflows
LLM_TEMPERATURE0.3Default temperature for LLM calls
LLM_TIMEOUT120sRequest timeout for LLM API calls
MAX_RETRIES2Maximum retry attempts for failed LLM calls

Table 11. Key configuration parameters and their defaults.

References

  1. [1]Aho, A. V.; Garey, M. R.; and Ullman, J. D. 1972. The Transitive Reduction of a Directed Graph. SIAM Journal on Computing, 1(2): 131–137.DOI
  2. [2]Austin, J.; Odena, A.; Nye, M.; Bosma, M.; Michalewski, H.; Dohan, D.; Jiang, E.; Cai, C.; Terry, M.; Le, Q.; et al. 2021. Program Synthesis with Large Language Models. arXiv preprint arXiv:2108.07732.arxiv.org/abs/2108.07732
  3. [11]Balunović, M.; DeKoninck, J.; Petrov, I.; Jovanović, N.; and Vechev, M. 2026. Math Arena: Evaluating LLMs on Uncontaminated Math Competitions. arXiv:2505.23281.arxiv.org/abs/2505.23281
  4. [12]Banerjee, D.; Xu, C.; and Singh, G. 2026. SEVerA: Verified Synthesis of Self-Evolving Agents. arXiv preprint arXiv:2603.25111.arxiv.org/abs/2603.25111
  5. [13]Chen, M.; Tworek, J.; Jun, H.; Yuan, Q.; de Oliveira Pinto, H. P.; Kaplan, J.; Edwards, H.; Burda, Y.; Joseph, N.; Brockman, G.; Ray, A.; Puri, R.; Krueger, G.; Petrov, M.; Khlaaf, H.; Sastry, G.; Mishkin, P.; Chan, B.; Gray, S.; Ryder, N.; Pavlov, M.; Power, A.; Kaiser, L.; Bavarian, M.; Winter, C.; Tillet, P.; Such, F. P.; Cummings, D.; Plappert, M.; Chanzis, F.; Barnes, E.; Herbert-Voss, A.; Guss, W. H.; Nichol, A.; Paino, A.; Tezak, N.; Tang, J.; Babuschkin, I.; Balaji, S.; Jain, S.; Saunders, W.; Hesse, C.; Carr, A. N.; Leike, J.; Achiam, J.; Misra, V.; Morikawa, E.; Radford, A.; Knight, M.; Brundage, M.; Murati, M.; Mayer, K.; Welinder, P.; McGrew, B.; Amodei, D.; McCandlish, S.; Sutskever, I.; and Zaremba, W. 2021. Evaluating Large Language Models Trained on Code. arXiv:2107.03374.
  6. [14]Cobbe, K.; Kosaraju, V.; Bavarian, M.; Chen, M.; Jun, H.; Kaiser, L.; Plappert, M.; Tworkek, J.; Hilton, J.; Nakano, R.; Hesse, C.; and Schulman, J. 2021. Training Verifiers to Solve Math Word Problems. arXiv preprint arXiv:2110.14168.arxiv.org/abs/2110.14168
  7. [15]CrewAI. 2024. CrewAI: Multi-Agent Orchestration Framework. https://www.crewai.com/.
  8. [16]Dua, D.; Wang, Y.; Dasigi, P.; Stanovsky, G.; Singh, S.; and Gardner, M. 2019. DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphs. In Proc. of NAACL.arxiv.org/abs/1903.00161
  9. [17]Google. 2026. Agent-to-Agent (A2A) Protocol. https://google.github.io/A2A/.
  10. [18]Guan, B.; Wang, R.; and Shen, Y. 2025. A Heterogeneous Graph Optimization Perspective for Multi-Agent System Workflows. arXiv preprint. Submitted to ICLR 2026.
  11. [19]Hendrycks, D.; Burns, C.; Kadavath, S.; Arora, A.; Basart, S.; Tang, E.; Song, D.; and Steinhardt, J. 2021. Measuring Mathematical Problem Solving With the MATH Dataset. arXiv:2103.03874.
  12. [21]Jain, N.; Han, K.; Gu, A.; Li, W.-D.; Yan, F.; Zhang, T.; Wang, S.; Solar-Lezama, A.; Sen, K.; and Stoica, I. 2024. LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code. arXiv preprint arXiv:2403.07974.arxiv.org/abs/2403.07974
  13. [22]LangChain. 2024. LangGraph: Multi-Agent Workflows. https://blog.langchain.dev/langgraph-multi-agent-workflows.
  14. [24]Reimers, N.; and Gurevych, I. 2019. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 3982–3992.arxiv.org/abs/1908.10084
  15. [25]Rein, D.; Hou, B. L.; Stickland, A. C.; Petty, J.; Pang, R. Y.; Dirani, J.; Michael, J.; and Bowman, S. R. 2023. GPQA: A Graduate-Level Google-Proof Q&A Benchmark. arXiv:2311.12022.arxiv.org/abs/2311.12022
  16. [27]Sun, L.; Liu, C.; Zhang, C.; Wu, Y.; Lu, W.; and Wu, N. 2026. AgentPO: Enhancing Multi-Agent Collaboration via Reinforcement Learning. In International Conference on Learning Representations (ICLR).
  17. [29]Wang, Z. Z.; Mao, J.; Fried, D.; and Neubig, G. 2024. Agent Workflow Design. arXiv preprint arXiv:2409.07429.
  18. [31]Yang, Z.; Qi, P.; Zhang, S.; Bengio, Y.; Cohen, W. W.; Salakhutdinov, R.; and Manning, C. D. 2018. HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering. In Conference on Empirical Methods in Natural Language Processing (EMNLP).arxiv.org/abs/1809.09600
  19. [32]Yue, Y.; et al. 2025. MasRouter: Learning to Route LLMs for Multi-Agent Systems. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), 15549–15572.
  20. [33]Zhang, G.; Chen, K.; Wan, G.; Chang, H.; Cheng, H.; Wang, K.; Hu, S.; and Bai, L. 2025a. EvoFlow: Evolving Diverse Agentic Workflows On The Fly. arXiv preprint arXiv:2502.07373.arxiv.org/abs/2502.07373
  21. [34]Zhang, G.; Niu, L.; Fang, J.; Wang, K.; Bai, L.; and Wang, X. 2025b. Multi-agent Architecture Search via Agentic Supernet. arXiv:2502.04180.arxiv.org/abs/2502.04180
  22. [35]Zhang, G.; et al. 2026a. EvoRoute: Experience-Driven Self-Routing LLM Agent Systems. arXiv preprint arXiv:2601.02695.arxiv.org/abs/2601.02695
  23. [37]Zhang, T.; Zhou, Z.; Wan, J.; Hu, T.; Wang, C.; He, X.; and Hong, R. 2026b. Learning Transferable Topology Priors for Multi-Agent LLM Collaboration Across Domains. arXiv preprint arXiv:2605.17359.arxiv.org/abs/2605.17359
  24. [38]Zhang, Y.; Liu, X.; and Xiao, C. 2025. MetaAgent: Automatically Constructing Multi-Agent Systems Based on Finite State Machines. arXiv:2507.22606.arxiv.org/abs/2507.22606

Paper details

vlnc:W_cfw9dz36
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents