Manuscript Offprint

arXiv:2609.04513

Atlas: Optimizing Deployment of Compound AI Workflows on Heterogeneous Clusters

Milos Gravara, Andrija Stanisic, Stefan Nastic

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

Milos Gravara

Distributed Systems Group

TU Wien

m.gravara@dsg.tuwien.ac.at

Andrija Stanisic

Distributed Systems Group

TU Wien

a.stanisic@dsg.tuwien.ac.at

Stefan Nastic

Distributed Systems Group

TU Wien

s.nastic@dsg.tuwien.ac.at

Abstract—Compound AI workflows are increasingly used to serve complex AI tasks by coordinating multiple AI models and software components. This approach enables deployment flexibility, as each workflow stage can expose different model variants and resource requirements, but it also expands the deployment choices. A deployment must choose an execution plan that selects AI models for each compound AI workflow stage and places them on a heterogeneous cluster in order to satisfy SLOs. Deployment optimizers therefore need estimates to compare many candidate plans and identify feasible ones. System metrics can often be profiled per stage and composed according to workflow topology, but accuracy cannot, as errors and information loss at upstream stages affect the accuracy of downstream stages. Existing approaches either profile complete configurations end to end, which scales poorly, or use product-based accuracy surrogates that treat stages as independent and can misrank candidate plans. We introduce Atlas, a framework for optimizing compound AI deployments under SLO constraints. Atlas uses MAP, a Markovian Accuracy Predictor, to estimate configuration accuracy from local conditional accuracy transitions between adjacent workflow stages. MAP discretizes intermediate outputs into accuracy buckets and composes transition profiles according to workflow topology, giving the optimizer an accuracy estimate without exhaustive end-to-end profiling. Atlas formulates execution-plan selection as a mixed-integer linear program that maximizes predicted accuracy subject to SLOs. Across four compound AI workflows, MAP achieves Spearman correlation up to 0.947 while reducing profiling cost by up to 2.6× relative to exhaustive end-to-end profiling. Guided by MAP, the Atlas optimizer selects execution plans within 0.03 of oracle accuracy while reducing deployment cost by up to 42% through heterogeneous placement.

Index Terms—Compound AI, Model Selection, Deployment Optimization, Distributed Inference

I. INTRODUCTION

The field of Artificial Intelligence (AI) is shifting from deploying monolithic AI models towards Compound AI systems. Compound AI represents a distributed intelligence approach combining multiple specialized AI models with software components into workflows, where each stage represents a single model or component invocation, orchestrated to solve various AI tasks [1]–[6]. This approach offers practical advantages for reliability, scalability, and efficiency, enabling control over model outputs, component-specific adjustments, and adaptation to changing conditions [7]–[12].

These advantages are not obtained by the workflow structure alone. A Compound AI workflow must be instantiated as an execution plan before deployment [3], [13], [14]. Such a plan selects the model variant, runtime parameters and hardware placement of each workflow stage to satisfy given Service Level Objectives (SLOs), which typically include latency, throughput, and cost constraints [13]–[16]. As production workflows grow in the number of stages, these choices create a combinatorial space of execution plans [17], [18]. Each plan occupies a different point in the accuracy-performance-cost space, which often compete [19]–[23]. This means that, for example, selecting larger AI models per stage may improve overall accuracy, but typically increases latency and cost. On the other hand, plans including cheaper or faster AI models may satisfy SLOs, but often at the expense of workflow accuracy. Therefore, deployment optimization amounts to jointly selecting model variants per stage and mapping them onto heterogeneous hardware, managing the resulting trade-offs to find plans that maximize accuracy among those feasible under the given SLOs.

A common formulation of this optimization problem requires estimating accuracy and system behavior for each candidate execution plan before selection [13], [14], [23], [24]. Latency, throughput, and cost are mainly tractable in this setting because they can often be profiled for individual stage variants on target hardware and composed according to the workflow topology [13], [14], [22], [24]. Yet, such process cannot be applied to estimate workflow accuracy. As output of one stage becomes the input to downstream stages, errors and information loss introduced upstream can change the accuracy distribution of later stages [3], [17], [18]. Workflow-level accuracy therefore depends on how quality propagates through the execution plan, inducing a challenge in estimating plan accuracy before deployment.

Existing approaches commonly estimate workflow-level accuracy in one of two ways. End-to-end profiling evaluates complete execution plans directly and provides faithful measurements for plan selection [3], [14], [22], [23]. This captures interactions between stages, but each added variant, parameter, or stage requires additional complete workflow evaluations, making exhaustive profiling intractable as workflows grow in depth and variant count. To reduce profiling cost, recent work has constructed surrogate accuracy models by composing per-stage accuracy estimates, often as products of individual stage accuracies [13], [18]. Such surrogate models are efficient, but they treat stage contributions as largely independent and therefore do not capture how upstream errors or information loss affect downstream behavior. As a result, existing methods either preserve interaction fidelity at high profiling cost or reduce cost through assumptions that weaken accuracy estimation across multi-stage workflows.

In this paper, we introduce Atlas, a framework that optimizes model selection and hardware mapping for Compound AI workflows under SLO constraints. Atlas selects execution plans that maximize predicted task accuracy while satisfying latency, throughput, memory, and cost requirements. To estimate workflow accuracy without exhaustive end-to-end profiling, Atlas profiles how model choices at one workflow stage affect the output quality of the next. The Markovian Accuracy Predictor (MAP) then discretizes these quality signals into buckets and composes the resulting transition profiles according to the workflow topology, predicting end-to-end accuracy for any candidate configuration. The Atlas optimizer combines these accuracy predictions with system performance profiles in a mixed-integer linear program (MILP), producing an execution plan that specifies model selection and hardware mapping for each workflow stage.

The main contributions of this work are:

  • Atlas - A novel framework for deployment optimization of Compound AI workflows on heterogeneous clusters. Atlas takes a workflow specification, candidate model variants, a calibration dataset, and SLOs as input, and produces an execution plan specifying model variant selection and hardware placement per workflow stage. It separates accuracy estimation from system profiling, keeping both tractable, and supports linear, routed, loop, and composed workflow topologies.

  • MAP - A Markovian Accuracy Predictor that estimates configuration accuracy from local conditional quality transitions between adjacent workflow stages. MAP discretizes intermediate outputs into quality buckets and composes transition profiles according to workflow topology using three operators: linear pipelines, routed workflows, and feedback loops. Across four evaluated workflows, MAP achieves the strongest ranking correlation among evaluated predictors, with Spearman ρ=0.947\rho = 0.947 on RAG, ρ=0.921\rho = 0.921 on RAG with routing, ρ=0.783\rho = 0.783 on RAG with self-refinement, and ρ=0.882\rho = 0.882 on the full composed workflow, while reducing profiling cost by 2.6×2.6\times on our largest measured workflow, growing to over 80×80\times in synthetic projection.

  • Atlas Plan Optimizer - An execution plan optimizer that formulates plan selection as a Mixed-Integer Linear Program (MILP) over model variant selection and hardware placement, jointly optimizing predicted accuracy subject to latency, throughput, memory, and cost constraints. The predicted accuracy objective is supplied by MAP and evaluated over all candidate configurations before the MILP is invoked, keeping the objective linear. On a homogeneous cluster, Atlas selects execution plans within 0.03 of oracle accuracy across all evaluated loads and SLOs, while baseline approaches fall by up to 0.45. On a heterogeneous cluster, Atlas matches oracle accuracy at up to 42% lower deployment cost than single-tier strategies.

The remainder of this paper is organized as follows. Section II motivates the accuracy-estimation problem. Section III presents the Atlas framework and system model. Section IV introduces MAP. Section V formulates the MILP. Section VI evaluates Atlas, Section VII reviews related work, Section VIII discusses design choices and Section IX concludes.

References (50)