Manuscript Offprint

arXiv:2610.01017

Pay for the Fault, Not the Flow: Label-Free In-Flow Multi-Agent Workflow Optimization

Xuehang Guo, Haoyu Wang, Shengyu Chen, Zach Chen, Wei Cheng, Qingyun Wang, Haifeng Chen

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

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 +11.97%, achieving +9.64% with in-flow optimization. Our project page: https://xhguo7.github.io/InFlowOp/.

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

Yet the decisions such an agent makes are narrower than they appear. How finely the task is divided is fixed in advance,

Input Task

We're considering acquiring a company and have 300 documents to review, including contracts, financial reports, project updates, HR policies, customer agreements, invoices, security reports, and emails. Can you go through them, identify the key risks and inconsistencies, connect related information across documents, and prepare a clear summary of what we should be concerned about?

Single-Agent

  1. Ingest and organize documents

  2. Extract key facts and obligations

  3. Analyze each document/domain

...

Answer: Overall, the company appears to have a generally stable business with established customers, ongoing projects, and standard financial, HR, and security processes. The document review identified some areas that may require further attention, including several contract obligations, project delays, outstanding invoices, and some security and compliance considerations. The financial reports appear broadly consistent with the invoices ...

Time-consuming, context overload, lack of specialized expertise and details, repetitive content, inaccurate analysis, inconsistent analysis, self-contradictory conclusions, ...

Multi-Agent

Document Analyzer

Domain Experts

Failed

If failed, rerun from scratch (-$100)

Document Analyzer

Domain Experts

Success

If failed, repair in the flow (-$10)

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.

Xuehang Guo xguo15@wm.edu, Haoyu Wang haoyu@nec-labs.com, Haifeng Chen haifeng@nec-labs.com 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 (Chae et al., 2025; 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 (Zhou et al., 2026; Sun et al., 2026; Choi et al., 2025).

INFLOWOP answers these in two stages ( §3§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§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 ( §3.2§3.2). 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 on hand settles how finely the task is divided, enabling agent creation only when no available agent clears a competence bar ( §3.1§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 ( §3.2§3.2).

③ BRAID: a benchmark for reasoning over agent-interdependent divisions. Workflow-level tasks are those a single agent cannot solve effectively ( §C§C). This is the premise that motivates workflows in the first place, yet one that existing benchmarks seldom satisfy ( §C.1§C.1). We introduce BRAID ( §4§4), 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% ( §5§5).

References (80)