代码即编排:通过可执行脚本实现自演进的多智能体协作
Code as Orchestration: Self-Evolving Multi-Agent Collaboration through Executable Scripts
AI总结:
提出COS系统将任务协调表示为可执行脚本,在四个基准上优于ReAct等三个基线,提升了多智能体协作的编排可修改性与性能。
摘要:
用多个智能体解决复杂任务需要明确指定智能体交互方式且可根据执行反馈修改的编排机制。预定义工作流通过明确但固定的协调规则组织智能体协作,而运行时委托虽允许自适应,但使整体控制流难以提前检查和验证。因此,我们提出COS(Code as Orchestration System,代码即编排系统),它将每个任务的协调表示为指定智能体调用、控制流和信息交换的脚本,由运行时直接执行,使编排可解释且易于修改。当累积证据不支持候选答案时,COS从执行轨迹中诊断失败并重新生成脚本,而事实库(fact store)在多轮中携带已审查的发现。每次重新生成在代码中明确且可追溯到诊断的失败,变化仅限于编排策略。在涵盖深度研究和科学推理的四个基准上,使用相同基础模型与ReAct、Frontier Agent和DeepSeek Harness对比评估,COS在BrowseComp和FrontierScience-Research上优于所有三个基线,分别达到89.65%和53.33%,比最强基线分别超出2.37和21.67个百分点。
英文摘要:
Solving complex tasks with multiple agents requires orchestration that explicitly specifies how agents interact and can be revised in response to execution feedback. Predefined workflows organize agent collaboration through explicit but fixed coordination rules, while runtime delegation allows adaptation but makes the overall control flow harder to inspect and validate in advance. Therefore, we introduce COS (Code as Orchestration System), which expresses the coordination of each task as a script that specifies agent invocation, control flow, and information exchange and is executed directly by a runtime, making the orchestration interpretable and easier to revise. When the accumulated evidence does not support the candidate answer, COS diagnoses the failure from execution traces and regenerates the script, while a fact store carries reviewed findings across rounds. Each regeneration is thus explicit in the code and traceable to the diagnosed failure, with changes limited to the orchestration strategy. Evaluated on four benchmarks spanning deep research and scientific reasoning against ReAct, Frontier Agent, and DeepSeek Harness using the same base model, COS outperforms all three baselines on BrowseComp and FrontierScience-Research, reaching 89.65% and 53.33% and exceeding the strongest baselines by 2.37 and 21.67 percentage points, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。