HierFlow: Hierarchical Coupled Dual-Space Search for Automatic Agentic Workflow Generation
Dong Li, Yanchi Liu, Xujiang Zhao, Wei Cheng, Zhengzhang Chen, Xintao Wu, Zhong Chen, Haifeng Chen, Chen Zhao
Abstract
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.
Create a lesson
Related papers
COAgents: Multi-Agent Framework to Learn and Navigate Routing Problems Search Space
Shared title terminologycs.AIOleksandr Yakovenko, Mahdi Mostajabdaveh, Cheikh Ahmed et al.
Interactive Proofs as a Unified Framework for Evaluating and Leveraging Verifiable Proof Generation by LLM Agents
Shared title terminologycs.AIYankai Shu, Xingyu Zhao, Chuan Mao et al.
FIG-MAC: A Fine-grained Inspiration Graph Empowered Multi-Agent Collaboration for Automated Scientific Hypothesis Generation
Shared title terminologycs.AISiyuan Chen, Yuping Gao, Tai Huang et al.
Partial Routing: Trace-Tuned Delegation for Resource-Efficient Agentic Workflows
Shared title terminologycs.AISiddharth Arya, Kshitij Jain
The Control-Flow Tax: Specialized Decision Routing for LLM Agent Workflows
Shared title terminologycs.AIZhikai Cheng, Shuanghu Wang, Li Jiang
Isomorphism Is Not Enough: An Agentic Audit of Verified Code Generation in Lean
Shared title terminologycs.AIAlessandro Sosso, Akhil Arora, Bas Spitters