WorksComputer Science
Pay for the Fault, Not the Flow: Label-Free In-Flow Multi-Agent Workflow Optimization
Abstract
Large language models (LLMs) increasingly construct multi-agent workflows that decompose a complex task and assign specialist agents from a pool. However, building such a workflow well remains challenging: how finely to divide the task, which agent to trust with each subtask, and when to create a new specialist are all critical decisions a workflow constructor needs to settle up front. Thus, whether each subtask succeeds remains unknown until the workflow runs. Yet, improving a workflow is costly. Locating a fault usually requires a reference answer, a graded outcome, or a trained assessor, and the fix is applied to the whole workflow through re-execution, re-search, or retraining. We propose InFlowOp, which prices every decision in one label-free cost that weighs how well an agent's competence meets what a subtask demands against how much that agent takes to run. Before execution, InFlowOp bidirectionally determines the granularity of task decomposition and agent assignment following from the cost rather than from a fixed template. During execution, InFlowOp corrects a fault with the cheapest move via the same cost that serves the workflow both as it is built and as it runs. Facing the workflow-level evaluation challenge, we introduce Braid, a benchmark whose tasks require multi-agent coordination beyond single-agent capability. Across various domains and backbones, InFlowOp outperforms single agent baselines by up to , achieving with in-flow optimization. Our project page: https://xhguo7.github.io/InFlowOp/.
Introduction
Large language models have grown from single-turn responders into agents that plan, call external tools, and interact with their environment ((Schick et al., 2023; Wang et al., 2023a; Shen et al., 2023)). More recently, they begin to organize one another ((Hong et al., 2024; Zhuge et al., 2024)). Given a task and a pool of available specialist agents, an agent now writes the division of work itself, deciding which agent takes each part and in what order the parts run ((Zhang et al., 2025b; Zhou et al., 2026; Yue et al., 2026)). What such a flow contributes is structure: the work is divided explicitly, each part goes to an agent suited to it, and progress accumulates step by step rather than resting on one long attempt.

Figure 1. INFLOWOP for In-Flow Optimization. Complex tasks challenge single agents with long-context reasoning, while multi-agent systems introduce execution failures and coordination overhead. INFLOWOP optimize agent behaviors in-flow, enabling efficient collaboration at lower cost.
Yet the decisions such an agent makes are narrower than they appear. How finely the task is divided is fixed in advance,
Xuehang Guo <[email protected]>, Haoyu Wang <[email protected]>, Haifeng Chen <[email protected]> such as by a template, a prompt, or a chosen number of steps. Where it does adapt, it adapts to the task alone (Liu et al., 2025; Madhwal et al., 2026; Su et al., 2026). What it would cost the available agents to carry out one division rather than another seldom enters. Where nothing available fits, the work is either forced onto another agent or a new one is created, and neither choice is priced against the other (Zhang et al., 2025c; Wu et al., 2025; Shang et al., 2025). Once the flow runs, the evidence execution produces goes unused: identifying which step goes wrong is treated as needing a reference answer, a graded outcome, or a trained assessor. The first two do not exist while the flow is running, and the third requires supervision the task alone cannot provide. Methods that dispense with all three optimize only once the run has finished, by replaying the completed trace to locate the failure or rerunning the whole flow for a better answer [3] (Lee et al. 2026a; Lin et al. 2026). Meanwhile, when something goes wrong, the unit of fix is the whole flow, e.g., re-executed, re-searched, or its constructor re-trained. Thus, improvement is priced at the size of the workflow rather than of the fault, and every step that already succeeds is paid for twice (Hwang et al., 2026; Li et al., 2026; Dang et al., 2025). Together, these leave both challenges of § 2 open: building a workflow well under uncertainty and improving one at lower cost. Worse still, neither is put at risk: the tasks these systems are measured on are largely ones a single competent agent already handles [6] (Zhou et al. 2026; Sun et al. 2026).
InFlowOp answers these in two stages (§ 3), pricing every choice in one currency that needs no labels: how well an agent’s competence meets what a part of the work demands, weighed against how much that agent takes to run. In the first stage, COALESCE decomposes the task to its finest parts and find the proper granularity through coalescing (§ 3.1). In the second stage, InFlowOp performs in-flow dynamic optimization by turning the same currency on the flow as it runs, identifying and correcting subtasks locally without losing the execution progress (§ 4.1). One label-free cost thus serves the workflow both as it is built and as it runs. To sum up, our main contributions are:
COALESCE: the decomposition granularity is priced, not presumed. A cost-driven bidirectional workflow construction approach (Alg. 3) over the agents at hand settles how finely the task is divided, enabling agent creation only when no available agent clears a competence bar (§ 3.1).
InFlowOp: optimization in flow, without supervision. We propose InFlowOp (Alg. 1), a two-stage training-free framework that leverages COALESCE to build workflows and optimizes them in-flow (Alg. 4), without any reference answer, graded outcome, or trained assessor (§ 4.1).
Braid: a benchmark for reasoning over agent-interdependent divisions. Workflow-level tasks are those a single agent cannot solve effectively (§C). This is the premise that motivates workflows in the first place, yet one that existing benchmarks seldom satisfy (§C.1). We introduce Braid (§ 5), a workflow-level benchmark that requires multi-agent coordinations beyond single-agent competence.
Evaluation: gains across domains and backbones. Our evaluation across eight domains, six backbones, and four workflow constructors shows that InFlowOp improves over a single agent from +7.15% to +11.97% under a matched turn budget, and outperforms workflows baselines by up to +9.64% (§ 6).
Preliminaries
When tackling complex tasks that cannot be resolved by a single agent, we build multi-agent workflows:
The problem. A task is addressed using a pool of specialist agents . An LLM-powered workflow constructor produces a workflow that orchestrates agents from . The workflow is then executed to evaluate its performance against the reference answer of . The objective is to maximize Perf at minimal cost via the flow . However, this is affected by (1) : how is constructed, and (2) : how Perf is optimized (§ 3).
Problem Formulation
Pool-Aware Workflow Construction: Given a task and a pool of specialist agents, automatically assemble a multi-agent workflow that solves the task both effectively and efficiently.
Effective to solve (reliability). A workflow is expected to reliably produce the correct final answer. When composing many agents, its reliability is bounded by each agent’s progress.
Efficient to run (execution). A more complex task calls for a more complex workflow, accordingly more subtasks, agents, and latency to run. So the complexity of a workflow should be matched to the task, spending no more than the task demands.
Efficient to improve (optimization). When the workflow falls short, improving it should be cheap, without the time and compute of full re-execution, re-search, or model training.
Building a Workflow under Uncertainty. Specialist agents in the pool differ markedly in competence, thus binding a subtask to an ill-suited agent is a primary source of failure (Liu et al., 2025; Madhwal et al., 2026; Su et al., 2026). A constructor that composes agents without regard to their fit therefore produces unreliable workflows. On the other hand, the agent pool is also finite and may hold no agent well-suited to its assigned work. This induces new agent creation rather than forcing a poor fit, while at the added cost of specifying and instantiating it (Zhang et al., 2025c; Wu et al., 2025; Shang et al., 2025). Nevertheless, even a well-matched agent is not guaranteed to succeed: whether it completes its assigned work correctly is uncertain, and that uncertainty surfaces only once the workflow runs, which is why fault attribution is studied on completed executions [3] (Lee et al. 2026a; Lin et al. 2026). Execution alone is not conclusive either, as a step that satisfies what it declares can still mislead the steps that follow (§D.4). Collectively, these raise the first core challenge of workflow construction: how to build a good workflow under uncertainty?
The Cost of Workflow Optimization. Once a workflow runs, execution finally reveals which steps falter. However, acting on such evidence is expensive. The naive remedy is to re-execute the workflow or re-search over a set of candidate workflows, while discarding everything already computed and progressed (Hwang et al., 2026; Li et al., 2025b; Yoon et al., 2026). An increment of quality thereby charges additional full execution (Figure 9). Worse still, it presumes a supervision signal absent at inference: no ground-truth answer is available to say what went wrong or where to improve. On the other hand, a more targeted way is post-training, guiding to learn on success cases via supervised finetuning or improve via reward signals through reinforcement learning (Li et al., 2026; Peng et al., 2026; Nielsen et al., 2026; Dang et al., 2025). Whereas the time and computation cost of data preparation and model training can go far beyond test-time re-execution. These studies reveal the second core challenge on workflow optimization: how to improve a workflow at lower cost?
Figure 9. What Each Method Spends, and What It Earns. Mean accuracy (%) over the 16 arms of Table 1 (left), and the tokens a solver spends per task over the same arms (right, logarithmic), with one color per backbone. S-LLM and S-Agent are the single-LLM and single-agent baselines (§5.1). Best-of-N repeats workflow construction and execution times and keeps its best outcome. Both costs are stated as a multiple of one single-agent run on the same backbone. Each method’s turn cost is given beneath its name.
Agent Card
Every agent is represented to the estimator by a card, the sole evidence an atom is scored against (1) declared competence: a written brief of what the agent is designed for, including its role, domain, and the skills and tools it commands; and (2) self-evolving empirical profile: the record an agent accumulates through execution, profiling which kinds of work it has realized successfully and where it has faltered. So a declared competence is progressively complemented by one that is observed.
InFlowOp: the Flow as Built, the Flow as Run
How to build a reliable workflow, and optimize it at low cost (§ 2)? Rather than relying on costly training or sampling, we cast both questions as minimizing a single measurable, annotation-free surrogate: the workflow’s cost, which couples its reliability of success with its latency to run. As such, we minimize this cost in two stages (§D.1): (1) decomposition-aware workflow construction (§ 3.1) constructs a low-cost workflow before execution, and (2) in-flow dynamic optimization (§ 4.1) tempers it adaptively during execution.

Figure 2. Bidirectional Workflow Construction and In-Flow Optimization. Our bidirectional decomposition-aware workflow construction (§ 3.1) builds a workflow at the proper granularity with minimal cost in two directions: top-down decomposition and bottom-up coalescing (Alg. 3). In-flow dynamic optimization (§ 4.1, Alg. 4) then optimizes by retrospectively applying the cost matrix to construct the credit matrix, fixing faulty intermediate steps in flow without reference answer. The constructed workflow is executed in the sandbox, where INFLOWOP optimizes it as the execution proceeds (Alg. 1).
Bidirectional Decomposition-Aware Workflow Construction
Decomposition. A complex task seldom fits any single agent. Instead, its parts demand different competences that no one agent commands (§ 2). Therefore, we decompose the task into subtasks, each narrow enough to hand to a well-fit agent and, being narrower, more reliably completed. A workflow is thus a triple , where is a set of subtasks, denotes an assignment binding a subtask to an agent , and represents a dependency graph, which is a directed acyclic graph (DAG) with edges linking subtasks’ nodes. Thus, the critical path of , i.e., its longest chain of dependent subtasks, sets the workflow’s latency. Consequently, the right granularity is a question of cost: finer decomposition narrows each subtask and raises per-subtask reliability, but multiplies agents to run with increased latency cost and the points at which the workflow may fail with increased reliability cost. This motivates our COALESCE: bidirectional cost-driven atomic coalescing (Alg. 3).
Cost matrix. Scoring Eq. (21) is based on the reliability cost of realizing an atom with an agent . We compute it without labels by matching each agent’s declared competence and self-evolving empirical profile against what that atom demands, via a rubric semantic estimator that scores how well a supplied text satisfies a demanded one: . Running over all atoms and agents, it constructs the cost matrix, with rows as atoms and columns as agents. An agent covers Algorithm 1 InFlowOp (): The Flow as Built, the Flow as Run (§ 3, §D.1)
Require: task ; agent pool
One estimator serves both stages: match(demand, supply) prices pairings into , and scores declared conditions against realized states in flow. Stage II inherits the workflow with contracts from Stage I.
Ensure: the final answer and the workflow that produced it
Stage I: Workflow Construction (§ 3.1; Alg. 3)
▷ cost matrix; where the pool falls short (Eq. (19), 1)
▷ settles granularity and agent assignment (Eq. (2))
Stage II: In-Flow Optimization (§ 4.1; Alg. 4)
for all do ▷ in topological order
▷ credit matrix: for and for (Eq. (3))
▷ which side of the contract is breached (Eq. (4))
if then
▷ halt at the fault, not at the flow
iff ▷ else roll back: never worse than built
▷ only the fault is paid for (Eq. (7))
end if
end for
return ▷ Eq. (8)
an atom when its cost clears a competence bar , so the matrix also exposes where the pool falls short:
the coverage residual of : marks an atom no pooled agent can be trusted with, which triggers new agent creation at penalty . With dynamic matrix enabled, each created agent joins the matrix as a new column that every atom can be matched to. As such, we obtain the cost matrix with latencies to guide COALESCE in finding proper granularity for constructing better workflows (§ 3.1).
Taxonomy of Cost
With various kinds of costs incurred across each workflow’s construction, execution, and optimization stages (§ 2), we organize them into one systematic cost taxonomy (§D.3):
Reliability cost: (Eq. (19)). How much a workflow risks failing, i.e., the price of entrusting each subtask to an agent that may not realize it correctly.
Latency cost: (Eq. (20)). How much a workflow spends to run, i.e., the time and compute its execution consumes.
Creation cost: (Eq. (21)). The price of creating a new agent when the pool holds none that fits, under the uncertainty of its true competence.
Workflow cost: (Eq. (21)). The overall cost of a constructed workflow, jointly balancing reliability, latency, and exactly what our construction method aims to minimize (Eq. (2)).
Optimization cost. The price of improving a workflow, e.g., the effort of re-execution, re-search, re-sampling, model training, etc., separate from the workflow’s own cost.
Cost-driven coalescing. Not every atom is needed: we keep only , those from which the goal is reachable over , and discard the rest (Alg. 3). COALESCE then proceeds over partial coalescings , each placing a prefix of in topological order. Extending by its next atom admits two moves: OPEN() starts a new subtask, and MERGE() folds into an open subtask , so a workflow is compacted only where merging pays. A partial coalescing is dropped once it can no longer improve on the best complete one found, so the optimum always survives (§D.1). COALESCE returns the least-cost coalescing within expansions, and LIFT then carries the atom dependencies to the subtasks of , inducing the subtask graph .
Objective. Decomposition-aware construction thus reduces to one optimization over decompositions , assignments , and the dependency graph they induce, for the least-cost workflow:
where is the dependency graph induced by the decomposition , and denotes the agents created for . COALESCE (Alg. 3) solves it through bidirectional cost-driven atomic coalescing, scoring every candidate pairing via cost matrix and atom coalescing to descend . This cost prices structures COALESCE emits via meta primitives (§D.2).
Bidirectional Cost-Driven Atomic Coalescing
Rather than fixed granularity, we let cost steer the appropriate granularity in two directions:
Top-down atomic decomposition: the task is decomposed into its finest atoms , each individually reliable.
Bottom-up cost-driven coalescing: guided by cost matrix (§ 3.1), these atoms are coalesced into subtasks , each bound to its lowest-cost agent, either existing in pool or newly created, merging only where a coarser subtask lowers the overall cost.
Granularity is therefore an outcome of cost-driven coalescing rather than a fixed choice, adapting to each task’s requirements and complexity (COALESCE, Alg. 3).
In-Flow Dynamic Optimization
A constructed workflow is only a prediction of what is expected to work (§ 2). Execution is therefore the first place a workflow’s real weaknesses become visible, while also potentially expensive to act on if acting means re-running or re-searching the workflow in full (§ 2). Instead, we optimize in flow: a fault is caught as it arises, execution pauses at the subtask it arises in, the workflow is tempered there locally, and execution resumes over everything already achieved.
In-Flow Dynamic Optimization
Execution proceeds subtask by subtask. Whenever a realized subtask is found faulty, we temper the workflow there, and execution resumes, rather than restarting it:
Detect: match each realized subtask against the contract its decomposition declared, using only what execution makes observable without reference.
Pause: halt at the subtask that falters, not at the workflow it belongs to, so every progress already achieved stays intact.
Temper: correct the fault along a ladder of moves ordered by cost matrix (§ 3.1), committing a change only once it demonstrably holds.
Resume: re-run only the tempered subtask, retaining every result already computed.
Detection. COALESCE does not merely coalesce atoms into subtasks. Instead, it establishes each subtask with the contract its atoms declare, containing the input conditions that requires, and the output conditions it is expected to deliver. This contract is what makes a fault observable without supervision by stating what should hold without knowing the answer. Detection then reuses cost matrix (§ 3.1) and applies retrospectively: where construction matches an atom’s demands against an agent’s card, in-flow detection matches each declared condition against the work actually realized, the observed input and output of :
with for input conditions and for output ones. The resulting credit matrix is the retrospective counterpart of cost matrix. Which side breaches blames the fault, and the blame is what a correction respects:
An unmet output condition means the subtask is well posed but its agent underdelivered. An unmet input condition means the subtask is not given what it needs, which no choice of agent can undo but COALESCE. Alongside this semantic signal, we also retain a causal signal: a subtask that yields no usable output is faulty by observation and needs no matching.
Cost-ordered ladder. We define two moves to correct a workflow at a faulty subtask, and the cost model of § 3.1 prices both. RE-ASSIGN leaves and untouched and updates the agent, perturbing a single term of Eq. (19). RE-DECOMPOSE updates by a finer sub-DAG, changing and together by adding subtasks, dependencies, and possibly a created agent, and paying a fresh run of COALESCE besides. Pricing the two in that shared currency orders them:
which defines the cost-ordered ladder: spend the cheapest move the fault admits, and climb only once that move is exhausted. The blame (Eq. (4)) fixes the entry rung: a fault blamed on assignment enters at RE-ASSIGN, one blamed on decomposition at RE-DECOMPOSE.
Temper. At the RE-ASSIGN rung, the cost matrix answers directly: the next-best agent is the same columnwise minimum construction takes, now restricted to agents not yet observed to fail on ,
where collects those attempted and ruled out. RE-ASSIGN is committed only if executes and its unmet conditions clear under Eq. (3); otherwise it is rolled back so that no unverified change survives. When the candidates are exhausted, the evidence has ruled out the assignment as the cause and the ladder climbs: COALESCE is re-invoked on locally, under its declared contract , and the resulting sub-DAG is spliced in its place. Every move is budgeted, for RE-ASSIGN and for RE-DECOMPOSE, and a subtask that exhausts its budget reverts to its original realization: tempering can improve a workflow, but never leaves it worse than the one construction produces.
Scoped resumption. Execution pauses at , and tempering it invalidates only the subtasks that depend on it, so every result computed outside that region remains valid. Execution therefore resumes over the affected closure alone:
where are the subtasks reachable from in , and replay cached results for every subtask outside . The price of an optimization step is thus the cost of the local correction only, bounded by rather than by . An optional global localization is elaborated in §D.5.
Objective. In-flow optimization descends the same cost from the constructed workflow (Eq. (2)) under evidence:
where is the set of workflows reachable from by ladder moves (Eq. (5)), each confined to a closure (Eq. (7)); collects the pairings observed to breach their contracts (Eq. (6)); and is Eq. (21) evaluated with in place of .
Braid: Benchmark Reasoning over Agent-Interdependent Divisions
Benchmark construction. A workflow earns its necessity only where a single agent cannot handle the task alone, yet workflows are largely measured on suites one competent agent already solves (§C.1). BRAID closes this gap by composing each task at different complexity levels via two composition methods: distributed composition gives every question its own gold source, while anchored composition shares one gold source across all provides sources. We enforce four quality-control criteria, and a task failing any of them is never written (§C.2). Built on 10 public datasets, BRAID spans 19 evaluation-only arms across 8 domains (Table 3).
| Original Dataset | BRAID | Composition | Task Type | Data Type | ||
| Document | ||||||
| MMLongBench-Doc ((Ma et al., 2024)) | MMLongBench-Doc | Distributed | Mixed | Document | 426 | 175 |
| MMLongBench-Doc ((Ma et al., 2024)) | MMLongBench-Doc | Anchored | Mixed | Document | 498 | 305 |
| LongDocURL ((Deng et al., 2025)) | LongDocURL | Distributed | Mixed | Document | 441 | 340 |
| LongDocURL ((Deng et al., 2025)) | LongDocURL | Anchored | Mixed | Document | 399 | 325 |
| Slide | ||||||
| SlideVQA ((Tanaka et al., 2023)) | SlideVQA-Doc | Distributed | Open-Ended | Document | 1557 | 1000 |
| SlideVQA ((Tanaka et al., 2023)) | SlideVQA-Doc | Anchored | Open-Ended | Document | 1470 | 970 |
| SlideVQA ((Tanaka et al., 2023)) | SlideVQA-Img | Distributed | Open-Ended | Image | 1581 | 1005 |
| SlideVQA ((Tanaka et al., 2023)) | SlideVQA-Img | Anchored | Open-Ended | Image | 1470 | 1000 |
| Finance | ||||||
| DocFinQA ((Reddy et al., 2025)) | DocFinQA | Distributed | Numeric | Document | 84 | – |
| DocFinQA ((Reddy et al., 2025)) | DocFinQA | Anchored | Numeric | Document | 192 | – |
| Chart | ||||||
| CharXiv ((Wang et al., 2024)) | CharXiv | Distributed | Mixed | Image | 429 | 430 |
| ChartMuseum ((Tang et al., 2026)) | ChartMuseum | Distributed | Mixed | Image | 807 | 805 |
| Math | ||||||
| MATH ((Hendrycks et al., 2021)) | MATH (Level 5) | Distributed | Numeric | Text | 603 | 605 |
| OlympiadBench ((He et al., 2024)) | OlympiadBench-Math (Text) | Distributed | Numeric | Text | 660 | 660 |
| OlympiadBench ((He et al., 2024)) | OlympiadBench-Math (Multimodal) | Distributed | Numeric | Image | 150 | 150 |
| Physics | ||||||
| OlympiadBench ((He et al., 2024)) | OlympiadBench-Physics (Text) | Distributed | Numeric | Text | 234 | 200 |
| OlympiadBench ((He et al., 2024)) | OlympiadBench-Physics (Multimodal) | Distributed | Numeric | Image | 456 | 455 |
| Science | ||||||
| HLE ((and Phan et al., 2026)) | HLE | Distributed | Mixed | Text | 1470 | 785 |
| Coding | ||||||
| TACO ((Li et al., 2023)) | TACO | Distributed | Code Generation | Text | 1362 | 1360 |
Table 3. Data Statistics. BRAID as built: 19 evaluation-only arms over 8 domains, with questions each yields at two complexity levels and . Original Dataset shows where a BRAID task is adapted from. For SlideVQA, we construct two variants: (1) SlideVQA-Doc: providing slides as a document, and (2) SlideVQA-Img: providing slides as individual images. Task Type is the answer type a BRAID sample’s questions demand, and Data Type is the type of sources provided beside input questions. A level is absent where the dataset yields too few questions () to evaluate on, and Anchored is absent where no source of that dataset carries questions to anchor.
Evaluation metrics. BRAID grades every question separately according to its answer type, so the accuracy of a task is the mean score over its questions and the accuracy of a BRAID dataset is the mean over its tasks (§C.3). Our rubric evaluation metrics cover answer types spanning numeric, mathematical, textual, multiple-choice, list, and coding answers.
Experiments
Experiment Setup
Setup. We compare six systems under the same pool of agents. (1) Single LLM answers a task in one model call, without any tools or skills1. (2) Single agent answers with the full tools and skills provided. The remaining four construct workflows: (3) greedy-search and (4) COALESCE build workflows respectively, and our comparison between them isolates what the decomposition alone contributes. (5) COALESCE + in-flow adds the tempering of § 4.1, and (6) the full method further scores each agent on the self-evolving profile, rather than on its card alone.
Models. We evaluate two open-source models, Qwen3.5 (4B and 9B) (Team, 2026), together with four close-source models, GPT-5-mini (OpenAI, 2025), GPT-5.4-mini (OpenAI, 2026b), GPT-5.4 (OpenAI, 2026a), GPT-5.6-luna (OpenAI, 2026c).
Data. We evaluate on BRAID (§ 5), covering 19 evaluation arms over 14 BRAID datasets adapted from 10 public datasets across 8 domains (Table 3). Each is constructed at two complexity levels and two compositions a dataset supports2.
What the Flow Earns and What Earns the Flow
Consistent gains across domains and backbones. InFlowOp improves every backbone over both single-LLM and single-agent baselines (Table 1), achieving gains up to +21.90% over the single LLM baseline, and up to +11.97% over the single agent baseline with matched compute budget (§E). What the two baselines earn depends on the backbone, as the single agent gains from +6.90% to +14.15% over the single LLM. On the other hand, what InFlowOp earns varies by across six backbones. The gain also exceeds what a larger backbone delivers: under InFlowOp, Qwen3.5-4B reaches 20.81%, above the single-agent accuracy of Qwen3.5-9B, GPT-5-mini, and GPT-5.4-mini. Meanwhile, the strongest backbone GPT-5.6-luna also improves from 41.99% to 49.37%. Across domains, the gain is largest on charts, mathematics, and finance, while smallest on physics, where all methods stay under any backbone. Also, the same improvement trends hold consistently on slides, science, and code, the three additional domains for the three backbones evaluated on the whole benchmark (Figure 3).
| Method | Doc | Fin | Chart | Math | Phys | All | |
| Baseline: Single LLM (no tools or skills) | |||||||
| Qwen3.5-4B | 5.64 | 0.52 | 2.15 | 0.00 | 0.00 | 1.74 | – |
| Qwen3.5-9B | 5.95 | 1.64 | 4.58 | 3.31 | 0.54 | 3.23 | – |
| GPT-5-mini | 4.02 | 3.34 | 15.75 | 10.05 | 11.79 | 8.85 | – |
| GPT-5.4-mini | 9.67 | 1.97 | 17.12 | 12.32 | 10.82 | 10.59 | – |
| GPT-5.4 | 10.43 | 2.54 | 14.07 | 42.73 | 13.02 | 18.62 | – |
| GPT-5.6-luna | 12.98 | 3.87 | 25.20 | 66.66 | 18.84 | 28.25 | – |
| Baseline: Single Agent (with full pool of tools and skills) | |||||||
| Qwen3.5-4B | 12.51 | 4.83 | 22.93 | 23.48 | 4.78 | 13.66 | +11.92 |
| Qwen3.5-9B | 11.26 | 20.27 | 25.88 | 30.38 | 4.81 | 17.38 | +14.15 |
| GPT-5-mini | 23.02 | 3.54 | 22.83 | 19.13 | 10.00 | 16.33 | +7.48 |
| GPT-5.4-mini | 25.44 | 1.38 | 24.91 | 21.02 | 10.38 | 17.49 | +6.90 |
| GPT-5.4 | 33.68 | 25.67 | 42.17 | 35.56 | 10.52 | 27.21 | +8.59 |
| GPT-5.6-luna | 41.11 | 49.03 | 58.36 | 58.20 | 14.94 | 41.99 | +13.74 |
| InFlowOp (ours) | |||||||
| Qwen3.5-4B | 14.91 | 12.87 | 32.45 | 38.48 | 7.17 | 20.81 | +19.07 |
| Qwen3.5-9B | 14.81 | 25.20 | 41.28 | 42.65 | 9.80 | 25.13 | +21.90 |
| GPT-5-mini | 26.71 | 19.23 | 37.67 | 40.42 | 12.44 | 27.01 | +18.16 |
| GPT-5.4-mini | 28.96 | 21.14 | 40.55 | 43.09 | 14.93 | 29.46 | +18.87 |
| GPT-5.4 | 45.24 | 41.41 | 55.61 | 50.52 | 14.85 | 38.52 | +19.90 |
| GPT-5.6-luna | 42.22 | 56.95 | 70.23 | 74.33 | 17.34 | 49.37 | +21.12 |
Table 1. Table 1: Main Results. Mean accuracy (%) per domain on BRAID, averaged over the arms each domain holds and over both complexity levels (§ 5). All (%) averages over the 16 arms of these five domains.
Figure 3. Evaluation on All Eight Domains of BRAID. Mean accuracy (%) per domain for the three models evaluated on the whole benchmark. Each row shows a domain under the two baselines and InFlowOp (§ 6.1). The horizontal axis is accuracy (%). Table 1 covers the five domains every model is evaluated on.
Gains come not from dividing the task, but from how it is divided. Comparing against the single agent baseline evaluated on the same BRAID arms (Table 2), a workflow constructed greedily obtains 15.49%, falling below the single-agent’s 17.38%. Therefore, dividing a task is not by itself what earns the gain. Deciding the division by cost reverses that: COALESCE reaches 22.21%, +6.72% above greedy search and +4.83% above the single-agent baseline. In-flow tempering adds a further +1.59%, and scoring each agent on the evolving profile improves +1.33% more. Each module therefore earns its place, and the two (3)-(4) optimizing in-flow earn less than the one deciding the workflow before it runs.
| Method | Doc | Fin | Chart | Math | Phys | All | |
| Single Agent | 11.26 | 20.27 | 25.88 | 30.38 | 4.81 | 17.38 | – |
| greedy-search | 8.85 | 13.46 | 17.63 | 33.00 | 4.55 | 15.49 | -1.89 |
| COALESCE | 12.19 | 21.25 | 38.55 | 39.15 | 7.61 | 22.21 | +4.83 |
| COALESCE + in-flow | 13.47 | 22.75 | 39.99 | 40.86 | 9.48 | 23.80 | +6.42 |
| INFLOWOP | 14.81 | 25.20 | 41.28 | 42.65 | 9.80 | 25.13 | +7.75 |
Table 2. What Each Module Contributes. Mean accuracy (%) of Qwen3.5-9B on BRAID. INFLOWOP is assembled one module at a time in (2)-(4): (1) a workflow built greedily, (2) a workflow built with COALESCE, (3) the same COALESCE-built workflow with in-flow tempering, and (4) the full method (§ 3, §D.1, Alg. 1).
What Improves the Flow and What Weighs on It
Cost is better computed than judged. INFLOWOP prices the cost matrix with a rubric estimator to match atom demands against agent capabilities (§ 3.1). This cost matrix can also be priced by an LLM that judges matching scores among agents for each atom in one pass. We ablate our rubric estimator against the LLM counterpart. As shown in Figure 4 (left), the LLM estimator loses −3.27% points on Qwen3.5-4B and −3.85% on Qwen3.5-9B, leaving Qwen3.5-9B below the 22.21% it reaches under COALESCE alone (Table 2). Both estimators are given the same agent cards, evolving profiles, and atom demands. Therefore, what separates them is not what they know, but whether their estimated cost can effectively guide atom matching and coalescing to construct better workflows.

Figure 4. How Fit Is Scored, and Where a Fault Is Sought. Mean accuracy (%) on Qwen3.5-4B and Qwen3.5-9B. Left: using rubric estimator against an LLM for cost estimation. Right: in-flow optimization looking where a contract breaches, against the same with the global pass enabled beside it (§D.5).
Dynamic cost matrix that updates during COALESCE guides workflow construction better. Different from dynamic cost matrix that adaptively update with newly created agents, a static cost matrix is constructed once and then stays fixed. This leaves every new agent COALESCE creates outside the matching with other atoms in static matrix. As shown in Figure 5, INFLOWOP with dynamic matrix outperforms the static matrix counterpart by +3.15% on Qwen3.5-4B and +2.55% on Qwen3.5-9B. Therefore, a cost matrix dynamic evolving with the agent pool is able to more effectively guide COALESCE to find more proper granularities.
Figure 5. Construction Earns Its Two Freedoms. Mean accuracy (%) over Qwen3.5 (4B and 9B) among static cost matrix, dynamic cost matrix, and static pool.
Pools that dynamically grow build better workflows. The two pools differ where no available agent fits an atom well: a static agent pool settles for the closest agent it happens to hold, while a dynamic agent pool creates the specialist that atom demands. As shown in Figure 5, InFlowOp with a dynamic pool outperforms its static counterpart by +4.49% on Qwen3.5-4B and +3.29% on Qwen3.5-9B. Therefore, the pool sets a ceiling that no coalescing can lift: where no available agent covers an atom, dividing the task differently only relocates the shortfall, whereas creating the missing specialist removes it.
Evolving profiles help only when they remember success. An agent can be scored on its agent card alone, or on the card together with the evolving profile it accumulates. As shown in Figure 6, a profile evolving within a single run gains +2.54%, +1.33%, and +2.23% over the agent card alone on Qwen3.5-4B, Qwen3.5-9B and GPT-5.4-mini, respectively. When continuously evolving it into later runs, InFlowOp gains a further +1.21%, +1.19%, and +1.30% when only successful ones are kept. Applying all to profiles instead reaches 17.34%, 21.52%, and 26.53% respectively for three backbones, below the agent card alone on all three backbones. This indicates that what makes a profile worth evolving is evidence of what an agent can do: a success tells the estimator what to trust that agent with, whereas a failure marks only where it once fell short, and prices the agent no better than no profile provided.
Figure 6. A Profile Is Worth What It Remembers. Mean accuracy (%) over an agent scored (1) on its card alone, (2) on a profile evolving within a run, and (3) on a profile evolving across runs, keeping either successful ones only or all of them.
Global localization rarely fires, and loses accuracy when it does. Beyond local in-flow optimization, can a workflow be improved further by a global pass over the same cost matrix (§D.5)? To investigate this, we compare accuracy under local-only in-flow optimization against local+global. As shown in Figure 4 (right), enabling the global pass beside the local one yields −1.63% on Qwen3.5-4B and −1.41% on Qwen3.5-9B. This reveals that a breached contract already points at what to temper, and that tempering beyond it costs more than it recovers. This finding is also the empirical evidence for our configuration, under which in-flow optimization stays local in every other experiment.
Conclusions
In this work, we present InFlowOp (§ 3), a two-stage framework (§D.1) of bidirectional decomposition-aware construction (§ 3.1) and in-flow dynamic optimization (§ 4.1). Given the challenge of workflow-level evaluation, we contribute Braid, a benchmark whose tasks demand multi-agent coordination beyond single-agent capability (§ 5). We evaluate InFlowOp across eight domains and six backbones (§ 6.1) against single-model and workflow baselines (§ 6.2) and ablate its design choices (§ 6.3). Sridhar, Ido Akov, Jennifer Sandlin, Yury Makarychev, Joanna Tam, Hieu Hoang, David M. Cunningham, Vladimir Goryachev, Demosthenes Patramanis, Michael Krause, Andrew Redenti, David Aldous, Jesyin Lai, Shannon Coleman, Jiangnan Xu, Sangwon Lee, Ilias Magoulas, Sandy Zhao, Ning Tang, Michael K. Cohen, Orr Paradise, Jan Hendrik Kirchner, Maksym Ovchynnikov, Jason O. Matos, Adithya Shenoy, Michael Wang, Yuzhou Nie, Anna Sztyber-Betley, Paolo Faraboschi, Robin Riblet, Jonathan Crozier, Shiv Halasyamani, Shreyas Verma, Prashant Joshi, Eli Meril, Ziqiao Ma, Jérémy Andréoletti, Raghav Singhal, Jacob Platnick, Volodymyr Nevirkovets, Luke Basler, Alexander Ivanov, Seri Khoury, Nils Gustafsson, Marco Piccardo, Hamid Mostaghimi, Qijia Chen, Virendra Singh, Tran Quoc Khánh, Paul Rosu, Hannah Szlyk, Zachary Brown, Himanshu Narayan, Aline Menezes, Jonathan Roberts, William Alley, Kunyang Sun, Arkil Patel, Max Lamparth, Anka Reuel, Linwei Xin, Hanmeng Xu, Jacob Loader, Freddie Martin, Zixuan Wang, Andrea Achilleos, Thomas Preu, Tomek Korbak, Ida Bosio, Fereshteh Kazemi, Ziye Chen, Biró Bálint, Eve J. Y. Lo, Jiaqi Wang, Maria Inês S. Nunes, Jeremiah Milbauer, M. Saiful Bari, Zihao Wang, Behzad Ansarinejad, Yewen Sun, Stephane Durand, Hossam Elgnainy, Guillaume Douville, Daniel Tordera, George Balabanian, Hew Wolff, Lynna Kvistad, Hsiaoyun Milliron, Ahmad Sakor, Murat Eron, Andrew Favre, Shailesh Shah, Xiaoxiang Zhou, Firuz Kamalov, Sherwin Abdoli, Tim Santens, Shaul Barkan, Allison Tee, Robin Zhang, Alessandro Tomasiello, G. Bruno De Luca, Shi-Zhuo Looi, Vinh-Kha Le, Noam Kolt, Jiayi Pan, Emma Rodman, Jacob Drori, Carl J. Fossum, Niklas Muennighoff, Milind Jagota, Ronak Pradeep, Honglu Fan, Jonathan Eicher, Michael Chen, Kushal Thaman, William Merrill, Moritz Firsching, Carter Harris, Stefan Ciobâcă, Jason Gross, Rohan Pandey, Ilya Gusev, Adam Jones, Shashank Agnihotri, Pavel Zhelnov, Mohammadreza Mofayezi, Alexander Piperski, David K. Zhang, Kostiantyn Dobarskyi, Roman Leventov, Ignat Soroko, Joshua Duersch, Vage Taamazyan, Andrew Ho, Wenjie Ma, William Held, Ruicheng Xian, Armel Randy Zebaze, Mohanad Mohamed, Julian Noah Leser, Michelle X. Yuan, Laila Yacar, Johannes Lengler, Katarzyna Olszewska, Claudio Di Fratta, Edson Oliveira, Joseph W. Jackson, Andy Zou, Muthu Chidambaram, Timothy Manik, Hector Haffenden, Dashiell Stander, Ali Dasouqi, Alexander Shen, Bita Golshani, David Stap, Egor Kretov, Mikalai Uzhou, Alina Borisovna Zhidkovskaya, Nick Winter, Miguel Orbegozo Rodriguez, Robert Lauff, Dustin Wehr, Colin Tang, Zaki Hossain, Shaun Phillips, Fortuna Samuele, Fredrik Ekström, Angela Hammon, Oam Patel, Faraz Farhidi, George Medley, Forough Mohammadzadeh, Madelene Pěnaflor, Haile Kassahun, Alena Friedrich, Rayner Hernández Perez, Daniel Pyda, Taom Sakal, Omkar Dhamane, Ali Khajegili Mirabadi, Eric Hallman, Kenchi Okutsu, Mike Battaglia, Mohammad Maghsoudimehrabani, Alon Amit, Dave Hulbert, Roberto Pereira, Simon Weber, Handoko, Anton Peristy, Stephen Malina, Mustafa Mehkary, Rami Aly, Frank Reidegeld, Anna-Katharina Dick, Cary Friday, Mukhwinder Singh, Hassan Shapourian, Wanyoung Kim, Mariana Costa, Hubeyb Gurdogan, Harsh Kumar, Chiara Ceconello, Chao Zhuang, Haon Park, Micah Carroll, Andrew R. Tawfeek, Stefan Steinerberger, Daattavya Aggarwal, Michael Kirchhof, Linjie Dai, Evan Kim, Johan Ferret, Jainam Shah, Yuzhou Wang, Minghao Yan, Krzysztof Burdzy, Lixin Zhang, Antonio Franca, Diana T. Pham, Kang Yong Loh, Joshua Robinson, Abram Jackson, Paolo Giordano, Philipp Petersen, Adrian Cosma, Jesus Colino, Colin White, Jacob Votava, Vladimir Vinnikov, Ethan Delaney, Petr Spelda, Vit Stritecky, Syed M. Shahid, Jean-Christophe Mourrat, Lavr Vetoshkin, Koen Sponselee, Renas Bacho, Zheng-Xin Yong, Florencia de la Rosa, Nathan Cho, Xiyu Li, Guillaume Malod, Orion Weller, Guglielmo Albani, Leon Lang, Julien Laurendeau, Dmitry Kazakov, Fatimah Adesanya, Julien Portier, Lawrence Hollom, Victor Souza, Yuchen Anna Zhou, Julien Degorre, Yiğit Yaln, Gbenga Daniel Obikoya, Rai Michael Pokorny, Filippo Bigi, M. C. Boscá, Oleg Shumar, Kaniuar Bacho, Gabriel Recchia, Mara Popescu, Nikita Shulga, Ngefor Mildred Tanwie, Thomas C. H. Lux, Ben Rank, Colin Ni, Matthew Brooks, Alesia Yakimchyk, Huanxu Quinn Liu, Stefano Cavalleri, Ole Håggström, Emil Verkama, Joshua Newbould, Hans Gundlach, Leonor Brito-Santana, Brian Amaro, Vivek Vajipey, Rynaa Grover, Ting Wang, Yosi Kratish, Wen-Ding Li, Sivakanth Gopi, Andrea Caciolai, Christian Schroeder de Witt, Pablo Hernández-Cámara, Emanuele Rodolà, Jules Robins, Dominic Williamson, Brad Raynor, Hao Qi, Ben Segev, Jingxuan Fan, Sarah Martinson, Erik Y. Wang, Kaylie Hausknecht, Michael P. Brenner, Mao Mao, Christoph Demian, Peyman Kassani, Xinyu Zhang, David Avagian, Eshawn Jessica Scipio, Alon Ragoler, Justin Tan, Blake Sims, Rebeka Plecnik, Aaron Kirtland, Omer Faruk Bodur, D. P. Shinde, Yan Carlos Leyva Labrador, Zahra Adoul, Mohamed Zekry, Ali Karakoc, Tania C. B. Santos, Samir Shamseldeen, Loukmane Karim, Anna Liakhovitskaia, Nate Resman, Nicholas Farina, Juan Carlos Gonzalez, Gabe Maayan, Earth Anderson, Rodrigo De Oliveira Pena, Elizabeth Kelley, Hodjat Mariji, Rasoul Pouriamanesh, Wentao Wu, Ross Finocchio, Ismail Alarab, Joshua Cole, Danyelle Ferreira, Bryan Johnson, Mohammad Safdari, Liangti Dai, Siriphan Arthornthurasuk, Isaac C. McAlister, Alejandro José Moyano, Alexey Pronin, Jing Fan, Angel Ramirez-Trinidad, Yana Malysheva, Daphiny Pottmaier, Omid Taheri, Stanley Stepanic, Samuel Perry, Luke Askew, Raúl Adrián Huerta Rodrguez, Ali M. R. Minissi, Ricardo Lorena, Krishnamurthy Iyer, Arshad Anil Fasiludeen, Ronald Clark, Josh Ducey, Matheus Piza, Maja Somrak, Eric Vergo, Juehang Qin, Benjámin Borbás, Eric Chu, Jack Lindsey, Antoine Jallon, I. M. J. McInnis, Evan Chen, Avi Semler, Luk Gloor, Tej Shah, Marc Carauleanu, Pascal Lauer, Tran Duc Huy, Hossein Shahrtash, Emilien Duc, Lukas Lewark, Assaf Brown, Samuel Albanie, Brian Weber, Warren S. Vaz, Pierre Clavier, Yiyang Fan, Gabriel Poesia Reis e Silva, Long Tony Lian, Marcus Abramovitch, Xi Jiang, Sandra Mendoza, Murat Islam, Juan Gonzalez, Vasilios Mavroudis, Justin Xu, Pawan Kumar, Laxman Prasad Goswami, Daniel Bugas, Nasser Heydari, Ferenc Jeanplong, Thorben Jansen, Antonella Pinto, Archimedes Apronti, Abdallah Galal, Ng Ze-An, Ankit Singh, Tong Jiang, Joan of Arc Xavier, Kanu Priya Agarwal, Mohammed Berkani, Gang Zhang, Zhehang Du, Benedito Alves de Oliveira Junior, Dmitry Malishev, Nicolas Remy, Taylor D. Hartman, Tim Tarver, Stephen Mensah, Gautier Abou Loume, Wiktor Morak, Farzad Habibi, Sarah Hoback, Will Cai, Javier Gimenez, Roselynn Grace Montecillo, Jakub Łucki, Russell Campbell, Asankhaya Sharma, Khalida Meer, Shreen Gul, Daniel Espinosa Gonzalez, Xavier Alapont, Alex Hoover, Gunjan Chhablani, Freddie Vargus, Arunim Agarwal, Yibo Jiang, Deepakkumar Patil, David Outevsky, Kevin Joseph Scaria, Rajat Maheshwari, Abdelkader Dendane, Priti Shukla, Ashley Cartwright, Sergei Bogdanov, Niels Mündler, Sören Möller, Luca Arnaboldi, Kunvar Thaman, Muhammad Rehan Siddiqi, Prajvi Saxena, Himanshu Gupta, Tony Fruhauff, Glen Sherman, Mátyás Vincze, Siranut Usawasutsakorn, Dylan Ler, Anil Radhakrishnan, Innocent Enyekwe, Sk Md Salauddin, Jiang Muzhen, Aleksandr Maksapetyan, Vivien Rossbach, Chris Harjadi, Mohsen Bahaloohoreh, Claire Sparrow, Jasdeep Sidhu, Sam Ali, Song Bian, John Lai, Eric Singer, Justine Leon Uro, Greg Bateman, Mohamed Sayed, Ahmed Menshawy, Darling Duclosel, Dario Bezzi, Yashaswini Jain, Ashley Aaron, Murat Tiryakioglu, Sheeshram Siddh, Keith Krenek, Imad Ali Shah, Jun Jin, Scott Creighton, Denis Peskoff, Zienab El-Wasif, Ragavendran P, Michael Richmond, Joseph McGowan, Tejal Patwardhan, Hao-Yu Sun, Ting Sun, Nikola Zubić, Samuele Sala, Stephen Ebert, Jean Kaddour, Manuel Schottdorf, Dianzhuo Wang, Gerol Petruzella, Alex Meiburg, Tilen Medved, Ali ElSheikh, S. Ashwin Hebbar, Lorenzo Vaquero, Xianjun Yang, Jason Poulos, Vilém Zouhar, Sergey Bogdanik, Mingfang Zhang, Jorge Sanz-Ros, David Angrahа, Yinwei Dai, Anh N. Nhu, Xue Wang, Ali Anil Demircali, Zhibai Jia, Yuyin Zhou, Juncheng Wu, Mike He, Nitin Chandok, Aarush Sinha, Gaoxiang Luo, Long Le, Mickaël Noyé, Michał Perełkiewicz, Ioannis Pantidis, Tianbo Qi, Soham Sachin Purohit, Letitia Parcalabescu, Thai-Hoa Nguyen, Genta Indra Winata, Edoardo M. Ponti, Hanchen Li, Kaustubh Dhole, Jongee Park, Dario Abbondanza, Yuanli Wang, Anupam Nayak, Diogo M. Caetano, Antonio A. W. L. Wong, Maria del Rio-Chanona, Dániel Kondor, Pieter Francois, Ed Chalstrey, Jakob Zsambok, Dan Hoyer, Jenny Reddish, Jakob Hauser, Francisco-Javier Rodrigo-Ginés, Suchandra Datta, Maxwell Shepherd, Thom Kamphuis, Qizheng Zhang, Hyunjun Kim, Ruiji Sun, Jianzhu Yao, Franck Dernoncourt, Satyapriya Krishna, Sina Rismanchian, Bonan Pu, Francesco Pinto, Yingheng Wang, Kumar Shridhar, Kalon J. Overholt, Glib Briia, Hieu Nguyen, David Quod Soler Bartomeu, Tony CY Pang, Adam Wecker, Yifan Xiong, Fanfei Li, Lukas S. Huber, Joshua Jaeger, Romano De Maddalena, Xing Han Lü, Yuhui Zhang, Claas Berger, Patrick Tser Jen Kon, Sean Li, Vivek Sanker, Ming Yin, Yihao Jiang, Xinlu Zhang, Ankit Agrawal, Li S. Yifei, Zechen Zhang, Mu Cai, Yasin Sonmez, Costin Cozianu, Changhao Li, Alex Slen, Shoubin Yu, Hyun Kyu Park, Gabriele Sarti, Marcin Briański, Alessandro Stolfo, Truong An Nguyen, Mike Zhang, Yotam Perlitz, Jose Hernandez-Orallo, Runjia Li, Amin Shahabani, Felix Juefei-Xu, Shikhar Dhingra, Orr Zohar, My Chiffon Nguyen, Alexander Pondaven, Abdurrahim Yilmaz, Xuandong Zhao, Chuanyang Jin, Muyan Jiang, Stefan Todoran, Xinyao Han, Jules Kreuer, Brian Rabern, Anna Plassart, Martino Maggetti, Luther Yap, Robert Geirhos, Jonathon Kean, Dingsu Wang, Sina Mollaeei, Chenkai Sun, Yifan Yin, Shiqi Wang, Rui Li, …
Related Work
Workflow Construction over an Agent Pool
Compared to hand-designed multi-agent systems that fix the roles and their order in advance (Hong et al., 2024; Li et al., 2026; Guo et al., 2026), automatic construction searches for the effective structure rather than authoring it, within a design space of operators, connections, or collaboration structures enumerated in advance (Zhang et al., 2025b; Zhao et al., 2025; Yue et al., 2026; Li et al., 2025a). That design space, rather than the agent pool, settles how finely the task is divided: prompted decomposition takes its grain from exemplars or instructions (Liu et al., 2025; Madhwal et al., 2026; Wang et al., 2023b), while plan-then-assign pipelines fix the parts before choosing which agent runs each one (Shen et al., 2023; Dong et al., 2026; Kapoor et al., 2026). Where the grain adapts, it adapts to the query alone (Su et al., 2026), or revises a division already proposed (Prasad et al., 2024; Wang et al., 2025). Cost enters some of these decisions, in recent work alongside how far the task is divided [7] (Zhang et al. 2025a; Xu et al. 2026), but the quantity that prices a choice is fitted before the task and refitted whenever the set of available operators changes.
Which agent carries out each part divides along a second axis. Some methods search over a pool they leave fixed, so a part that no agent fits well still goes to the closest one available (Zhuge et al., 2024; Yuan et al., 2025). Another line of work adds agents that the pool does not hold, so the same part instead yields an agent created for it (Zhang et al., 2025c; Wu et al., 2025). Where a system offers both, it alternates between them or settles the choice by a test of similarity, rather than weighing one against the other (Shang et al., 2025; Gupta et al., 2026; Zhang et al., 2026a). As for pricing, where it appears, it ranges over backbone models rather than over reuse and creation (Yang et al., 2025a). What is missing is a single price over the pool as it stands, charged per part before execution, under which creating an agent is one option inside the same search that sets the grain.
Optimizing a Workflow after Execution
Recent work optimizes workflow performance in different ways. One route improves a workflow by training: the constructor or planner is fine-tuned against scored outcomes (Li et al., 2026; Peng et al., 2026; Nielsen et al., 2026; Dang et al., 2025). Step-level signals are obtained the same way, with process reward models and learned verifiers fitted on annotated steps or on rollouts graded against known answers [3] (Zhang et al. 2026b; Zhu et al. 2026; Lee et al. 2026a). Improvement is therefore paid for before the task arrives, in data and compute. A second route requires no training but re-runs instead, sampling the workflow repeatedly, searching for a better one, or re-executing after a failure (Hwang et al., 2026; Li et al., 2025b; Yoon et al., 2026; Lee et al., 2026b). Each increment of quality costs another execution of the entire workflow, while what needs correcting is only a small part of it. A third route is both training-free and label-free: the system criticizes its own output and revises it (Shi et al., 2026; Yang et al., 2025b; Ning et al., 2026; Wan et al., 2026). Yet what it revises is the flow output, without identifying which part inside the flow is responsible. When blame is assigned within a flow, it is scored on a completed trace against annotated ground truth [5], recovered by replaying a trace that has already finished (Hou et al., 2026; Lin et al., 2026), or derived from a relation the domain itself makes checkable, such as whether a claim follows from the sources cited for it (Hirsch et al., 2026). What is missing is a fault located from a single execution as it runs, with the correction confined to the part at fault, under no training, no reference answer, and no graded outcome.
Evaluating Multi-Agent Workflows
Workflow systems are measured on the suites built for single models: mathematical reasoning, code generation, and question answering (Zhang et al., 2025b; 2026d; Yun et al., 2026; Zhou et al., 2026). On these, repeated sampling from one strong agent captures much of what coordination adds, and under matched budgets a coordinating team can fall behind the same models working alone [2 Choi] (Sun et al. 2026) et al., 2025; Jwalapuram et al., 2026. A benchmark that one agent already solves cannot show what dividing the work contributes.
Benchmarks that do stress coordination exist, built around long-horizon tool use, siloed state, or distributed evidence [4] (Gao et al. 2026; Zhang et al. 2026c). In these, the need to divide is imposed by the environment rather than arising from what the task demands: state is partitioned, tools are split between agents, or knowledge is withheld from one of them. What is missing is a benchmark whose tasks require the division on their own terms, with parts that call for different competences and a result that depends on how those parts combine.
Limitations
InFlowOp is evaluated on BRAID, whose tasks span eight domains and are graded against a reference answer for each question (§ 5). Tasks settled by no checkable answer, such as open-ended generation or long-horizon interaction with a stateful environment, lie outside this study. In future work, we plan to extend InFlowOp to such settings and different domains. We also plan to investigate workflows whose agents act on an environment that changes as they run.
Where a Workflow Becomes Necessary: Braid for Workflow-Level Evaluation
What a workflow contributes is coordination, especially how the work is divided among agents and how those divisions depend on one another. Therefore, measuring the contribution of a workflow requires complex tasks whose demands exceed what one agent can meet. However, existing benchmarks rarely supply such task complexity: their tasks are simple enough for one competent agent to solve alone. Consequently, a workflow evaluated on them is measured on tasks that require neither task decomposition nor multi-agent coordination beyond single-agent competence (§ 1, A.3, C.1). To close this gap, we propose BRAID, a benchmark for workflow-level agent-interdependent reasoning (§ 5). Concretely, BRAID composes every task through two composition methods under quality control (§C.2), and measures the effectiveness of a workflow by the mean accuracy over the questions each task comprises (§C.3).
Why Workflow-Level Evaluation Is Necessary
When a workflow earns its necessity. A workflow is worth building only where a single agent cannot effectively carry the task alone, yet workflows are seldom evaluated on tasks that reach such complexity (§ 1, A.3). As shown in Figure 7, we conduct a preliminary test on this gap, comparing a single agent solving the task in one pass with a workflow an LLM constructs for the same task: when evaluated on the original data, the single agent is more accurate than the workflow (−12.02%) with notably lower cost (−6.91). Therefore, coordination is not a necessity for simple tasks, and running multi-agent workflows on them can further incur several times the cost. On the other hand, with BRAID composition (§C.2), the ordering reverses: the single agent degrades significantly on such complex tasks, while the workflow, running under a matched compute budget, showcases the strength of task decomposition and multi-agent coordination with better performance. Workflow-level task complexity is therefore a necessity for workflow evaluation, and the objective BRAID targets.
Figure 7. A Workflow Earns Its Necessity Only Where One Agent Falls Short. The shaded band marks the gap between the two solvers in accuracy (left) and in cost (right). Cost is counted in units of one single-agent run on the original data, and on BRAID the two solvers run under matched budgets. Both use gpt-5-mini over 150 samples of SlideVQA (doc variant of BRAID), Distributed at complexity level .
Why workflow-level evaluation is necessary. The benchmarks a multi-agent workflow is usually measured on sit on the left side of each subplot (Figure 7: left original half of both subplots): a single competent agent is already able to solve their tasks, which therefore demand neither task decomposition nor coordination among agents. As a result, evaluating a workflow on them cannot effectively measure how a workflow performs and what it actually contributes. Instead, reliable workflow-level evaluation requires tasks whose complexity demands multi-agent coordination beyond single-agent capability.
Benchmarking Workflow-Level Evaluation
BRAID constructs workflow-level tasks by composing each task with questions and providing extra sources beyond those its questions require, without stating which source serves which question. We use to denote the complexity level of a task. Answering one task therefore demands both halves of what a workflow is for: dividing the task, and reaching its answers through coordinated routing. Here, we define routing as locating the source a question is answered from and reasoning over it to that question’s answer. We use solver to denote an evaluated system in general: a single LLM, an agent, or a multi-agent workflow that receives the task and produces its answers.
Composition methods. A task is composed in one of two methods: distributed or anchored. A source here is one document or image provided with the task, however many files it takes to provide it, and the source a question is answered from is its gold source. They differ in where the gold sources of a task’s questions sit and therefore in what the division and the routing each demand:
Distributed: every question has its own source. Each distributed task takes questions that are each answered from a different source. BRAID provides those sources, and additionally inputs more sources that answer none of the questions, which we call distractors. As a result, a distributed task inputs sources in total.
Anchored: all questions share one source. An anchored task takes questions that are all answered from one source. BRAID provides that source, and additionally inputs distractors alongside it. As a result, an anchored task inputs sources in total.
Source selection. Distractors come from inside BRAID, and the kind of input decides which extra sources supply them. A dataset whose inputs are documents draws its distractors from its own split, so a distractor is the same kind of document as the gold source and differs only in what it contains. A dataset whose inputs are images draws from a different dataset of the same kind, which keeps routing real via strict quality control while ensuring that a gold source’s own family never supplies a distractor (Alg. 2). A dataset whose items provide no input of their own draws its distractors from charts. The draw is randomly seeded and prefers the least-used sources of the split, so no source dominates the benchmark and the same composition is reproduced on every rebuild.
Quality control. A source counts as a distractor only if it answers no question of the task: when any other provided source also answers a question, that question has more than one gold source, and thus the task can no longer isolate the routing it is built to evaluate. BRAID therefore rejects such tasks while composing them (Alg. 2) rather than filtering them after construction, and a task that fails any of the four criteria below is never written. (1) Separation keeps no provided source standing in for another: two questions of one task do not rest on near-duplicate gold sources, and a distractor resembling any of the task’s gold sources is redrawn. (2) Routing requires each question to mention at least one word or phrase that appears in its own gold source and in no other provided source, so that the question can identify that source among those provided. (3) Leakage forbids any source other than a question’s gold source from containing that question’s answer. (4) Answerability covers what text matching cannot decide: where a task supplies images or documents, an LLM judges every pairing of a question with a provided source, and the task is discarded if any question’s answer holds against a source other than its gold source. Beyond these four criteria, file names are also controlled for the same reason: the provided sources are listed in random order with file names revealing nothing, so a solver can identify the gold source only from its content, never from its file name.
Dataset coverage. BRAID is constructed upon ten public datasets spanning eight domains (Ma et al., 2024; Deng et al., 2025; Tanaka et al., 2023; Reddy et al., 2025; Wang et al., 2024; Tang et al., 2026; Hendrych et al., 2022; He et al., 2024; Phan et al., 2026; Li et al., 2023), including documents, slides, finance, charts, mathematics, physics, science, and code. A dataset enters BRAID with whichever composition methods and complexity levels it supports, and each pairing of a BRAID dataset with a composition method forms one arm, evaluated at both complexity levels. Distributed demands only that each question have its own gold source, which every original dataset supplies, while anchored requires a source that carries at least questions, which the document and slide datasets provide and the others cannot: a dataset whose items are one question per figure, one problem per statement, or a prompt with no provided input has no gold source to share. A complexity level is kept only where it yields at least 80 questions. For example, DocFinQA at is dropped for size: each of its filings carries too few questions to compose tasks at that complexity level in sufficient number, giving 5 questions under distributed and 40 under anchored, both far below 80. Every other absence is a matter of constructibility, since the chart, mathematics, physics, science, and code datasets hold at most a handful of questions per source, and so cannot anchor of them. What remains spreads difficulty across two axes. Across datasets, the provided sources range from documents and slides to charts and text-only samples, and the answer types from numeric through open-ended to code generation. Within a dataset, raising the complexity level from to carries the same source data into longer tasks, and under distributed from five provided sources to nine.
Data statistics. As summarized in Table 3, BRAID constructs nineteen arms over fourteen BRAID datasets, adapted from ten public datasets, across eight domains. BRAID builds workflow-level samples at two complexity levels, counted in questions rather than tasks because accuracy is measured over questions. Every arm is evaluation-only and inherits the test side of the dataset it is composed from, so no BRAID task shares a row with any training split.
Algorithm 2 COMPOSE(, ): BRAID Task Construction (§C)
Require: the questions and sources of one dataset split; complexity level ; composition distributed or anchored
Notation: is the source is answered from, is its answer; is a word or phrase of its text, is source similarity with bar , and is an LLM judge on whether holds against
Ensure: task , or DISCARD
questions of the split s.t. (distributed) or (anchored)
; ▷ gold sources; distractors, drawn seeded and least-used first (1) Separation: no provided source stands in for another
if then
return DISCARD ▷ one question’s gold source would answer another
end if
for all with do
, or return DISCARD ▷ redraw until clean, else drop
end for (2)–(4) Answerability: exactly one provided source answers each question
for all with do
if then
return DISCARD ▷ (2) routing: no word identifies among
end if
if then
redraw if , else return DISCARD ▷ (3) leakage
end if
if carries images or documents and then
return DISCARD ▷ (4) answerability, where cannot be decided by text
end if
end for
return ▷ random order, file names carrying no signal
Evaluation Metrics
Task Accuracy. The accuracy of a task is the average score of its questions, and the accuracy of a dataset is the average over its tasks. Let denote the predicted answer for , denote its gold answer, and denote its answer type ():
Numeric Answers. A numeric answer is scored on its value rather than on its string, and a dataset whose golds are measured quantities may admit a relative tolerance :
Mathematical Answers. A mathematical answer is scored under symbolic equivalence , so an answer differing from the gold in notation, ordering, or simplification still counts:
Textual Answers. A textual answer counts in full when it matches the gold after normalization , and otherwise earns the token-level between the two. Thus, an answer carrying part of the gold is credited in part:
A dataset whose golds are short spans of a long source may admit the relaxed form, in which a gold appearing inside the answer also counts in full, and where a dataset accepts several golds the answer takes its best score among them.
Multiple-Choice Answers. A multiple-choice answer is scored on the option it selects, which is extracted from the answer before comparison:
List Answers. A list answer is scored position by position against the gold sequence, so an answer right in part is credited in part:
Coding Answers. A coding answer is scored by execution against the tests , and counts only when every test passes:
Per-Question Grading. Every question of a task is graded separately according to its answer type, so the accuracy of a task rises with each question whose routing succeeds. Two answer types are graded by degree within a single question as well: a textual answer that does not match its gold falls back to token overlap (Eq. (12)), and a list answer is credited position by position (Eq. (14)). Particularly, we grade per question rather than scoring a task as a single unit. This is because a single-unit score counts only when all of its questions are correct, which therefore assigns the same value to a solver that answers most questions of a task and to one that answers none. Such a score fails to effectively measure the actual performance and competence of a solver in workflow-level problem-solving.
Beneath the Flow: Complementary Details and Discussions
InFlowOp Overview: From the Flow as Built to the Flow as Run
InFlowOp performs a task in two stages (Alg. 1): build the workflow and run the workflow. The first workflow construction stage turns the task into a workflow: it prices every atom against every agent into the cost matrix, leveraging the cost matrix to determine how finely the task is divided and who carries each divided subtask, and hands every subtask the contract its atoms declare. The in-flow optimization stage runs that workflow and corrects it as it runs: it matches each realized subtask against its contract by reusing the estimator in the first stage, blames whichever side breaches, and tempers the workflow there locally. The two stages share one estimator and one matrix, which is what lets a correction be priced in the same currency the workflow was built with.
Stage I: Construction (Alg. 3). The task is first decomposed to its finest atoms, and the atoms the goal never needs are discarded. COALESCE proceeds over partial groupings, extending each by its next atom, which either opens a new subtask or joins one already open. A grouping is pruned once its lower bound reaches the best cost found so far. Each subtask of the returned atom grouping is assigned with its lowest-cost agent. When no agent meets the competence bar, a new agent is created at the creation penalty. The atom dependencies then carry over to the subtask graph, and every subtask leaves this stage with its contract. This then supports Stage II for label-free in-flow optimization.
Stage II: In-Flow Optimization (Alg. 4). Execution proceeds subtask by subtask, and every realized input and output is retained. A subtask that yields no usable output is faulty by observation. Otherwise, its realized work is matched against its contract, and which side breaches blames the fault. A fault blamed on the assignment is corrected by the next agent the cost matrix ranks, and one blamed on the decomposition by re-decomposing the subtask under the same contract (Eq. (5)). A correction is kept only if the subtask then executes and its unmet conditions are satisfied, and is undone otherwise. Tempering therefore never leaves a workflow worse than the one Stage I produced. Tempter is confined to the the local subtask (Eq. (7)) with every progress achieved so far intact.
Cost-Driven Pruning. COALESCE expands a frontier of partial coalescings and retains the best complete one found, the incumbent . Since Cost (Eq. (21)) only accumulates as atoms are placed, any completion of a partial coalescing is bounded from below by the lower bound , where the remainder is the cheapest cost the unplaced atoms could possibly incur. As that remainder never over-estimates, a partial coalescing whose already reaches can complete no better and is pruned, without risk of discarding the optimum.
Meta Primitives
COALESCE may emit four structures. Throughout, is the probability that agent realizes subtask (§ 3.1), , and its latency.
AND for conjunction: atoms are grouped into one subtask, and subtasks with no dependency path between them are left unordered. Its reliability and latency are Eq. (19) and Eq. (20) unchanged.
REPEAT for bounded repetition: a subtask is re-run in place until its output is usable, at most times.
OR for conditional alternatives: one required output is pursued by independent methods and consolidated.
SELECT for branched selection: exactly one of mutually exclusive continuations is taken under a branch test.
where and are the reliability and latency of continuation , and its selection weight.
Algorithm 3 COALESCE(, ): Bidirectional Cost-Driven Atomic Coalescing (§ 3.1)
Require: task , agent pool , trade-off , creation penalty , competence bar , expansion budget
Ensure: workflow of least cost (Eq. (2))
Direction 1: top-down atomic decomposition
1: ▷ atoms and their data-flow DAG 2: ▷ drop atoms the goal never needs
Direction 2: bottom-up cost-driven coalescing
3: ▷ label-free estimator on singleton atoms 4: ; ▷ incumbent is the finest cut, one subtask per atom; frontier to extend 5: while and explored nodes do 6: ▷ a partial coalescing; is its next atom in topological order 7: for all do ▷ open or merge (§ 3.1) 8: ▷ the resulting coalescing; is the subtask changed by 9: ▷ re-score only the changed subtask 10: if then ▷ no pooled agent covers (Eq. (1)) 11: ; ▷ charged in Cost 12: end if 13: ▷ bind to its lowest-cost covering agent 14: ▷ lower bound (lb): cost committed so far 15: if then 16: ; if is complete then 17: end if ▷ lb never over-estimates, so pruning cannot discard the optimum 18: end for 19: end while
Emit
20: the subtasks of and their assignments 21: ▷ lift the atom DAG to the subtask level 22: for all do 23: input/output conditions of ’s member atoms ▷ contract checked in § 4.1 24: end for 25: return
Subroutine: cost matrix
26: function COSTMATRIX() 27: for all and do 28: ▷ match the subtask’s demands against the agent’s card 29: ; latency of on ▷ Eq. (19) 30: end for 31: for all do 32: ▷ coverage residual (Eq. (1)): nothing in the pool fits 33: end for 34: return 35: end function
Taxonomy of Cost
This section complements our cost taxonomy definition in § 3. A constructed workflow is charged along two axes: the reliability cost of entrusting each subtask to an agent that may not realize it correctly, and the latency cost of running the agents it assigns. Both follow from the same label-free matching of what a subtask demands against what an agent supplies (§ 3.1), so a workflow is priced before it runs. Together with
Algorithm 4 INFLOWOP(): In-Flow Dynamic Optimization (§ 4.1)
Require: workflow with contracts , cost matrix , unmet bar , re-assign budget , re-decompose
Ensure: final answer, and the tempered workflow (Eq. (8))
Mem ; ▷ realized results; breached pairings Local: detect and temper in flow
for all in topological order of do
if then ▷ RESUME: a valid result is never recomputed
continue
end if
if then
▷ halt at the fault, not at the flow
▷ invalidate only the closure (Eq. (7))
end if
end for
return final answer;
Subroutine: detection
function
if unusable then ▷ causal signal: faulty by observation, no matching needed
return assignment
end if
▷ credit matrix (Eq. (3))
return given by ▷ Eq. (4)
end function
Subroutine: tempering along the cost-ordered ladder
function
if then ▷ RE-ASSIGN: the cheaper rung (Eq. (5))
for to do
▷ Eq. (6)
if then ▷ commit only on a clean pass
return
end if
end for
restore ▷ no unverified change survives
end if
for to do ▷ RE-DECOMPOSE: climb, no agent can satisfy as scoped
▷ Alg. 3, re-cut under the same contract
return ▷ the contract keeps the splice local
end for
return ▷ budget spent: keep the original
end function
the price of each agent created for it, they compose the workflow cost that COALESCE minimizes (Eq. (2)). The optimization cost of the taxonomy stays outside , as what improving a workflow charges rather than what running one charges (§E).
Reliability cost. A workflow succeeds only when its subtasks are each realized correctly. We model the realization of a subtask by its assigned agent as a success with probability . As subtask realizations are independent, a workflow’s success probability factorizes as . Thus, maximizing it is equivalent to minimizing its negative logarithm:
where is the reliability cost of realizing with , and is the workflow’s total reliability cost.
Latency cost. Each subtask also incurs a latency , the cost of running its agent. Because admits parallelism, a workflow’s latency is not the sum of these but its critical path (§ 3.1):
Parallel subtasks thus cost no more than the slowest among them, so spreading work across concurrent agents lowers even where it raises .
Workflow cost. The cost of a workflow combines the two axes, reliability (Eq. (19)) and latency (Eq. (20)), scalarized by a trade-off weight , with a penalty for each newly created agent (§ 2):
where is the set of agents created for , trades reliability against latency, and prices each creation. Sweeping traces a reliability-latency Pareto frontier: small favors reliable, finer-decomposed workflows; while large favors fast, compact ones.
A Step Is Worth What It Leads To
The Verdict Lies Downstream, Not in the Middle
Whether an intermediate output helps or harms cannot be determined from that output alone. A step may satisfy the conditions it is expected to meet yet still steer the flow wrong, while it may also violate them yet still bridge the flow to the correct final answer. The sign of a deviation is thus settled by where it drives the rest of the flow, not by the step where it appears or by what that step produces. Therefore, no local judgment of that step, however it is computed, recovers it.
Figure 8 shows one such case: the subtask asks which images carry a particular set of information, so its declared condition is that the output identify the useful ones. Before tempering, the agent names two images with wrong evidence but successfully meeting that condition. Thus, neither image carries the information the subtask demands, and the flow continues on wrong evidence that misleads its final answer. After tempering, the agent responds that no image contains what is required. That answer violates the condition, yet it is the accurate one. Consequently, the flow carries on with it and reaches the correct final answer. However, if scored against its declared condition, the step that helped is recorded as the step that failed.

Figure 8. The Worth of A Step Is Settled Downstream. (a) Before tempering: the output meets its declared condition and gives two images. However, neither carries the information the subtask demands, and the flow reaches the wrong final answer. (b) After tempering: the output that violates the condition confirms that no image qualifies, and the flow reaches the correct final answer. However, if scored against its own condition, the step that helped is recorded as the step that failed.
We therefore judge every temper by the outcome of the flow it belongs to, without relying on step-level assessment. A step-level metric is not a reliable or stricter measure of the same quantity, as on cases of this kind it carries the opposite sign. For the same reason, we do not evaluate on benchmarks that score intermediate steps against annotated ground truth ([5]), since such a benchmark penalizes exactly the behavior this example shows to be correct.
Temper Locally, Look Globally
Local detection (§ 4.1) acts where a fault breaches the contract of its own subtask. However, a workflow may nonetheless terminate without a usable answer for a cause lying several steps upstream, without violating local contract. Rather than fall back on a global re-search, we extend in-flow optimization with an optional global localization: the temper stays local, and only where to look becomes global. Once the local pass ends without a usable answer, the whole graph is scanned to rank subtasks by suspicion:
where a subtask already flagged by local detection receives an additive bonus. Suspicion prefers subtasks both unreliable and consequential: an unreliable subtask whose output many others consume is a likelier root cause than an unreliable leaf. The most suspicious untried subtask is then handed to the cost-ordered ladder (Eq. (5)), committed under the same evidence, and followed by a scoped resumption of its closure (Eq. (7)), until a usable answer emerges or the probe budget is spent (Alg. 5). Global localization therefore buys only where to look at the final failure, while every correction is committed locally. It is disabled in all main experiments, and we evaluate it as an ablation (§ 6.3).
Implementation Details
Matched Compute Budget. The compute budget each single agent baseline receives is matched to the workflow it is compared against on every task rather than on average, so no task lets the workflow spend what the baseline could not.
Configuration. We summarize our experiment configurations in Table 4, including the core parameters’ definitions and configurations, as well as the default values our ablation studies explore against.
| Parameter | Definition | Configuration |
| Decomposition | ||
| Control-flow primitives | The structures a workflow may use beyond plain sequencing (§D.2) | AND, REPEAT, SELECT, OR |
| Reliability–latency weight | What a unit of latency is worth against a unit of reliability in the workflow cost (Eq. (21)) | 0.25 |
| Creation penalty | What creating one agent costs the same objective (Eq. (21)) | 1.0 |
| Competence bar | The cost an agent clears to count as covering an atom (Eq. (1)) | 0.7 |
| Agent creation | Whether a new agent may be created where no pooled agent covers a subtask | on |
| Cost matrix | Whether a created agent enters the matrix during COALESCE, or the matrix stays as first scored | dynamic |
| Expansion budget | How many groupings COALESCE may expand before it returns its incumbent (§ 3.1) | 20,000 |
| Repetition budget | How many times REPEAT may re-run a subtask in place (Eq. (16)) | 1 |
| Estimator | ||
| Estimator | How well an agent meets an atom’s demands is scored (§ 3.1) | rubric |
| Scored on | The evidence about an agent supplied to the estimator | card and profile |
| In-Flow Optimization | ||
| Scope | Where a fault is looked for once execution falls short (§ 4.1) | local |
| Unmet bar | How far a declared condition falls short before it counts as unmet (Eq. (3)) | 0.8 |
| Re-assign budget | How many alternative agents a faulty subtask may be given before the ladder climbs (Alg. 4) | 1 |
| Re-decompose budget | How many times a faulty subtask may be re-decomposed before it reverts (Alg. 4) | 1 |
| Global-probe budget | How many suspected subtasks the optional global pass may probe (Alg. 5) | 3 |
Table 4. Table 4: Experiment Configurations. We summarize our experiment configurations for core parameters (§ 6), and an ablation arm is studied against the configuration stated here.
Cost Accounting. For any system, its problem-solving cost of a task is the total number of tokens the system consumes, including both input and output over construction, execution, and in-flow optimization.
Algorithm 5 LOCALIZE($W$, Mem): Global Localization (§D.5)
Require: workflow $W$ after the local pass of Alg. 4, its realized results Mem, global-probe budget $B_g$
1: $\mathcal{B} \leftarrow \varnothing$ ▷ probed suspects
2: while no usable final answer and $|\mathcal{B}| < B_g$ do
3: $s \leftarrow \arg\max_{s \notin \mathcal{B}} \operatorname{susp}(s)$; $\mathcal{B} \leftarrow \mathcal{B} \cup \{s\}$ ▷ Eq. 22: global only localizes
4: $b \leftarrow \operatorname{DETECT}(s, \operatorname{Mem}[s])$ ▷ a suspected but clean subtask is left alone
5: if $b \ne \text{none}$ then
6: $W \leftarrow \operatorname{TEMPER}(W,s,b)$; $\operatorname{Mem} \leftarrow \operatorname{Mem} \setminus I(s)$ ▷ re-walk the closure: the same local correction
7: end if
8: end while
9: return final answer; $W^\dagger \leftarrow W$
Accuracy Against Cost. A commonly used approach for improving workflow performance is to best-of-, optimizing workflows by rerunning workflow construction and execution times and and keeping the best outcome. However, this optimization gains limited accuracy at the cost of compute cost. To optimize cheaply, we propose InFlowOp that optimizes locally in flow without global reruns of any construction or execution stage. To compare the effectiveness of different methods, we study on the single-agent baseline, best-of-, and InFlowOp at the matched compute cost by giving the same turn budget. Figure 9 compares best-of- () and InFlowOp against both the single agent baseline they extend and the single LLM baseline showing the backbone competence, with every cost stated as a multiple of one single-agent run on the same backbone. At matched turn budget, InFlowOp gains +7.15%, +7.75%, +10.68%, +11.97%, and +7.38% over the single agent on Qwen3.5-4B, Qwen3.5-9B, GPT-5-mini, GPT-5.4-mini, and GPT-5.6-luna, respectively. Best-of- spends those turns and reaches 15.83%, 20.63%, 21.72%, 21.25%, and 43.82%, consistently staying below InFlowOp on every backbone. This indicates that a gain follows from how a workflow is constructed and optimized rather than from how many times it is attempted.
References
- [2]Summer Eunhyung Ann, Haokun Liu, and Chenhao Tan. The interaction tax: When communication erases diversity in multi-agent teams, 2026. URL https://arxiv.org/abs/2608.23541.
- [3]Hyungjoo Chae, Sunghwan Kim, Junhee Cho, Seungone Kim, Seungjun Moon, Gyeom Hwangbo, Dongha Lim, Minjin Kim, Yeonjun Hwang, Minju Gwak, Dongwook Choi, Minseok Kang, Gwanhoon Im, ByeongUng Cho, Hyojun Kim, Jun Hee Han, Taeyoon Kwon, Minju Kim, Beong woo Kwak, Dongjin Kang, and Jinyoung Yeo. Web-shepherd: Advancing prms for reinforcing web agents, 2025. URL https://arxiv.org/abs/2505.15277.
- [4]Junzhi Chen, Harsh Trivedi, Jane Pan, Michael Jo Zhang, Tejas Srinivasan, Niranjan Balasubramanian, and Ashish Sabharwal. Appworld-ul: Benchmarking diverse agent-user interactions for tool-use, 2026a. URL https://arxiv.org/abs/2607.20536.
- [5]Mengzhuo Chen, Junjie Wang, Fangwen Mu, Yawen Wang, Zhe Liu, Huanxiang Feng, and Qing Wang. Seeing the whole elephant: A benchmark for failure attribution in llm-based multi-agent systems, 2026b. URL https://arxiv.org/abs/2604.22708.
- [6]Hyeong Kyu Choi, Xiaojin Zhu, and Sharon Li. Debate or vote: Which yields better decisions in multi-agent large language models?, 2025. URL https://arxiv.org/abs/2508.17536.
- [7]Zhiqing Cui, Haotong Xie, Jiahao Yuan, Cheng Yang, Hanqing Wang, Yuxin Wu, Yifan Wu, Siru Zhong, Tao Yu, Yifu Guo, Siyu Zhang, Xinlei Yu, Qibing Ren, and Usman Naseem. Uno-orchestra: Parsimonious agent routing via selective delegation, 2026. URL https://arxiv.org/abs/2605.05007.




