Murakkab: Resource-Efficient Agentic Workflow Orchestration in Cloud Platforms

Gohar Irfan Chaudhry, Esha Choukse, Haoran Qiu, Íñigo Goiri, Rodrigo Fonseca, Adam Belay, Ricardo BianchiniarXiv 2025 · DOI

Abstract

Agentic workflows, which coordinate multiple AI models and tools to solve complex tasks, often suffer from significant resource inefficiencies due to the tight coupling between application logic and hardware. We present Murakkab, an orchestration system that decouples these layers using a declarative specification and an adaptive, SLO-aware runtime. By employing a profile-guided optimizer, Murakkab reduces GPU usage by up to 2.8x, energy consumption by 3.7x, and costs by 4.3x, all while strictly maintaining user-defined performance and accuracy targets.

Introduction

The AI industry is shifting from single-model inference to agentic workflows, where multiple models (e.g., LLMs, speech-to-text) and tools (e.g., code executors) collaborate to solve complex problems. Currently, these workflows are highly inefficient because they are "fragmented" and "opaque." Developers typically hard-code specific models and hardware into their applications, while cloud providers have no visibility into the internal structure of these workflows. This siloed approach makes it impossible to optimize for trade-offs between accuracy, latency, energy, and cost, leading to massive resource waste.

System Architecture

Murakkab introduces a full-stack solution built on two core principles: declarative specification and an adaptive, SLO-aware runtime.

The Murakkab architecture decouples frameworks from agent providers and cloud platforms, enabling centralized orchestration and resource management.

Declarative Specification

Instead of writing imperative code that binds tasks to specific hardware, developers use a declarative abstraction. They define logical tasks (e.g., "convert speech to text") and their dependencies. This allows the system to choose the best model and hardware at runtime based on current demand and Service Level Objectives (SLOs).

Adaptive, SLO-Aware Runtime

The system maintains detailed profiles for workflows and models. A Mixed-Integer Linear Program (MILP) optimizer runs periodically to create deployment plans, deciding which models to load and how to distribute requests. This enables dynamic multiplexing, where different workflows are co-located on the same hardware to maximize utilization.

Evaluation and Workflows

Murakkab was evaluated using three representative agentic workflows:

Examples of agentic workflows: a multi-modal Video Q/A pipeline (left) and a text-based Code Generation debate structure (right).
  • Video Q/A: A multi-modal workflow involving scene detection, frame extraction, speech-to-text, and object detection.
  • Code Generation: A text-only workflow using an "LLM Debate" structure where multiple agents iterate to find a solution.
  • Math Q/A: A self-reflecting agent that iteratively solves and checks mathematical problems.

For realistic testing, the authors used production-scale traces from Microsoft Azure’s LLM inference service to simulate real-world request arrivals.

Key Insights

  • The "Opaque Box" Problem: By exposing the internal nodes of a workflow, Murakkab enables cross-layer optimization that was previously impossible for cloud providers.
  • CPU Offloading: Murakkab identifies tasks (like audio transcription) that can be offloaded to idle CPUs, saving expensive GPU time without violating latency goals.
  • High-Dimensional Trade-offs: The system automatically finds "Pareto frontiers"—mathematical sweet spots where accuracy is maximized for the least energy or cost.

Results and Conclusion

Compared to static baselines like LangGraph, Murakkab achieved up to a 2.8x reduction in GPU usage, 3.7x lower energy consumption, and 4.3x lower execution costs. Crucially, it successfully maintained accuracy and latency SLOs even during load spikes. Future work will extend Murakkab to manage larger, more heterogeneous clusters and explore specialized hardware like NPUs for specific agent sub-tasks.

Summary updated

BibTeX
@misc{chaudhry2025murakkab,
  author = {Gohar Irfan Chaudhry and Esha Choukse and Haoran Qiu and Íñigo Goiri and Rodrigo Fonseca and Adam Belay and Ricardo Bianchini},
  title = {{Murakkab: Resource-Efficient Agentic Workflow Orchestration in Cloud Platforms}},
  year = {2025},
  eprint = {2508.18298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.18298},
}
Figure