TL;DR
As Large Language Model (LLM) applications evolve from simple chatbots into complex, multi-step agentic systems, the way we orchestrate their workflows becomes a critical engineering challenge. This paper provides the first comprehensive survey of workflow optimization for LLM agents, framing these systems as Agentic Computation Graphs (ACGs). By distinguishing between static templates optimized offline and dynamic graphs adapted at runtime, the authors establish a unified taxonomy and a much-needed standardized evaluation protocol for the field.
What Problem Does This Paper Address?
Building a high-performing LLM agent is no longer just about picking the strongest foundation model or engineering the perfect prompt. Modern agentic systems rely on complex scaffolding—interleaving LLM calls with information retrieval, tool usage, code execution, and verification steps.
Historically, these workflows have been hardcoded or designed ad-hoc. While a growing body of literature treats workflow design as an optimization problem, the research is fragmented across different sub-fields (e.g., multi-agent collaboration, tool learning, and planning). Prior surveys have largely treated the workflow structure as a fixed implementation detail rather than the primary object of optimization.
As shown in the authors' mapping of the literature landscape, this survey specifically targets the structural optimization of these agentic workflows under explicit quality-cost trade-offs:
Methods
The authors introduce the Agentic Computation Graph (ACG) as a unifying abstraction where nodes represent atomic actions (LLM calls, tool execution, verifiers) and edges represent data or control flow dependencies. They break down workflow optimization into three distinct artifacts:
- ACG Template ($\bar{G}$): The reusable, structural design space available before an input is seen.
- Realized Graph ($G^{run}$): The actual workflow structure deployed for a specific run.
- Execution Trace ($\tau$): The exact sequence of states, actions, and costs recorded during execution.
Using this framework, the survey categorizes optimization methods based on Graph Determination Time (GDT) and Graph Plasticity Mode (GPM), splitting the literature into two paradigms:
- Static Workflow Optimization: The workflow structure is fixed before deployment. Optimization happens offline via template searches over constrained design spaces (e.g., using Monte Carlo Tree Search or evolutionary algorithms) or via node-level tuning (e.g., prompt optimization frameworks like DSPy).
- Dynamic Workflow Optimization: The workflow structure adapts at inference time based on the input query or intermediate runtime feedback. This ranges from lightweight subgraph selection and pruning, to pre-execution generation (constructing a query-specific graph before running it), and fully flexible in-execution editing (rewiring the graph on the fly to recover from tool failures or negative verifier signals).
Datasets
The paper organizes 27 workflow-relevant evaluation assets into four functional categories:
- Workflow-Generation Benchmarks: Assets like WorFBench and FlowBench that explicitly evaluate structural fidelity and graph validity.
- Training Corpora & Executable Validators: Standard code and reasoning datasets used to validate local or global design choices (e.g., HumanEval, MBPP, GSM8K, MATH).
- Interactive Tool-Use Benchmarks: Environments requiring long-horizon orchestration and tool selection under realistic constraints (e.g., GAIA, $\tau$-Bench, AppWorld).
- Software & Operations Environments: Repositories and procedural execution logs that test planning and recovery under hard budget constraints (e.g., SWE-bench, Terminal-Bench).
Key Insights and Ideas
- Structure Trumps Prompts: Prompt optimization is incredibly valuable, but it cannot fix a fundamentally broken workflow. If an agent fails because it lacks a verification step or uses an incorrect control flow path, optimizing the prompt will not solve the root issue. Graph-level optimization provides a higher-leverage intervention.
- The Plasticity Spectrum Trade-off: More flexibility isn't always better. While in-execution editing provides maximum expressivity for highly uncertain environments, it introduces massive search spaces and budget risks. For predictable tasks that vary mostly in difficulty, lightweight runtime pruning or static templates are often cheaper, safer, and easier to debug.
- Verifiers are High-Leverage Gatekeepers: Integrating cheap, semantically meaningful verifiers (like unit tests or schema checkers) early in the workflow yields the highest optimization returns. They allow systems to aggressively prune failing execution paths before wasting expensive downstream LLM tokens.
Key Results
As a synthesis paper, the primary result is the systematic organization of 77 in-scope works (39 core optimization papers, 7 adjacent routing/pruning papers, and 31 background frameworks).
To combat the trend of papers reporting only downstream task success while hiding massive compute costs, the authors propose a Minimum Reporting Protocol. They argue that future workflow optimization papers must explicitly report graph-level metrics (node count, depth, structural variance), online inference costs (tokens, wall-clock time, cost-per-success), and robustness tests (tool failure injections, paraphrase invariance) to ensure true scientific reproducibility.
Limitations and Future Work
The survey highlights several open challenges blocking maturity in this field:
- Structural Credit Assignment: It remains incredibly difficult to isolate why an agentic system improved. Did a performance gain come from a better prompt, a new edge in the graph, an added verifier, or simply spending more compute?
- Expressivity vs. Verifiability: Highly dynamic graphs with loops and runtime agent creation are powerful but notoriously difficult to validate statically or benchmark reliably.
- Continual Adaptation Under Drift: Real-world tool registries and APIs change constantly. Current research lacks efficient methods for adapting dynamic workflow generators to environment drift without completely re-training them.
- Lack of Foundational Theory: The field heavily borrows from reinforcement learning and program synthesis but lacks a foundational theory detailing when dynamic generation is strictly necessary versus when static templates are sufficient.
Summary updated