为错误买单,而非为流程付费:无标签的流内多智能体工作流优化

·

研究论文 · 2026/10/02

大型语言模型(LLM)越来越多地构建多智能体工作流,将复杂任务分解并分配给专家智能体。然而,构建良好的工作流面临挑战:任务分解的粒度、每个子任务信任哪个智能体、何时创建新专家等关键决策需预先确定,而子任务是否成功直到运行才知晓。改进工作流成本高昂,定位故障通常需要参考答案、评分结果或训练评估器,且修复需通过重新执行、重新搜索或重新训练应用于整个工作流。我们提出InFlowOp,将每个决策定价为一种无标签成本,权衡智能体能力与子任务需求的匹配程度及智能体运行开销。执行前,InFlowOp基于成本双向确定任务分解粒度和智能体分配,而非固定模板;执行中,通过同一成本以最廉价方式纠正故障,该成本同时服务于工作流构建和运行。针对工作流级评估挑战,我们引入Braid基准,其任务需要超越单智能体能力的多智能体协调。跨领域和骨干模型,InFlowOp比单智能体基线提升高达+11.97%,流内优化实现+9.64%提升。项目页面:https://xhguo7.github.io/InFlowOp/。

该研究解决了多智能体工作流构建与优化中的关键挑战,提出无需标签的成本驱动方法,显著提升性能,并提供了新的评估基准,对LLM多智能体系统领域具有重要参考价值。

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

阅读原文

参与讨论