Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective
Organizations: National University of Singapore Singapore
Abstract
Agentic workflows are composed of sequences of interdependent Large Language Model (LLM) calls, and they have become a dominant workload in modern AI systems. These workflows exhibit extensive redundancy from overlapping prompts and intermediate results due to speculative and parallel exploration. Existing LLM serving systems, such as vLLM, focus on optimizing individual inference calls and overlook cross-call dependencies, leading to significant inefficiencies. This paper rethinks LLM and agent serving from a data systems perspective and introduces Helium, a workflow-aware serving framework that models agentic workloads as query plans and treats LLM invocations as first-class operators. Helium integrates proactive caching and cache-aware scheduling to maximize reuse across prompts, KV states, and workflows. Through these techniques, Helium bridges classic query optimization principles with LLM serving, achieving up to 1.56x speedup over state-of-the-art agent serving systems on various workloads. Our results demonstrate that end-to-end optimization across workflows is essential for scalable and efficient LLM-based agents.
Figures & tables
| Workflow | Datasets | Configuration |
|---|---|---|
| MapRed | MMLU, TAT-QA | 14 experts for MMLU, 7 experts for TAT-QA with 7 distinct roles |
| Debate | MMLU, TAT-QA | 3 agents with distinct roles, 2 rounds of debate |
| Reflect | TAT-QA | 1 expert, 2 critics |
| Iterative | Amazon | 6 review chunks, 10 reviews each |
| Parallel | Amazon | 7 experts, each processing 6 review chunks |
| System | Relative Latency (× vs. Helium ) | ||
|---|---|---|---|
| Average | Min | Max | |
| vLLM | 66.27 | 38.18 | 100.92 |
| OpWise | 1.25 | 1.02 | 1.58 |
| LangGraph | 1.28 | 1.09 | 1.83 |
| AgentScope | 2.10 | 1.07 | 4.32 |
| Parrot | 1.44 | 1.02 | 2.21 |
| System | Configurations | Latency (s) | Perf. delta (%) |
|---|---|---|---|
| Helium | Full | 130.14 | 0.00 |
| w/o KV | 134.76 | -3.55 | |
| w/o PP | 160.53 | -23.35 | |
| w/o PC | 147.79 | -13.56 | |
| w/o CAS | 153.12 | -17.66 |
| Scheduling method | Latency (s) | Cache hit rate (%) |
|---|---|---|
| QueryWise | 658.54 (4.40×) | 42.3 (-25.1%) |
| OpWise | 419.03 (2.80×) | 40.8 (-27.8%) |
| Random | 193.54 (1.29×) | 37.1 (-34.4%) |
| LSPF | 188.93 (1.26×) | 37.9 (-32.9%) |
| Helium (w/ only CAS) | 149.76 | 56.5 |
| Sched. method | Total token step ( ) | Optimality gap (%) | ||||
|---|---|---|---|---|---|---|
| Avg | Min | Max | Avg | Min | Max | |
| QueryWise | 21.6 8.6 | 10.2 | 34.2 | 72.4 39.3 | 26.7 | 149.2 |
| OpWise | 15.3 6.9 | 7.0 | 26.4 | 17.6 9.9 | 3.6 | 30.7 |
| Random | 15.2 7.2 | 7.0 | 27.7 | 16.3 8.1 | 6.0 | 30.3 |
| LSPF | 14.9 6.9 | 7.0 | 26.9 | 14.5 8.7 | 2.8 | 30.5 |
| Helium | 13.4 6.5 | 6.0 | 24.1 | 0.9 1.4 | 0.0 | 3.6 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Op | Type | Description |
|---|---|---|
| Data | IO | Encapsulates a data batch as a node in the DAG. |
| Input | IO | Placeholder for data provided at compile time. |
| Output | IO | Materializes data as a final output of the workflow. |
| Format | Prompt | Formats input text using specified arguments. |
| Lambda | Prompt | Applies an arbitrary Python function to the input data. |
| LLM | Model | Generates LLM responses for input conversation contexts. |
| System | Cache hit rate (%) | |
|---|---|---|
| Qwen3-8B | Qwen3-14B | |
| vLLM | 42.9 (-27.5%) | 43.0 (+0.3%) |
| OpWise | 40.8 (-31.1%) | 39.9 (-6.9%) |
| LangGraph | 37.1 (-37.3%) | 36.7 (-14.4%) |
| AgentScope | 39.3 (-33.7%) | 36.5 (-14.9%) |
| Parrot | 41.8 (-29.4%) | 36.9 (-13.8%) |
LLM Serving
Large language model serving studies how to deliver model responses with low latency, high throughput, and efficient use of compute and memory.
See all 206 papers