An agent workflow may invoke a vision model, speech recognition, an LLM, a code interpreter, and several debate rounds before it returns one answer. Today’s cloud platform commonly sees those steps as independent API calls. The developer selects models and tools, each model service scales itself, and the cluster scheduler allocates hardware without knowing which calls share one accuracy or latency objective. Murakkab, from MIT CSAIL and Microsoft Azure Research, argues that this separation is the resource problem[1].

The system turns the workflow into a declarative task graph. Logical dependencies remain part of the application, while model choice, tool parameters, tensor parallelism, accelerator type, placement, and capacity become execution choices. An offline profiler maps their accuracy, latency, energy, and cost. An optimizer selects feasible configurations for each service-level objective (SLO), and an adaptive runtime changes them as demand and resources move. The result is not a faster model kernel. It is a cloud control plane with permission to change the entire path that produces the answer.

One workflow creates three coupled configuration spaces

The paper studies video question answering, multi-agent code generation, mathematical problem solving, and a dynamic coding pipeline. Video Q&A includes scene detection, frame extraction, speech-to-text, object detection, and a multimodal model. Code generation runs coder and tester agents through several debate rounds, executes candidates, then lets another model rank the result. Every node exposes a local choice, but local maxima do not form an efficient workflow.

For video Q&A, Gemma-3-27B with ten frames and speech transcription reaches the highest reported accuracy of 66.2% among the profiled configurations, while also producing the most tokens within that model family. For code generation, the best-performing reasoning model produces about 20,000 median tokens. Under an otherwise identical debate structure, Gemma-3-27B produces roughly 2,500. Hardware adds another frontier: A100 and H100 devices at tensor-parallel degrees from one to eight produce different TTFT, throughput, energy, and price points.

These choices are multiplicative. Adding one optional tool does not create one more configuration. It changes downstream token counts, model load, critical-path latency, and which hardware placement can meet the final SLO. An external autoscaler that sees requests per second can resize the selected models, but it cannot decide that speech recognition should move to CPU, that an easy coding request needs fewer candidates, or that two workflows can share one model deployment.

Murakkab changes the optimization boundary from separate services to one workflow graph. a, An opaque deployment fixes agent logic, model choice, and hardware in different control planes. b, The declarative graph preserves tasks and dependencies while exposing valid model, tool, and resource choices. c, Profiles and per-request SLOs let the runtime select a complete execution path and multiplex compatible model instances. Original figure created for this article.

Declarative does not mean unconstrained

Murakkab’s workflow specification describes logical tasks, inputs, outputs, and dependencies. Each task has a set of permitted implementations and parameters. The profiler measures valid combinations rather than allowing the runtime to invent a new workflow. The optimizer then selects from those measured operating points under an objective such as minimum energy or minimum cost, subject to required accuracy and latency.

This distinction matters for trust. A cloud system should not silently replace a high-quality model with a cheaper one unless the application has stated an accuracy tier and the replacement was profiled. Murakkab assigns request SLOs such as best, good, fair, or basic accuracy and separate latency tiers. Requests within the same workflow can therefore receive different configurations. The runtime also assumes the 90th-percentile generated-token load when allocating capacity, providing a buffer against the heavy tail.

The control loop runs at an optimization epoch. In the main production-trace experiment, that epoch is 60 minutes. A new instance carries a modeled 20-minute readiness delay covering cloud VM assignment, environment preparation, and weight movement. Shorter epochs react faster but keep transition capacity alive more often. Longer epochs reduce transition cost but accumulate forecast error. In the sensitivity study, intervals around 60 to 180 minutes form the balanced region, while demand underprediction reaches roughly 15% around 240 minutes before overprovisioning dominates again.

The strongest evidence is the 24-hour resource ledger

The hardware experiments use Azure VMs with eight 80 GB A100 or H100 GPUs. vLLM 0.9 serves LLMs, speaches-ai serves speech recognition, and OmDet provides object detection. Because no production agent-workflow trace was available, the authors map a 24-hour Azure chat and coding inference trace from May 2024 onto the video and code workflows. This preserves demand variation but synthesizes the multi-step workflow behind each arrival.

The multi-workflow comparison assigns 70% of requests a high-accuracy objective and 30% a low-latency objective. A hand-configured LangGraph deployment uses 2,568 A100 GPUs, 82.1 MWh, and $211,700. Adding autoscaling reduces the resource count to 2,472 GPUs and cost to $112,300, but keeps the same workflow choices. Murakkab optimizing each workflow separately needs 1,164 GPUs, 27.7 MWh, and $57,200. Joint optimization and multiplexing reduce the totals again to 912 GPUs, 22.1 MWh, and $47,200 while meeting the evaluated SLOs.

Those figures correspond to 2.8× fewer GPUs, 3.7× less energy, and 4.5× lower cost than the hand-configured baseline from the table. The paper summarizes cost as up to 4.3× across its evaluated comparisons, so the public claim should remain 4.3× rather than recomputing a more favorable headline from rounded table values. The important decomposition is that autoscaling alone captures only idle capacity. The remaining savings require changing the workflow and sharing models across requests with compatible SLOs.

The 24-hour multi-workflow ledger separates scaling from cross-layer optimization. The hand-configured LangGraph baseline uses 2,568 A100 GPUs, 82.1 MWh, and $211.7k. Autoscaling mainly removes idle cost. Murakkab’s per-workflow optimization reaches 1,164 GPUs, 27.7 MWh, and $57.2k; joint optimization and multiplexing reach 912 GPUs, 22.1 MWh, and $47.2k while meeting the tested SLOs. Original figure created for this article.

A five-GPU schedule explains the abstraction

One experiment asks the system to verify a student’s coding solution from a video within 30 seconds. Video analysis and reference-code generation can run in parallel. Placing object detection, speech recognition, and the LLMs on GPUs uses six A100s and finishes within the SLO, but leaves specialized GPUs underused. Moving both auxiliary models to CPU uses four GPUs, yet object detection saturates the host and misses the deadline. Murakkab chooses the middle point: object detection on one A100, speech recognition on CPU, and Gemma-3-27B on four A100s. Five GPUs meet the SLO because the slower CPU transcription stays off the critical path.

The five-GPU plan as a physical placement decision. Speech recognition stays on the host CPU, object detection receives one A100, and Gemma-3-27B occupies four A100s so the complete video-code workflow meets its 30-second SLO. The heterogeneous board rendering is a generic material plate, not an Azure VM photograph or product layout; device regions, task assignments, and measurements were drawn deterministically from the reported experiment. Original figure created for this article.

This example is more transferable than the largest percentage. A scheduler needs the dependency graph to know which task can slow down without delaying the answer. Device utilization alone cannot identify that slack. The same principle applies to optional review stages in coding agents. On LiveCodeBench, a review step improves some model and problem combinations but reduces accuracy in others. Static agent templates either overspend on easy tasks or withhold useful work from hard ones.

The result depends on provider-level authority

Murakkab assumes one entity can profile models, deploy them on chosen hardware, inspect workflow structure, and reconfigure execution. An application assembled from external APIs may not expose power, batching, tensor parallelism, instance placement, or model sharing. In that environment, the declarative graph helps with application logic but cannot reproduce the paper’s infrastructure savings.

The evidence also has boundaries. The arrival trace comes from single-model chat and coding services, then receives synthetic agent graphs. The principal workflows and models are a curated set on A100 and H100 VMs. Profile transfer is tested between two mathematics datasets from a similar domain; large distribution shifts could change accuracy or token-load ordering. Cost depends on the paper’s Azure prices and the assumed 20-minute provisioning time. These are inputs to the optimizer, not universal constants.

The next agent platform needs an optimization contract

Operators should require four things before attempting this design. The workflow must expose tasks and dependencies without hard-coding one model. Each alternative must have quality and resource profiles on representative inputs. Users must state which objective may move and which SLO may not. Finally, the platform must record every runtime substitution so that a cheaper answer is still auditable.

Murakkab’s lasting point is that agent efficiency cannot be reduced to tokens per second at one endpoint. The sellable unit is an answer that satisfies a workflow-level quality and latency contract. Once the graph, profiles, and resources share one control plane, the cloud can spend expensive models only where they change that answer.

Source and attribution

This article is an editorial summary prepared by Silicon & Systems. It restates the cited paper’s mechanisms, evaluation conditions, results, and limitations in our own words. No sentences, tables, or figures from the paper are reproduced; all three figures and the card image were created for this article from reported facts. Copyright (c) 2026 the authors. The paper is publicly available through the USENIX OSDI 2026 page.