DynaFlow:学习自由形式的多智能体编排
研究论文 · 2026/10/27
多智能体系统通常依赖预定义的协作结构,限制了其适应多样任务需求的能力。我们提出DynaFlow框架,将自由形式的可执行工作流合成集成到主智能体的动作空间中。智能体决定何时需要协作,并生成任务特定的程序,通过顺序或并行执行、结构化信息交换和验证来协调子智能体。执行结果和轨迹为后续动作提供信息,使智能体能够随着推理进展调整协作。我们仅通过蒸馏轨迹上的监督微调来训练主智能体,随后在针对不支持的前提、有偏验证和信息流缺陷过滤的示例上进行细化。所有子智能体保持固定,将编排学习与执行器能力改进分离。在涵盖数学推理、科学问答和多跳检索的六个基准上,DynaFlow在强制模式下达到88.08%的整体准确率,在相同Qwen3.5-27B骨干下比最强评估基线高出10.90个百分点。工作流分析发现,训练后上游输出的显式使用、验证和细化更多,突显跨阶段信息流作为多智能体编排的关键维度。
DynaFlow通过让主智能体动态生成协作工作流,显著提升了多智能体系统在多样任务上的适应性和性能,其训练方法分离编排与执行器能力,为多智能体编排学习提供了新思路,实验效果突出。
Multi-agent systems often rely on predefined collaboration structures, limiting their ability to adapt to diverse task requirements. We introduce DynaFlow, a framework that integrates free-form executable workflow synthesis into the action space of the main agent. The agent decides when collaboration is needed and generates task-specific programs that coordinate sub-agents through sequential or parallel execution, structured information exchange, and verification. Execution results and traces inform subsequent actions, enabling the agent to adapt collaboration as reasoning progresses. We train only the main agent through supervised fine-tuning on distilled trajectories, followed by refinement on examples filtered for unsupported premises, biased verification, and information-flow defects. All sub-agents remain fixed, separating orchestration learning from executor capability improvement. Across six benchmarks spanning mathematical reasoning, scientific question answering, and multi-hop retrieval, DynaFlow achieves 88.08% overall accuracy in Forced mode, outperforming the strongest evaluated baseline by 10.90 percentage points with the same Qwen3.5-27B backbone. Workflow analysis finds more explicit use, verification, and refinement of upstream outputs after training, highlighting cross-stage information flow as a key dimension of multi-agent orchestration.