ServeGen: Workload Characterization and Generation of Large Language Model Serving in Production

Yuxing Xiang (Peking University and Alibaba Group), Xue Li (Alibaba Group), Kun Qian (Alibaba Group), Yan Zhang (Peking University), Wenyuan Yu (Alibaba Group), Ennan Zhai (Alibaba Group), Xin Jin (Peking University), Jingren Zhou (Alibaba Group)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · When ML Meets Its Network

Overview

Large language model (LLM) serving has rapidly evolved into one of the most resource-intensive and critical cloud computing workloads, powering diverse enterprise applications at massive scale. At Alibaba, production inference infrastructure serves billions of daily requests spanning traditional language models, multimodal systems, and complex reasoning pipelines. Every core serving mechanism—including request scheduling, dynamic autoscaling, memory management, and hardware resource provisioning—relies heavily on underlying workload assumptions. If these assumptions are flawed, the resulting systems will fail to meet performance targets under real-world conditions.

Watch on YouTube · Slides

Visual summary for ServeGen: Workload Characterization and Generation of Large Language Model Serving in Production by Yuxing Xiang, Xue Li, Kun Qian, Yan Zhang, Wenyuan Yu, Ennan Zhai, Xin Jin, Jingren Zhou
Visual summary for ServeGen: Workload Characterization and Generation of Large Language Model Serving in Production by Yuxing Xiang, Xue Li, Kun Qian, Yan Zhang, Wenyuan Yu, Ennan Zhai, Xin Jin, Jingren Zhou

Key moments

  1. 0:00 Introduction and motivation for LLM workload characterization
  2. 2:00 Overview of ServeGen contributions and scope
  3. 4:00 Analysis of LLM arrival patterns and input-output lengths
  4. 7:25 Key insight: The causal per-client decomposition model
  5. 9:50 Multimodal and reasoning workload characteristics
  6. 12:00 ServeGen workload generation framework and validation
  7. 13:10 Case study 1: Instance provisioning and SLO evaluation
  8. 14:00 Case study 2: Prefill-decode disaggregation and conclusion

ServeGen: Workload Characterization and Generation of Large Language Model Serving in Production

Speakers: Yuxing Xiang (Peking University and Alibaba Group); Xue Li (Alibaba Group); Kun Qian (Alibaba Group); Yan Zhang (Peking University); Wenyuan Yu (Alibaba Group); Ennan Zhai (Alibaba Group); Xin Jin (Peking University); Jingren Zhou (Alibaba Group)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=Lubca0kJq3U

Overview

Large language model (LLM) serving has rapidly evolved into one of the most resource-intensive and critical cloud computing workloads, powering diverse enterprise applications at massive scale. At Alibaba, production inference infrastructure serves billions of daily requests spanning traditional language models, multimodal systems, and complex reasoning pipelines. Every core serving mechanism—including request scheduling, dynamic autoscaling, memory management, and hardware resource provisioning—relies heavily on underlying workload assumptions. If these assumptions are flawed, the resulting systems will fail to meet performance targets under real-world conditions.

Despite the central importance of workload characterization, the machine learning and systems research community has historically suffered from a severe shortage of empirical production data. Prior studies were limited in scope, analyzing only a handful of models or very short time windows, which forced researchers to rely on synthetic assumptions such as Poisson arrival processes combined with static datasets like ShareGPT. In this talk, the speakers present ServeGen, a comprehensive characterization and generation framework built upon 3.5 billion requests gathered across 10 models over a 4-month period at Alibaba Cloud.

The findings reveal that traditional synthetic benchmarks produce misleadingly easy workloads that mask critical production dynamics, such as client-driven burstiness, asynchronous length shifts, and heavy-tailed multimodal distributions. By introducing a client-decomposition model and an open-source generation framework, ServeGen bridges the gap between academic simulation and industrial deployment. This enables infrastructure teams to design more robust serving architectures, perform accurate capacity planning, and evaluate optimizations like prefill-decode (PD) disaggregation under realistic stress.

Background

▶ Watch: Introduction and motivation for LLM workload characterization (0:00)

In the systems and machine learning literature, the evaluation of LLM serving frameworks has long depended on simplistic statistical models. Standard benchmarking practices typically model request arrival times as independent Poisson processes and sample input-output lengths from static instruction-tuning datasets. While convenient for rapid prototyping, these assumptions ignore the complex socio-technical realities of multi-tenant cloud environments where thousands of distinct applications share a unified serving infrastructure.

Prior empirical efforts, such as BurstGPT, provided early glimpses into request patterns but were constrained by small sample sizes (covering only two language models and roughly 5 million requests) and lacked visibility into emerging paradigm shifts. Simultaneously, the landscape of AI inference has undergone a radical transformation. Modern production clusters no longer serve only text-in, text-out conversational models. They increasingly handle omnimodal workloads (processing text, image, audio, and video streams concurrently) and multi-turn reasoning workloads involving internal chain-of-thought generation or iterative agentic loops.

Without deep visibility into these emerging modalities and the macro-scale behavioral patterns of production clients, systems researchers have been operating in the dark. Designing optimizations for memory management (such as PagedAttention), continuous batching engines, or hardware topologies without accurate workload generators leads to severe over-provisioning or unexpected Service Level Objective (SLO) violations in production. ServeGen was conceived to rectify this foundational deficit by delivering the largest-scale production workload analysis to date and translating its insights into a reproducible, open-source generation engine.

Key Findings

▶ Watch: Analysis of LLM arrival patterns and input-output lengths (4:00)

The empirical analysis conducted across Alibaba's production clusters over four months yields several critical discoveries that overturn conventional wisdom in LLM serving research:

  • Non-Universal Arrival Distributions: Request arrivals across different model endpoints are undeniably bursty, exhibiting Coefficient of Variation (CV) values well above 1.0. However, no single stochastic process fits all workloads. Depending on the specific application endpoint, the best statistical fit varies between exponential, gamma, and other heavy-tailed distributions. Furthermore, burstiness is temporally non-stationary; flagship models experience alternating multi-day phases of high burstiness and relative stability that do not correlate with simple request rate shifts.
  • Asymmetric and Shift-Independent Request Lengths: Input prompt lengths follow a heavy-tailed distribution best modeled as a Pareto and log-normal mixture, meaning long prompts are rare but computationally expensive. Conversely, output generation lengths follow an exponential (memoryless) distribution. Crucially, input and output lengths exhibit weak correlation at best, and their respective distributions shift independently over time (e.g., input lengths may peak in the afternoon while output lengths decline), invalidating models that predict output generation length directly from prompt size.
  • The Client-Decomposition ("Core") Model: The apparent chaos of aggregate production workloads is driven by a small power-law fraction of dominant clients—specifically, the top 1% of clients generate roughly 90% of total requests. Each individual top client maintains stable statistical behavior over time. Consequently, aggregate burstiness and length shifts are not random artifacts of the system, but the direct result of mixing a few dominant clients with distinct behavioral profiles.
  • Modality Divergence in Omnimodal Workloads: In multimodal serving environments where requests interleave text, image, audio, and video tokens (observed up to 63 audio inputs in a single message), the load contributed by each modality shifts independently over time. The text backbone can no longer be treated as the sole performance bottleneck; each modality encoder requires independent autoscaling and resource allocation strategies.
  • Smoothing Effects of Multi-Turn Reasoning: Reasoning-heavy workloads are characterized by multi-turn conversation structures (averaging 3.1 turns per session with inter-turn “think times” peaking around 100 seconds). Interestingly, sampling requests while preserving their full multi-turn conversational history significantly smooths out aggregate arrival burstiness compared to single-turn synthetic traces, opening up new avenues for proactive scheduling and resource pre-allocation.

Technical Deep Dive

▶ Watch: Multimodal and reasoning workload characteristics (9:50)

To capture the intricate dynamics of production traffic without resorting to brittle, hardcoded heuristics, ServeGen implements a per-client decomposition architecture. Rather than modeling the aggregate workload as a monolithic stochastic stream, the framework decomposes the inference traffic into individual, parameterizable client behaviors.

The technical workflow of ServeGen proceeds through several distinct phases:

  1. Client Profiling and Clustering: The system analyzes raw telemetry to isolate top-contributing clients, extracting their specific inter-arrival time distributions (accounting for non-Poisson burstiness via fitted gamma or exponential parameters) and joint length distributions for prefill and decode phases.
  2. Heterogeneous Sampler Generation: Instead of drawing from a global pool, ServeGen instantiates synthetic client generators whose parameters mirror the identified clusters. Each synthetic client independently emits timestamped requests with native length characteristics.
  3. Composite Workload Aggregation: The independent streams are merged along a shared timeline. Because the dominant clients retain their individual stability, the aggregate stream naturally reproduces the macroscopic burstiness, diurnal shifts, and length variations observed in Alibaba's production clusters.

This generative design is fundamentally superior to naive baseline generators. While naive methods (Poisson + ShareGPT) treat requests as identically distributed independent variables, ServeGen preserves the underlying covariance between client identity, arrival intensity, and token length distributions.

Experimental Setup & Results

▶ Watch: ServeGen workload generation framework and validation (12:00)

To validate the fidelity and practical utility of ServeGen, the authors evaluated the generated workloads against real production traces across two primary system design scenarios: instance provisioning and prefill-decode (PD) disaggregation.

  • Datasets & Scale: The underlying characterization dataset comprises 3.5 billion requests across 10 distinct models collected over 4 months, encompassing text language models, multimodal models, and reasoning engines.
  • Baseline Comparison: ServeGen was benchmarked against the standard academic "naive" approach (Poisson arrivals paired with ShareGPT sampling). Scatter plots demonstrating workload convergence confirm that ServeGen matches actual production trace distributions across rate-length correlations, whereas the naive approach fails to capture joint distribution shifts.
  • Case Study 1: Instance Provisioning: Evaluating 13,000 requests from a production workload to determine the minimum number of VM instances required to satisfy SLOs revealed a stark divergence. The naive workload assumption resulted in severe under-provisioning, producing widespread SLO violations because it generated misleadingly "easy" to serve traffic patterns. ServeGen accurately predicted the necessary capacity, matching real-world provisioning thresholds.
  • Case Study 2: Prefill-Decode (PD) Disaggregation: The authors deployed large models with Tensor Parallelism 4 (TP4) across 32 GPUs, varying the prefill-decode compute split. Benchmarking the system with naive versus ServeGen workloads demonstrated that optimal disaggregation configurations are highly sensitive to workload realism. Naive workloads led to misconfigured resource splits, proving that production-grade systems require realistic workload generators like ServeGen to tune disaggregated serving architectures reliably.

Practical Implications

▶ Watch: Case study 2: Prefill-decode disaggregation and conclusion (14:00)

For infrastructure teams, ML platform engineers, and model deployers, ServeGen provides actionable tools and conceptual shifts:

  • Abandon Static Workload Assumptions: Capacity planning, autoscaling thresholds, and scheduling policies tested exclusively against Poisson-ShareGPT benchmarks are inadequately stressed. Real-world traffic features client-driven burstiness and independent length shifts that demand adaptive, reactive infrastructure.
  • Adopt Per-Client Simulation: When building internal simulators for cluster testing or hardware procurement, engineers should model traffic at the client granularity rather than treating the arrival stream as a homogeneous macro-process.
  • Granular Scaling for Omnimodal and Disaggregated Systems: As multimodal applications and disaggregated architectures (separating compute-bound prefill from memory-bound decode) become standard, infrastructure must support independent elasticity for modality encoders and disaggregated worker pools. ServeGen supplies the exact evaluation harnesses needed to size these components correctly.
  • Limitations: While ServeGen successfully captures historical client compositions and macro-trends, rapidly evolving agentic workflows and dynamic multi-turn interactions may introduce emergent client behaviors that require continuous re-parameterization of the client pool.

Key Takeaways

  • Massive Empirical Scope: Characterized 3.5 billion requests across 10 models over 4 months at Alibaba, covering language, multimodal, and reasoning workloads.
  • The Myth of Poisson Arrival: LLM request arrivals are highly bursty with non-stationary distributions that shift over time and cannot be modeled by a single static stochastic process.
  • The Client-Decomposition Model: Complex aggregate patterns—such as burstiness and length drift—are caused by the superposition of a small number of dominant, individually stable clients (1% of clients generate 90% of requests).
  • Failure of Naive Benchmarks: Traditional Poisson-plus-ShareGPT approaches produce misleadingly easy workloads, leading to systematic under-provisioning and flawed architectural tuning (e.g., in prefill-decode disaggregation).
  • Open-Source Availability: ServeGen is fully open-sourced on GitHub, providing the ML systems community with production-grade workload generation tools and datasets.

About the Speaker(s)

The presentation was delivered by representatives from Peking University and Alibaba Group, reflecting a close collaboration between academic systems researchers and industrial cloud infrastructure practitioners. The team combines expertise in large-scale distributed systems, machine learning serving optimization, and cloud resource management, drawing directly from operational insights gained while powering Alibaba Cloud's global AI inference infrastructure.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)