← Latest papers
🤖 AI

Coupled Hierarchical Search over Topology and Execution for Agentic Workflow Synthesis

HierFlow is a training-free, test-time architecture that automates agentic workflow synthesis by employing a coupled hierarchical search paradigm, which dynamically integrates topology adjustments with execution-level optimization to achieve superior performance and efficiency across diverse benchmarks.

Original authors: Dong Li, Yanchi Liu, Xujiang Zhao, Wei Cheng, Zhengzhang Chen, Xintao Wu, Zhong Chen, Chen Zhao, Haifeng Chen

Published 2026-07-27
📖 4 min read☕ Coffee break read

Original authors: Dong Li, Yanchi Liu, Xujiang Zhao, Wei Cheng, Zhengzhang Chen, Xintao Wu, Zhong Chen, Chen Zhao, Haifeng Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a super-smart robot how to solve a really hard puzzle, like a complex math problem or a tricky coding challenge. You can't just tell the robot "figure it out" and hope for the best; it needs a plan, a step-by-step recipe of what to do first, second, and third. In the world of artificial intelligence, these plans are called workflows. Think of a workflow like a map for a treasure hunt: it tells the robot where to dig, when to look for clues, and how to use tools to get the treasure.

For a long time, humans had to draw these maps by hand. If the puzzle changed, the map often became useless, and humans had to start over. Recently, scientists figured out how to let the robot draw its own maps. But here's the catch: the number of possible maps is so huge it's like trying to find a single specific grain of sand on every beach on Earth. If the robot tries to check every single map, it takes forever and burns out its brain (or its computer budget). So, the big question for scientists is: How can we teach a robot to quickly find the best map for a specific puzzle without wasting time on bad ones, and without needing to go back to school to learn new things first?

This is where a new idea called HierFlow comes in. The researchers behind this paper, led by Dong Li and colleagues, realized that instead of trying to find the perfect map all at once, you should build it in layers, like a construction crew. They suggest a two-step dance: first, sketch the rough outline of the plan (the "topology"), and then, only if necessary, zoom in to fix the specific details of each step (the "execution").

Here's how their magic trick works. Imagine you are organizing a massive school play. The Top Level is the director. The director doesn't worry about how to sew the costumes or paint the sets; they just decide the big picture: "First, we build the stage. Then, we cast the actors. Finally, we rehearse." This is the Topology Search. The director draws a simple flowchart of these big steps.

But what if the director's plan has a flaw? Maybe the stage can't be built before the actors are cast because the actors need to know their lines to help design the stage. The director might not know this yet. This is where the Lower Level comes in. Think of this as a team of specialized stagehands. When the director says, "Build the stage," the stagehands don't just blindly start hammering. They run a quick, smart test (using a method inspired by a game called Monte Carlo Tree Search, which is like playing out a few possible futures in your head to see which one wins). They try a few different ways to build the stage. If they hit a wall or realize the plan is impossible, they send a signal back to the director: "Hey, this order doesn't work! Let's swap the steps."

The coolest part of HierFlow is its Adaptive Gating. In the past, robots would try to fix every single step of the plan, even if the step was already perfect. It's like a chef tasting every single grain of salt in a soup, even if the soup is already delicious. HierFlow is smarter. It has a "gatekeeper" that asks, "Is this step actually broken or confusing?" If the answer is "No," the gate stays closed, and the robot saves its energy. If the answer is "Yes," the gate opens, and the stagehands zoom in to fix it. This saves a ton of time and computer power.

The paper shows that this method works incredibly well. When they tested HierFlow on tough challenges like answering tricky questions, solving math problems, and writing code, it beat almost every other method they compared it to. It didn't just get better answers; it got them faster and cheaper. The researchers found that by letting the "director" and the "stagehands" talk to each other, the robot could fix its own mistakes on the fly without needing any extra training. It's like giving the robot a self-correcting compass that points it straight to the solution, no matter how twisty the path gets.

In short, HierFlow suggests that we don't need to force robots to memorize every possible solution. Instead, we can teach them to sketch a plan, check if it makes sense, and only dig deep into the details when they actually need to. It's a way to make AI smarter, faster, and more flexible, turning a chaotic search for the perfect plan into a smooth, organized construction project.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →