TL;DR
HexAGenT is a workflow- and heterogeneity-aware scheduler designed for serving multi-step agentic LLM applications across disaggregated prefill-decode GPU clusters. By modeling user requests as dynamically revealed Directed Acyclic Graphs (DAGs) and prioritizing tasks based on their end-to-end Service Level Objective (SLO) risk, HexAGenT significantly reduces tail latency and improves resource efficiency.
What Problem Does This Paper Address?
Large Language Models are rapidly evolving from single-turn chatbots into autonomous "agents" that execute complex, multi-step workflows involving planning, tool usage, and iterative refinement. In these scenarios, a single user request expands into a web of dependent LLM calls. Consequently, users do not experience the latency of an individual LLM call; they experience the end-to-end completion time of the entire workflow.
Existing LLM serving infrastructure (like vLLM or DistServe) is request-centric, optimizing for independent single-turn calls. They fall short for agentic workloads due to three main challenges:
- Online Uncertainty: The workflow structure is revealed incrementally at runtime—downstream LLM calls only appear after their parent calls complete or external tools return.
- Resource Heterogeneity: Modern production environments often mix different GPU generations (e.g., A100, H100, H200). Prefill stages are compute-heavy, while decode stages are memory- and KV-cache-heavy, meaning different tasks run optimally on different hardware.
- Objective Mismatch: Naive call-level scheduling policies (like First-Come-First-Served) can inadvertently delay tasks on a workflow's critical path, severely harming end-to-end SLO attainment.
Methods
HexAGenT addresses these challenges by framing agent serving as a joint online workflow scheduling and heterogeneous placement problem.
Key components of the HexAGenT framework include:
- Online DAG Abstraction: It tracks the "runnable frontier" of workflows as they dynamically unfold (as illustrated in Figure 1).
- Dynamic Horizon Estimation: The scheduler maintains a running estimate of the standalone completion time ($H_w(t)$) for the revealed subgraph of each workflow, updating it progressively as new nodes appear.
- Projected-Risk Prioritization: Instead of scheduling by arrival time, HexAGenT calculates a "projected ratio" score for each ready call. This score measures the risk of a workflow missing its end-to-end latency target, prioritizing the most vulnerable workflows.
- Joint Prefill-Decode Planning: The prefill scheduler simultaneously selects the optimal prefill instance, decode instance, and local queue priority. This joint decision accounts for cross-stage KV-cache transfer latencies and memory capacity constraints across heterogeneous GPUs.
- Asynchronous Execution: To prevent the scheduler from becoming a bottleneck, planning runs continuously in the background while the foreground serving path keeps processing requests.
Datasets
The authors evaluated HexAGenT across four representative agentic workloads constructed from established benchmarks:
- ShareGPT: Conversational-chain workflows emphasizing sequential progress and accumulated chain latency.
- BFCL-v3 (Berkeley Function Calling Leaderboard): Tool-heavy workloads characterized by frequent online call revelations.
- LATS (Language Agent Tree Search): Tree/search-style reasoning workloads featuring bursty parallel fan-outs.
- Mixed: An interleaved trace combining all three workloads to evaluate scheduler robustness under non-uniform queueing pressure.
Evaluations were performed using LLAMA3.1-70B and QWEN3-235B-A22B models across heterogeneous GPU clusters mixing A100, H100, and H200 accelerators.
Key Insights and Ideas
- Workflow Awareness is Necessary but Insufficient: Simply switching from per-call FCFS to workflow-level FCFS prevents unrelated calls from interrupting execution continuity, but it cannot fully exploit hardware differences. True efficiency requires combining workflow awareness with heterogeneous placement.
- Co-designing Placement and Urgency: A prefill-heavy task belongs on a different GPU generation than a decode-heavy task. HexAGenT's core breakthrough is that scheduling urgency must be tightly coupled with hardware capability and cross-stage KV-cache transfer costs.
- Remarkable Robustness to Noise: HexAGenT does not require perfect execution time predictions. Because its ordering signal is smoothed at the workflow level (prioritizing by normalized completion pressure rather than exact per-call durations), the system remains highly stable even when subjected to up to 30% multiplicative estimation error.
Key Results
The paper evaluates performance using the scaled-SLO metric (the minimum latency scale factor $\alpha$ required to satisfy 95% or 99% of workflow deadlines). Lower values indicate tighter, more efficient execution.
- Heterogeneous Clusters: Compared to the strongest baselines (including SGLang and Autellix-ATLAS), HexAGenT reduces the SLO scale required for timely workflow completion by an average of 20.1% at 95% attainment and 33.0% at 99% attainment. Maximum tail-latency scale reductions reached 45.0% and 80.5%, respectively.
- Homogeneous Clusters: To isolate the benefits of workflow-aware ordering from hardware matching, the authors tested a uniform GPU setup. HexAGenT still reduced the 95% SLO scale by up to 24.8% and the 99% scale by up to 36.8%, proving its queue ordering logic works independently of hardware mixing.
- Low Overhead: The average scheduling time per invocation ranges from 7.1 ms to 14.7 ms, demonstrating that HexAGenT introduces negligible CPU-side planning overhead relative to end-to-end workflow execution times.
Limitations and Future Work
- Instance Locking Constraints: Once a call is assigned to a decode instance during the prefill stage, it is "locked" to that instance to simplify KV-cache tracking. This limits the scheduler's ability to dynamically migrate calls if load shifts drastically during decoding.
- Proxy Model Reliance: The decode scheduler relies on a proxy model to predict output sequence lengths. While the system shows robustness to estimation errors, extreme mispredictions could still degrade greedy assignment efficiency.
- Single-Model Focus: The current implementation assumes workflows run on a single model family distributed across a cluster. Extending HexAGenT to multi-model agentic routing (where different steps use entirely different LLMs) remains an open area for future work.
Summary updated