Benchmarking Agentic Workflow Generation

Shuofei Qiao, Runnan Fang, Zhisong Qiu, Xiaobin Wang, Ningyu Zhang, Yong Jiang, Pengjun Xie, Fei Huang, Huajun Chen

Introduction

As Large Language Models (LLMs) transition from simple conversational agents to autonomous entities capable of using tools and navigating environments, their ability to plan becomes critical. Most complex real-world tasks are not merely straight lines of sequential actions; they are workflows—structured sets of subtasks with specific dependencies. For example, to "make a sandwich," you can gather bread and cheese simultaneously, but you must have both before assembly.

Researchers have introduced WORFBENCH, a new benchmark designed to test how well LLMs can generate these complex, non-linear workflows. Their findings reveal a significant "graph gap": even top-tier models like GPT-4 are much better at listing sequential steps than they are at mapping out the intricate dependencies and parallel tasks required for real-world execution.

Existing benchmarks for agentic planning often suffer from three main flaws:

  1. Linear Bias: They focus on simple sequential steps, ignoring the parallelism found in the real world.
  2. Narrow Scope: They often only evaluate a single domain, such as coding or math.
  3. Lax Evaluation: They frequently rely on "LLM-as-a-judge," which is prone to the same hallucinations and biases as the models being tested.

Methodology: WORFBENCH and WORFEVAL

To address these limitations, the authors propose a comprehensive two-part solution: a diverse dataset and a rigorous evaluation protocol.

Overview of the WORFBENCH construction and WORFEVAL methodology

1. WORFBENCH (The Benchmark): To accommodate how LLMs naturally process information, the authors break workflow generation into two distinct stages:

  • Node Chain Generation: The model first generates a logical sequence of subtasks.
  • Workflow Graph Generation: The model then defines the edges (dependencies) between those subtasks, creating a Directed Acyclic Graph (DAG).

2. WORFEVAL (The Evaluation): Instead of subjective LLM-based grading, the authors employ deterministic algorithms to compare a model’s predicted workflow against a "gold standard":

  • For Chains: They use the Longest Increasing Subsequence (LIS) algorithm to determine how many steps the model placed in the correct relative order.
  • For Graphs: They use the Maximum Common Induced Subgraph (MCIS) algorithm to precisely measure how much of the predicted dependency structure matches the ground truth.

Datasets

The authors compiled a massive dataset comprising 18,000 training samples and over 2,000 test samples across four diverse scenarios:

  • Function Calling: Using APIs to solve multi-hop queries.
  • Problem-Solving: Math and commonsense reasoning.
  • Embodied Planning: Navigating virtual environments (e.g., ALFWorld).
  • Open-Grounded Planning: General real-world tasks (e.g., WikiHow).

They also included "held-out" tasks (Seal-Tools and InterCodeSQL) to test whether models could generalize their planning skills to entirely new domains.

Key Insights and Results

The "Graph Gap" There is a massive performance drop when models move from linear planning to graph planning. GPT-4, for instance, scores roughly 67% on linear chains but drops to 52% on graph structures—a 15% "competency gap."

Performance gap between linear chain and graph workflow generation as complexity increases

Efficiency through Parallelism By generating graph-structured workflows instead of linear ones, agents can execute independent tasks in parallel. In their experiments, this reduced end-to-end inference time by 20% to 33%.

Weak-Guide-Strong Architecture The researchers found that workflows generated by a smaller, specialized model (like a fine-tuned 7B model) could significantly improve the performance of a much larger, general model (like a 72B model). This suggests a "supervisor" architecture where small, domain-expert models handle the planning for larger "executors."

Data vs. Reasoning While fine-tuning 7B models on WORFBENCH led to huge gains on familiar tasks (sometimes beating GPT-4), these models struggled to generalize to the held-out tasks. This suggests that structured planning is a deep reasoning skill that cannot be fully "memorized" through data alone.

Model Performance and Error Analysis * Top Performers: GPT-4 and Claude 3.5 Sonnet emerged as the top performers, but even they struggled with "Open-Grounded" tasks, where graph scores plummeted to the 30-40% range. * Open-Source Parity: The best open-source models (like Qwen-2-72B) are now approaching the planning capabilities of GPT-4, though a small gap remains. * Common Errors: The most frequent failure modes were Granularity (steps were too vague) and Graph Errors (logical dependencies were incorrect), rather than simply getting the steps wrong.

Limitations and Future Work

The authors identify several areas for future improvement:

  • Static Planning: The current benchmark uses a "one-pass" generation paradigm. In reality, agents often need to adjust their workflows based on environmental feedback (iterative planning).
  • Structural Complexity: The current workflows are Directed Acyclic Graphs (DAGs). They do not yet include more complex logic like loops (repeat until done) or conditional branches (if X, do Y; else do Z).
  • Domain Coverage: While broad, the dataset still misses some heterogeneous scenarios that require mixing tool use with physical embodiment in a single workflow.

Summary updated

BibTeX
@inproceedings{qiao2025benchmarking,
  author = {Shuofei Qiao and Runnan Fang and Zhisong Qiu and Xiaobin Wang and Ningyu Zhang and Yong Jiang and Pengjun Xie and Fei Huang and Huajun Chen},
  title = {{Benchmarking Agentic Workflow Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=vunPXOFmoi},
}
Figure