Skip to content
TrackPodcasts
scienceMar 26, 202627:57

From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents

About this episode

🤗 Upvotes: 43 | cs.AI, cs.CL

Authors:
Ling Yue, Kushal Raj Bhandari, Ching-Yun Ko, Dhaval Patel, Shuxin Lin, Nianjun Zhou, Jianxi Gao, Pin-Yu Chen, Shaowu Pan

Title:
From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents

Arxiv:
http://arxiv.org/abs/2603.22386v1

Abstract:
Large language model (LLM)-based systems are becoming increasingly popular for solving tasks by constructing executable workflows that interleave LLM calls, information retrieval, tool use, code execution, memory updates, and verification. This survey reviews recent methods for designing and optimizing such workflows, which we treat as agentic computation graphs (ACGs). We organize the literature based on when workflow structure is determined, where structure refers to which components or agents are present, how they depend on each other, and how information flows between them. This lens distinguishes static methods, which fix a reusable workflow scaffold before deployment, from dynamic methods, which select, generate, or revise the workflow for a particular run before or during execution. We further organize prior work along three dimensions: when structure is determined, what part of the workflow is optimized, and which evaluation signals guide optimization (e.g., task metrics, verifier signals, preferences, or trace-derived feedback). We also distinguish reusable workflow templates, run-specific realized graphs, and execution traces, separating reusable design choices from the structures actually deployed in a given run and from realized runtime behavior. Finally, we outline a structure-aware evaluation perspective that complements downstream task metrics with graph-level properties, execution cost, robustness, and structural variation across inputs. Our goal is to provide a clear vocabulary, a unified framework for positioning new methods, a more comparable view of existing body of literature, and a more reproducible evaluation standard for future work in workflow optimizations for LLM agents.

Get every episode summarized

Each time Daily Paper Cast publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.

Email me new episodes

Free for 3 shows. No card needed.

Hosts & guests

Transcript ready

479 searchable segments. Every word is indexed and playable.

From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents

Daily Paper Cast

0:00
27:57

Full transcript

Daily Paper CastFrom Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents. Machine-transcribed; use the interactive transcript above to jump the player to any line.

Hello, everyone, and welcome back to another exciting episode of the Daily Papercast. I'm Echo. And I'm Nova. Today we dive into a fascinating research paper that caught our eye from Hugging Faces Daily Paper List. Yep, we've got four main sections to break down for you today. The introduction, methods, experiments, and related work. Each taken about four to five minutes. So buckle up and get ready for an insightful journey. All right, let's kick things off by reading the title of today's paper word by word. From static templates to dynamic runtime graphs, a survey of workflow optimization for LLM agents. This paper is authored by Ling Yu, Kushal Raj Bandari, and the corresponding author's Pin Yu Chen from IBM Research and Shao Wu Pan from Rensselaer Polytechnic Institute. Absolutely, Echo. Now let's dive into the introduction. Large language model, LLM-based systems are evolving.

They're no longer just sophisticated chatbots that respond to simple prompts. Instead, they are integrated into what are called executable workflows. Right. And by workflows, they mean an orchestrated set of steps designed to accomplish a task. These steps can include LLM calls, tool use, information retrieval, code execution, memory updates, and verification. Exactly. For instance, imagine a coding assistant tool. It might need to retrieve relevant files, propose edits, run tests, and use a verifier to decide whether to revise or complete the task. In multi-agent systems or MAS, these actions may be distributed across multiple specialized agents, communicating via a defined pattern. This pattern specifies how agents are connected and how messages flow between them. Indeed, what really matters here is not just the quality of each individual model call, but the overall workflow structure.

This structure dictates what is called, when it is called, and how information flows between the calls. Workflow structure encompasses the components or agents present, their interdependencies, and the flow of information. By representing this system as a graph, one can reason about topology, communication density, scheduling, verification placement, and cost. And these design choices significantly impact both the efficiency and effectiveness of the system. The introduction highlights that a weak scaffold might be rescued by better prompts, but can also be enhanced by adding a verifier or pruning redundant communication. On the flip side, improvements in agent capability might come with hidden structural costs, like excessive depth, fragile control flow, and high communication overhead. Absolutely. This survey by UA and colleagues uses the term workflow in a broad structural sense, aiming to differentiate between static methods, which utilize a fixed scaffold, and dynamic methods

that customize the workflow per run. Furthermore, the paper categorizes prior work along three dimensions, when structure is determined, what part of the workflow is optimized, and which evaluation signals guide optimization. This breakdown helps in identifying whether a method optimizes reusable design per run structure or runtime behavior. This separation ensures clarity on whether the optimization efforts are focused on reusable templates, specific run-based structures, or actual runtime behavior. It's about assessing quality cost trade-offs effectively. The ultimate goal here is to provide a clear vocabulary, a unified framework to position new methods, a more comparable view of existing literature, and a reproducible evaluation standard for future research in optimizing workflows for LLM agents. And that wraps up our overview of the introduction section. Stay tuned as we dive into the method section next.

Lots more intriguing details to come. All right, Nova, let's dive into the method section. This is where the magic happens, right? Absolutely. This section provides the nuts and bolts of how the researchers conducted their study. It's like the secret recipe they followed to achieve their results. So where do we start? To begin with, the paper distinguishes between three essential components in their workflow, reusable workflow templates, run-specific realized graphs, and execution traces. These distinctions are crucial for understanding their approach. Reusable templates, realized graphs, and execution traces, huh? That sounds pretty intricate. Could you break it down for us into more bite-sized pieces? Of course. So a reusable workflow template is basically a high-level blueprint. It includes nodes, which represent various actions like LLM calls, tool use, or information retrieval. The edges define how these nodes are connected, and other parameters like prompts, model

choices, or verifier settings. Got it. And a realized graph is... A realized graph is the actual structure used during a specific run. Imagine you're building something using a LEGO set. The template is the instruction manual, and the realized graph is the actual LEGO model you build. It might include optional pieces and variations based on the specific instructions for that run. Ah, I see. In the execution trace? The execution trace is the sequence of states, actions, observations, and costs associated with running the realized graph. It records what happened, step-by-step, during the execution. Cool. So, the researchers use these distinctions to analyze and optimize the workflow of LLM agents. What's next? Next, they discuss static versus dynamic workflow optimization. Static methods involve fixing the workflow structure before deployment, whereas dynamic methods adapt the structure at runtime, based on the specific needs of each task.

Static seems straightforward, but dynamic sounds tricky. How did they manage that? Dynamic optimization is indeed more complex. The key here is flexibility. Dynamic methods determine part of the workflow during inference time, allowing the system to adapt to different queries by selecting, generating, or editing the workflow on the fly. That's impressive. So what's the main advantage of using dynamic methods? The main advantage is flexibility. Unlike static methods, which might be limited by their predetermined structures, dynamic methods can better handle diverse task requirements and unforeseen changes during execution. For instance, if a task reveals new information during its execution, the workflow can adapt accordingly. And how do they ensure that these dynamically optimized workflows remain effective and efficient? Great question, Echo. The researcher's balanced task quality against execution cost expressed through a quality cost trade-off equation.

This equation considers the tasks' quality score and the associated execution costs, like token usage, tool calls, latency, and monetary expenses. So, they optimize to get the best possible output without overblowing the budget. Make sense. Exactly. Now, let's look at some practical implications. The paper suggests that node-level, graph-level, and joint optimization approaches each have their place. Node-level focuses on tweaking prompts, tools, and models within a fixed structure. Graph-level adjusts the overall topology and communication between nodes, while joint optimization updates both simultaneously or in alternating stages. And when should you go static versus dynamic? The decision depends on the task heterogeneity and the degree of flexibility required. Static methods are sufficient when the operator space is constrained, the evaluator trustworthy, and the workload repetitive. Dynamic methods, however, shine when tasks demand different tools, reasoning depths, and verification

regimes. Got it. So static for repetitive, well-structured tasks and dynamic for more varied, unpredictable ones. Exactly. And within dynamic methods, there's a spectrum from runtime selection and pruning to pre-execution generation and in-execution editing, each adding more flexibility, but also more complexity and overhead. Can you elaborate on these dynamic methods a bit? Sure. Runtime selection involves pruning or activating parts of a larger predefined graph based on task requirements. It inherits validity from the overall graph and is relatively easy to manage. Pre-execution generation builds a workflow entirely before execution starts, offering more structure but at a higher initial cost. In-execution editing is the most flexible, allowing changes during the task's execution, essential for highly interactive environments. Wow. That's like having a Swiss Army knife of workflow approaches.

Exactly. Each approach has its pros and cons, and the choice depends on the specific use case. The researchers emphasize the importance of robust verifiers, efficient execution, and high quality structure to support these dynamic methods. It sounds like a lot of careful planning and balancing, not just in the workflows, but in choosing the right approach to optimize them. Absolutely. Another crucial aspect discussed is the evaluation protocol. It's essential to report not just the outcomes, but the workflows used, their variance, and the costs involved. This transparency helps attribute gains accurately, ensuring that the improvements are due to better workflows and not just more compute or hidden retries. What metrics do they recommend for this? They recommend a comprehensive set of metrics, including effectiveness, like accuracy or success rate, efficiency, tokens used LLM calls, cost, graph level properties, node count, depth, structural variance, and robustness tests, handling paraphrases, tool failures, etc.

That's thorough. Anything else highlighted in their method? Yes. They also emphasize the need for minimum reporting protocols. This includes clear documentation of the workflow representation, structural setting, model and tool configurations, offline and online costs, trace statistics, and robustness evaluations. So essentially, they're promoting a culture of transparency and thorough evaluation in workflow optimization research. Exactly. By doing so, it makes comparisons more scientific and reproducible, helping other researchers build on their work more effectively. Alright. It's clear that the methods section outlines a very detailed and comprehensive approach to workflow optimization for LLM agents. It's all about balancing flexibility, efficiency, and thorough evaluation. That wraps up our discussion on methods. Stay tuned as we dive into the experiments next. Alright, Nova, let's dive into the experiment and result section of our paper today.

This is where things really start to get interesting. Absolutely. This is where we see all the methods put to the test, right? So where do we begin? We start with a look at the different scenarios and setups used to test the workflow optimization methods. The paper breaks this down into several main parts, including static optimization tests, dynamic optimization scenarios, and various feedback mechanisms. Got it. Let's walk through each part slowly. First up, static optimization. What exactly did they do in this segment? In the static optimization experiments, the researchers tested reusable templates and fixed collaboration scaffolds. Essentially, they wanted to see how well these pre-designed workflows perform in stable conditions. This included using methods like Monte Carlo tree search, combined with LLM guided expansions and evaluations. Right. And static optimization would be less flexible since the method is pretty much set in stone before deployment.

Does that make static methods more reliable? Exactly. The stability and reliability of static methods are some of their key benefits. The experiments show that these methods are easier to inspect, constrain, and benchmark, which makes them great under certain conditions. However, the main drawback is their brittleness under distribution shifts or unexpected branching. So, they work really well until something significant changes, classic trade-off, right? On to dynamic optimization, then. What makes this setup different? Dynamic optimization is all about flexibility. These methods adjust parts of the workflow during inference time, based on the needs of different tasks. The paper highlights three types of dynamic optimization, runtime selection, pre-execution generation, and in-execution editing. So, runtime selection is like pruning a tree according to the needs of the moment, right? How was that tested? Exactly. This selection is the lightest form of dynamism.

It involves keeping a supergraph fixed and making decisions about which parts to activate or prune based on task-specific needs. Methods like adaptive graph pruning and DAGP were used in these tests, conditioning pruning on estimated graph difficulty to optimize the accuracy cost trade-offs. Nice. So it selects parts of the workflow tree that's most suitable for the task. What about pre-execution generation? What's happening there? Pre-execution generation steps up the flexibility. Here, the workflow is generated or selected specifically for a run before execution even starts. This method is more expressive and adapts to complex task requirements by dynamically sampling roles and edges to create query-conditioned, directed acyclic graphs, DAGs, 4-9 DAGs. So each task potentially gets a unique workflow constructed just for it. That sounds powerful, but also more computationally demanding, right?

Absolutely. There's a trade-off here as well. While this method offers greater structural expressivity, it also demands more computational resources. The experiments showed that these methods are strongest when different queries require genuinely different workflows. Fascinating. Now, in execution editing must be the most flexible, given it makes adjustments during the actual execution. How was that evaluated? Right again. In execution editing, adapts workflows on the fly based on runtime feedback. This was tested by introducing intermediate verification steps, unexpected outcomes, and failures to see how well the workflows could adapt. Methods like die flow and agent conductor are examples used in these settings. That sounds like a real stress test for any workflow system. Should we talk about the results from these experiments? I bet there were some interesting findings there. For sure, the results showed that dynamic methods often outperform static ones in environments

with high variability and uncertainty. However, they also required more sophisticated validation checks and budget controls to ensure that they weren't just throwing resources at the problem blindly, for nine source, for four source. So dynamic optimization offers more flexibility and can handle unexpected changes better, but it's more complex to manage. Were there any specific metrics or findings that stood out to you? One key metric was the accuracy cost trade-off, which highlighted how well each method balanced effectiveness with computational efficiency. For instance, in environments with stable APIs and strong verification, static methods were highly cost effective. Conversely, dynamic environment adaptations like verifiers and runtime generation were crucial when facing tool drift or environment shifts. And what about the feedback mechanisms? How did they factor into these experiments? Feedback mechanisms were essential in driving the optimization process.

Direct-driven optimization used direct success metrics like accuracy and cost effectiveness. Verifier-driven approaches utilized unit tests and schema checks as strong supervision points. Preference signals compared workflows to identify the best structures. Last but not least, trace-derived textual feedback offered richer and more detailed guidance for refining workflows. It sounds like a real mix of techniques to get the best out of each workflow optimization method. Although we've got static and dynamic methods, various feedback signals, what else was crucial to their success? Oh, there's a lot more, like the importance of balanced verification costs and structurally meaningful feedback. The research advises starting with a constrained static scaffold, or small operator library, and only moving to more complex methods if essential. It's all about finding a balance between flexibility and control to maintain efficiency without compromising on adaptability.

Right. It sounds like the typical don't over-complicate unless you need to advice. Hmm, anything more about the specific findings from the feedback mechanisms that were particularly noteworthy? The verifier-driven approach stood out. It was found most valuable when verifiers were both cheap and semantically meaningful. This means using unit tests, executability checks, and schema checks can provide dense actionable feedback without consuming too many resources. This approach can efficiently prune unproductive branches while inserting overly expensive verifiers can hinder overall optimization. Makes complete sense. This balance of cost and utility in feedback mechanism sounds critical. Anything else before we wrap up this segment? One last important point is the role of baselines and practical hybrid recipes. The experiments stress the importance of comparing new structures against strong baselines. For instance, autogen and camel were highlighted as frameworks providing stable execution loops,

which are crucial for realistic tool integration, starting with these baselines and progressively adding complexity as necessary is a practical recipe suggested by the survey. Such detailed and comprehensive experiments. The takeaways from this are definitely going to be super valuable for anyone working on optimizing LLM agent workflows. Thanks for breaking it all down, Echo. Happy to help, Nova. That wraps up our experiment section for this episode. Alright, Nova, let's shift gears and delve into the related work section of the paper. You ready? Absolutely, Echo. I think this is the heart of understanding any scientific paper, so let's get into it. What does the papers say about prior research? The authors of the paper have done a great job positioning their work within the existing landscape. They point out that previous surveys have mainly focused on adjacent aspects of workflow optimization for large language models, or LLMs. Adjacent aspects?

You mean like what? Give us some examples, Echo. For instance, there have been studies centered on planning, tool learning, multi-agent collaboration, and broad agent optimization, but these often take the workflow structure for granted and don't treat it as the primary object of optimization. Ah, I see. So those studies are more about improving pieces of the puzzle, but not necessarily how those pieces fit together as a whole. Exactly. And that's where our paper comes in. It focuses specifically on the workflow structure, which determines how various components like LLM calls, tool use, and information retrieval are composed. Interesting. So how do they categorize the works that are in the scope of their survey? Good question, Nova. The authors categorize the literature into core, adjacent, and background based on their relevance to workflow optimization. Core methods directly optimize reusable workflow templates or executable realized graphs.

Adjacent methods influence workflow structure through routing, team selection, and pruning. Background resources include frameworks, data sets, and benchmarks that shape workflow optimization or evaluation. That sounds pretty comprehensive. So do they mention any key contributions from prior research? They do. They reference a range of studies, some of which focus on static workflow optimization, while others explore dynamic methods determined at inference time. All right. Break it down for us. What's the main difference between these static and dynamic methods? Static methods optimize a reusable template offline. They improve the overall scaffold or specific nodes within a fixed structure. Dynamic methods, on the other hand, allow for runtime decisions, such as generating or editing the workflow for specific queries, either before or during execution. Got it. Sounds like static methods are easier to benchmark, but dynamic methods offer more flexibility.

Exactly. The paper highlights this trade-off in various prior works. They reference studies like A-flow, which uses Monte Carlo tree search for offline template search, and autoflow, which employs a domain-specific language for workflow generation based on natural language requirements. OK. So they've got a bit of everything covered. Do they mention any gaps in the existing literature? Indeed, they point out that while some surveys cover aspects like orchestration frameworks and multi-agent communication patterns, none focus specifically on workflow optimization as the main object. So the current paper aims to fill that gap by synthesizing literature specifically on LLM-centered workflow optimization. They've grouped prior work into different categories to show just how varied the approaches can be. Yes. And they also introduce a structured framework that classifies methods based on when the workflow structure is determined, whether it's pre-execution, at runtime, or a mix

of both. They refer to these as graph determination time, GDT, and graph plasticity mode, GPN. That's fascinating. It sounds like they're laying the groundwork for a new unified vernacular for workflow optimization. Absolutely. They even propose an evaluation protocol to ensure consistency and reproducibility in future research. This involves separating downstream task performance from graph properties, execution costs, robustness, and structural variations across inputs. Wow. They've really thought this through. So what about tool learning and multi-agent systems? Are these areas considered in their survey? Yes. Data work in tool learning is referenced for its focus on retrieving, invoking, and planning tools. While multi-agent systems are examined through studies on collaboration mechanisms and communication protocols. And how do these relate to workflow optimization? Great question. Although these studies contribute to the broader ecosystem, the authors argue that workflow

optimization requires explicitly treating the workflow structure as the main focus of optimization. In essence, it's about optimizing how components interact beyond just improving individual parts. I see. So in prior literature, the main objects of optimization were either component specific or just assumed the workflow structure as a given framework. This paper shifts the focus directly onto optimizing that structure itself. Precisely. This new survey aims to fill the distinct gap by systematically synthesizing methods that directly optimize workflows for LLM agents. They bring everything together in one comprehensive overview. That's super cool. It's like this paper is providing a roadmap for researchers to navigate the intricate landscape of workflow optimization. Exactly. Nova. And with that, we conclude the related work section. All right. Nova. Let's wrap this up by summarizing the key contributions and takeaways from this comprehensive

paper. It's truly been a journey. Absolutely echo. So this paper essentially brings a fresh perspective on optimizing workflows for large language model, LLM agents. It treats these workflows as agentic computation graphs or ACGs and really dives deep into understanding how these graphs can be optimized, you know, like agents working as a team to complete tasks more efficiently and effectively. Yes. Exactly. They categorize and streamline the different ways to structure these workflows. One of the standout contributions is their taxonomy of structure determination. This taxonomy clearly sorts methods based on when the workflow structure is decided, whether that's before, during or after execution. It's like organizing your tasks based on when you plan to do them, right? Right. And another major contribution is the cross cutting synthesis of optimization targets, evidence sources and update mechanisms.

It's a way to understand what part of the workflow each method changes, whether it's a single node, the entire graph, or a joint optimization, plus they look at the evidence supporting these changes and how quality cost trade-offs are managed. Very practical for anyone optimizing these systems. Exactly. They also present an evaluation protocol aiming to make workflow evaluation more comparable and reproducible, which is super important in research. They separate downstream task performance from graph properties and execution cost, trying to ensure that evaluations are thorough and transparent. You ever had an experiment that you just couldn't get the same results twice? Yeah. They're trying to fix that. Oh. Tell me about it. I can't even get my coffee the same temperature twice. But seriously, this kind of methodological rigor is crucial for advancing the field. And lastly, they offer practical guidance on selecting and using static versus dynamic methods based on the specific needs of your workload. It's like having a recipe book for workflow optimization.

Super handy. Absolutely. Nova. So to our audience, the key takeaways are that this paper provides a structured, in-scope synthesis of current literature, clarifies different workflow structures, and suggests robust evaluation protocols. It bridges gaps in understanding how to effectively optimize LLM agent workflows, ensuring that we not only build, but also maintain efficient systems, practical, insightful, and actionable. Definitely a worthwhile read. Couldn't agree more, Echo. And with that, I think we've covered the essentials. We hope you, our lovely listeners, found this episode enlightening and useful. Please join us next time for another dive into the fascinating world of AI research. And don't forget to subscribe to Daily Papercast if you haven't already. We'll be back with more exciting papers, breaking them down, and having some fun along the way. Thanks for tuning in. Absolutely. Until then, stay curious and keep exploring.

Goodbye, everyone. Bye.

More episodes

More from Daily Paper Cast

View all episodes →