无需训练,动态调整任务结构,高效生成智能体工作流。
Coupled Hierarchical Search over Topology and Execution for Agentic Workflow Synthesis

- 将任务结构与执行过程联动搜索,实现动态优化
- 在多个基准上超越基线,结果质量高且计算开销小
- 适合需要灵活、低延迟工作流的复杂任务场景
尽管结构化工作流能增强大语言模型解决复杂问题的能力,但其自动化生成受限于庞大的组合搜索空间,常导致僵化和资源密集的离线训练依赖。为此,我们提出将工作流生成建模为拓扑与执行交织的搜索范式,其中高层拓扑决定子任务边界,而底层执行结果可主动重构拓扑。基于此,我们设计了HierFlow——一种无需训练、运行时分层搜索的架构,通过反馈驱动的拓扑调整与类MCTS快速树搜索结合,实现智能体工作流自动设计。其智能门控模块根据上下文需求选择性触发执行级搜索,并通过深入分析揭示跨任务耦合程度对分层效果的影响。在问答、数学推理与代码生成等基准上的全面测试表明,HierFlow持续优于强基线,在无需额外训练的情况下,实现了高质量结果与计算效率的最优平衡。
原文摘要 · Abstract (English)
Although structured workflows empower Large Language Models (LLMs) to tackle complex problems, automating their creation is severely hindered by a vast combinatorial search space, frequently resulting in inflexible and resource-heavy offline training dependencies. To address this, we conceptualize workflow generation as an intertwined topology-and-execution search paradigm, where the broader topological layer dictates subtask boundaries and lower-level execution outcomes actively reshape the topology itself. Building on this foundation, we introduce HierFlow, a training-free, test-time hierarchical search architecture that automates agentic workflow design by merging feedback-guided topology adjustments with a fast, MCTS-inspired tree search for sub-workflow optimization. HierFlow maximizes efficiency through an intelligent gating module that selectively triggers execution-level searches based on contextual necessity, a mechanism we further support with an in-depth analysis detailing how varying degrees of cross-task coupling impact the effectiveness of hierarchical splitting. Comprehensive testing across question answering, mathematical reasoning, and code generation benchmarks confirms that HierFlow consistently outperforms strong baselines, delivering an optimal balance of high-quality results and computational efficiency without any additional training overhead.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。