arXiv:2610.24861cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24861

FlowMaker: From Tasks to Cost-Efficient Generative AI Workflow Deployments

Dimitrios Liakopoulos, Prasoon Sinha, Neeraja J. Yadwadkar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generative AI workflows execute user tasks by composing sequences of LLM calls, where each call performs a sub-task (e.g., summarization or translation), forming a workflow. Executing such workflows requires decisions over workflow structure, model assignments, and deployment configurations, which jointly determine latency, cost, and accuracy under dynamic workloads and resource constraints. Existing systems optimize these decisions in isolation or fix them early, leading to suboptimal cost and goodput. We make two key observations. First, efficient serving requires jointly exploring all combinations of workflows, model choices, and deployment configurations under dynamic cluster state. Second, reuse of deployed LLMs is critical for reducing cost, but must be performed on-the-fly, as reuse depends on current load and resource availability. Together, these make selecting a workflow-variant—a combination of workflow, models, and deployment configuration—a time-critical problem. We present FlowMaker, which exposes a task-level interface and selects workflow-variants on behalf of users. To realize this, we design a constraint-guided load-aware pruning algorithm for fast, on-the-fly decisions. FlowMaker improves goodput by up to 10.14×10.14\times and reduces cost by up to 2.77×2.77\times compared to state-of-the-art baselines, including Murakkab.

1 INTRODUCTION

Generative AI applications increasingly execute complex user tasks by composing multiple LLM calls into workflows (Zaharia et al., 2024; Lin et al., 2025; Chaudhry et al., 2026; Amazon Web Services, 2025; Laju et al., 2026; Zhang et al., 2025; Chase, 2022; LangChain, 2025; CrewAI, 2024; Wu et al., 2024; Google Cloud, 2025; Microsoft Azure, 2025). Consider answering questions over enterprise data when relevant documents must be summarized and the result translated. This task can be executed by (a) summarizing the documents and then translating the summary, or (b) translating the documents before summarization, or (c) performing summarization and translation jointly. After choosing a workflow, the system must assign a model to each LLM sub-task (e.g., Llama-3.1-8B or Qwen-2.5-7B) and select a deployment configuration for each model (e.g., tensor- and pipeline-parallelism settings). We call each combination of workflow, model assignments, and deployment configurations a workflow-variant. For the task in Figure 1, assigning 11 models and 10 deployment configurations to the LLM sub-tasks in three candidate work-

Figure

Figure 1: (a) Task graph for document conversion, summarization, and translation, showing the sub-tasks and their dependencies. (b) The three candidate workflows considered in our example. W1W_{1} converts the user-provided PDF to text, summarizes it, and then translates the summary; W2W_{2} and W3W_{3} use alternative organizations of the sub-tasks. Assigning models and deployment configurations to these workflows yields over 24K variants, with significant variation in latency and cost.

flows yields over 24K workflow-variants. Across these variants, latency varies by 189.3×(0.6−119s)189.3 \times (0.6 - 119s), cost by 8725×(2×10−5−0.17∉)8725 \times (2 \times 10^{-5} - 0.17 \notin), and accuracy by 3.3×(14.4−48.0%)3.3 \times (14.4 - 48.0\%). Thus, the selected workflow-variant directly affects the quality, performance, and cost of serving the task.

Being multi-dimensional, these decisions are already complex to make. This complexity is further exacerbated by dynamic conditions: Task arrival rates vary over time (Sinha et al., 2026; Zhou et al., 2022; Bhasi et al., 2022), workload mixes evolve (Wang et al., 2025; Patel et al., 2024; Stojkovic et al., 2025; Qiu et al., 2026), and resource availability changes (Albalawi, 2025; Cortez et al.,

2017). However, existing workflow frameworks typically fix these decisions statically (Chase, 2022; LangChain, 2025; CrewAI, 2024; Wu et al., 2024; Hong et al., 2024), while managed platforms leave them to manual tuning (Amazon Web Services, 2025; Google Cloud, 2025; Microsoft Azure, 2025). Across our experiments, such fixed choices incur up to 4.00×4.00\times the serving cost ( 2.93×2.93\times on average) and achieve up to 12.84×12.84\times lower goodput than a system that jointly adapts these decisions ( §\S 5.1).

In this paper, we study how to serve generative AI tasks under dynamic workloads and resource constraints. Our goal is to increase goodput, the rate of requests completed while satisfying their Service-Level Objectives (SLOs), while reducing serving cost. Existing systems optimize only subsets of the decisions that determine a workflow-variant (Chase, 2022; LangChain, 2025; CrewAI, 2024; Wu et al., 2024; Google Cloud, 2025; Microsoft Azure, 2025; Zhang et al., 2025; Chen et al., 2025; Ong et al., 2025; Liakopoulos et al., 2025; Agrawal et al., 2024; Li et al., 2023). AFlow (Zhang et al., 2025) focuses on task decomposition; LLMSelector (Chen et al., 2025) and RouteLLM (Ong et al., 2025) focus on model selection; and MaverIQ (Liakopoulos et al., 2025), Vidur (Agrawal et al., 2024), and AlphaServe (Li et al., 2023) support deployment selection. Murakkab (Chaudhry et al., 2026), the closest prior system, jointly considers model and deployment choices but fixes the user-provided workflow. Although effective within their respective dimensions, these approaches do not jointly revisit workflows, model assignments, and deployment configurations as workload and cluster conditions change. Consequently, they fail to capture opportunities that arise only when these decisions are made jointly: particularly reuse of LLMs across tasks and adaptation to the current cluster state (e.g., already deployed models, load, and resource availability). We find that this leads to suboptimal performance and resource utilization ( §2.1–2.2§ 2.1–2.2). For example, when serving seven tasks, we observed that an oracle that searches across all three dimensions reduces serving cost by 1.85×1.85\times and increases goodput by 1.69×1.69\times relative to Murakkab ( §2.1§ 2.1).

We argue that serving systems need to make these decisions on behalf of users, rather than relying on statically fixed choices or requiring manual configuration. We propose a task-level interface: users specify only the task along with accuracy and performance SLOs, and the system selects a workflow-variant—a combination of workflow, model choices, and deployment configurations. To support this interface, the serving system needs to explore the full design space of workflow-variants and select one per task to improve serving cost and goodput.

Joint selection is especially important as different tasks can reuse the same deployed LLM. When a suitable model is already deployed and lightly loaded, reusing it can avoid the cost of an additional deployment. The same decision may violate latency SLOs when that model is heavily utilized. Because deployed models, their load, and available resources change as tasks arrive, reuse decisions cannot be fixed offline. Instead, the serving system must select a workflow-variant and make on-the-fly reuse decisions to determine which deployed models can be reused based on the current cluster state. This turns workflow-variant selection into an online constrained-search problem.

However, existing off-the-shelf algorithms are not well-suited for this setting. For the task in Figure 1, exhaustively evaluating the variants induced by three workflows, 11 models, and 10 deployment configurations per model consumes approximately 40 CPU-minutes. On a single CPU, this is approximately 4.7×4.7 \times the task's most relaxed latency SLO of ∼510s\sim 510s. Recent profilers (Liakopoulos et al., 2025; Agrawal et al., 2024; Hsia et al., 2025; Lee et al., 2025) reduce the cost of profiling individual LLM configurations, but do not eliminate the cost of evaluating workflows composed of multiple models. General-purpose methods such as Bayesian optimization (Močkus, 1975; Garnett, 2023; Zhou et al., 2022; Acun et al., 2026) and evolutionary search (Eiben & Smith, 2015; Walter et al., 2022) also rely on repeated candidate evaluations. In our setting, this evaluation cost must be paid whenever changing load or reuse opportunities alter the feasible choices. Thus, meeting the online decision budget requires exploiting the structure of this problem to eliminate candidates before evaluating complete workflow-variants.

To this end, we build FlowMaker, an inference serving system for generative AI workflows that meets user SLOs while minimizing serving cost. FlowMaker exposes the task-level interface: users specify only the task along with any latency and accuracy SLOs. FlowMaker generates candidate workflows for each task and lets users select the suitable ones. Involving users in selecting among the generated candidate workflows is intentional for two reasons: (1) task decomposition is often ambiguous and can yield multiple valid interpretations (Huang et al., 2025), and (2) current LLMs are unreliable as autonomous planners (Valmeekam et al., 2023; 2025; Kambhampati et al., 2024). FlowMaker then selects a workflow-variant for each task by jointly reasoning over work-flows, model choices, deployment configurations, and on-the-fly reuse under dynamic cluster state. To make this search fast, we design a novel load-aware pruning algorithm that progressively narrows the candidate space using accuracy feasibility, operational cost, and performance under the current load. It then selects a low-cost workflow-variant estimated to satisfy the user's latency and accuracy SLOs, when one exists, while considering opportunities to reuse already deployed models.

We make the following contributions:

• We formulate serving generative AI workflows as a joint selection problem over workflows, model assignments, and deployment configurations. We show that considering all three dimensions and making reuse decisions from the current cluster state materially improve goodput and serving cost.

• We design a load-aware workflow-variant selection algorithm that searches across this joint space without exhaustively evaluating variants. In our evaluation, it reduces search time by 3.7×3.7 \times relative to Aquatope's (Zhou et al., 2022) Bayesian optimization while accounting for reuse across tasks.

• We implement FlowMaker atop TensorRT-LLM. Across loads and arrival patterns, FlowMaker increases goodput by 1.45–10.14×(4.73×avg)1.45–10.14 \times (4.73 \times \text{avg}) and reduces serving cost by 1.56–2.77×(1.95×avg)1.56–2.77 \times (1.95 \times \text{avg}) over Murakkab (Chaudhry et al., 2026). Joint search alone improves average goodput and cost by 4.34×4.34 \times and 1.48×1.48 \times, respectively, while on-the-fly reuse further reduces cost by 1.31×1.31 \times.

References (83)