TL;DR
Multi-agent LLM workflows introduce complex task dependencies and massive model-switching overheads when run on heterogeneous GPU clusters. This paper introduces a prediction-guided runtime that optimizes the physical execution graph by fusing consecutive tasks and proactively managing model lifecycles. By treating model availability as an integral part of scheduling, the system cuts completion latency by up to 25.9% and significantly reduces wasted GPU resources.
What Problem Does This Paper Address?
Modern AI applications increasingly rely on compound multi-agent systems (built using frameworks like LangGraph or AutoGen) that orchestrate sequential and parallel LLM calls, tool usage, and control loops. However, deploying these applications on cost-constrained, heterogeneous GPU pools creates severe operational bottlenecks.
Traditional LLM serving systems schedule at the individual request level, ignoring the macro-structure of the agent workflow. This decoupling leads to two major inefficiencies:
- Model-Lifecycle Stalls: Schedulers reactively load models only after a request becomes ready, leading to massive waiting times. As shown in Figure 1, waiting for model availability can account for up to 85.5% of total request waiting time.
- Repeated Physical Admission: Consecutive nodes in a workflow often use the same LLM but are treated as independent scheduling units. This forces the system to repeatedly release, re-queue, and re-acquire the inference backend at logical boundaries, introducing severe tail latencies (Figure 2).
Methods
The authors present a prediction-guided runtime that translates a logical multi-agent workflow into an optimized physical execution graph through three core components (Figure 3):
- Predictor: Estimates device-specific activation latency, peak memory, and model-loading costs using cached profiles and runtime feedback. It propagates these estimates through the workflow DAG to forecast when downstream tasks will become "near-ready."
- Constructor: Modifies the physical execution graph without altering logical semantics. It performs same-workflow chain fusion—grouping consecutive nodes that share a model deployment into a single execution grant—and identifies opportunities for shared model-lifecycle actions (like prefetching or coordinated reclamation) across distinct workflows.
- Scheduler: An event-driven heuristic that jointly optimizes task placement, resource ordering, and model residency on a unified timeline. Operating under strict cumulative memory constraints, it commits an immediate executable prefix and dynamically revises the remaining plan as execution telemetry arrives.
Datasets
The system was evaluated using three application-level multi-agent workloads paired with the Qwen3 model family (ranging from 0.6B to 14B parameters):
- GSM8K: An ensemble math-solving workflow that dispatches five parallel heterogeneous solvers, aggregates their answers via majority vote, and refines the final output.
- Sanitized MBPP: A tool-augmented code repair workflow that sequences code generation, testing, diagnosis, review, and validation across four distinct model deployments.
- QMSum: A hierarchical, long-context meeting summarization workflow featuring parallel rolling-summary chains followed by a multi-stage aggregation chain.
Key Insights and Ideas
- Proactive Prefetching via "Near-Readiness": Instead of waiting for a task to become fully ready, the system exploits the visibility of the workflow DAG. If a model's predecessors are currently running, the system flags it as near-ready and can prefetch its weights onto the GPU before the inputs even arrive.
- Eliminating Logical Boundaries: Chain fusion changes the basic unit of admission. By keeping the inference backend open across fused nodes, the system eliminates the costly release-and-re-acquire loop that plagues standard request-level schedulers.
- Heterogeneity-Aware Co-Design: The runtime treats GPU memory capacity and compute throughput as a joint optimization problem. It prevents flexible activations from occupying scarce, high-capacity GPUs (like an A100) needed by long-context synthesizer agents, ensuring that model loading fits the cumulative memory timeline.
Key Results
- Latency Reductions: Under burst arrival workloads, the system reduces the end-to-end makespan by up to 36.8% and cuts the overall p95 completion latency by up to 25.9% compared to state-of-the-art workflow schedulers like Parrot and Kairos (Figure 5).
- GPU Time Efficiency: The architecture saves up to 24.63 GPU-seconds per completed session. This efficiency gain stems primarily from minimizing "idle residency"—time where model weights occupy GPU memory without actively generating tokens.
- High Prediction Accuracy: The Predictor achieves a low runtime Weighted Absolute Percentage Error (WAPE) of 7.25% and reproduces correct device-performance orderings with 97.94% accuracy.
Limitations and Future Work
- Tick-Local Planning Horizon: The scheduler's planning window is restricted to currently ready and immediate near-ready units. While this keeps scheduling overhead low, it can miss global, long-term optimization opportunities across highly extended workflows.
- Sensitivity to Predictability: The system relies on predictable execution and loading profiles. Highly dynamic workflows—where tool outputs cause massive, unpredictable variations in sequence lengths or branch choices—could degrade the scheduler's timeline accuracy.
- Scaling to Elastic Clusters: The evaluation focused on a small, fixed heterogeneous GPU pool typical of private enterprise deployments. Extending this joint physical-graph and lifecycle orchestration to highly elastic, large-scale cloud environments remains an open challenge.
Summary updated