Editor’s introduction
The study introduces InFlowOp, a framework that assesses multi-agent workflow decisions using a label-free cost metric based on agent competence and runtime. It dynamically adjusts task decomposition and agent assignment before execution, and corrects faults during runtime by identifying the most cost-effective change. The researchers evaluated the approach using Braid, a benchmark designed to require coordination beyond what a single agent can achieve. The evidence shows InFlowOp outperforms single-agent baselines in several domains, demonstrating improved efficiency through adaptive optimization. However, the evaluation is limited to tasks requiring multi-agent coordination, meaning results may not generalize to simpler, single-agent scenarios where decomposition is unnecessary.
Introduction
Large language models have grown from single-turn responders into agents that plan, call external tools, and interact with their environment. More recently, they begin to organize one another. 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. 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.
Yet the decisions such an agent makes are narrower than they appear. How finely the task is divided is fixed in advance, such as by a template, a prompt, or a chosen number of steps. Where it does adapt, it adapts to the task alone. 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. 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. 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. 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.
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 (§3.2) tempers it adaptively during execution.
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.
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.
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.
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 (§3.2). Given the challenge of workflow-level evaluation, we contribute Braid, a benchmark whose tasks demand multi-agent coordination beyond single-agent capability (§4). We evaluate InFlowOp across eight domains and six backbones (§5.1) against single-model and workflow baselines (§5.2) and ablate its design choices (§5.3).
Workflow Construction over an Agent Pool
Compared to hand-designed multi-agent systems that fix the roles and their order in advance, automatic construction searches for the effective structure rather than authoring it, within a design space of operators, connections, or collaboration structures enumerated in advance. That design space, rather than the agent pool, settles how finely the task is divided: prompted decomposition takes its grain from exemplars or instructions, while plan-then-assign pipelines fix the parts before choosing which agent runs each one. Where the grain adapts, it adapts to the query alone, or revises a division already proposed. Cost enters some of these decisions, in recent work alongside how far the task is divided, 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. Another line of work adds agents that the pool does not hold, so the same part instead yields an agent created for it. 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. As for pricing, where it appears, it ranges over backbone models rather than over reuse and creation. 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. 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. 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. 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. 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, recovered by replaying a trace that has already finished, or derived from a relation the domain itself makes checkable, such as whether a claim follows from the sources cited for it. 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. 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. 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. 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.
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.
Data statistics
As summarized in Tab. 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.
Textual Answers
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.
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.
A Step Is Worth What It Leads To
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, since such a benchmark penalizes exactly the behavior this example shows to be correct.


