Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems

Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Hongyi Jin, Tianqi Chen, Zhihao Jia

TL;DR

Generative Large Language Models (LLMs) are transforming AI, but their massive size and sequential nature make them incredibly expensive and slow to serve. This survey provides a comprehensive roadmap for efficient LLM serving, categorizing the field into algorithmic innovations (like speculative decoding and model compression) and system optimizations (like paged memory management and advanced scheduling).

What Problem Does This Paper Address?

Deploying models like GPT-4 or Llama-3 at scale is a monumental engineering challenge. The authors identify three primary hurdles:

  1. Computational Intensity: The autoregressive nature of LLMs—where each token is generated one by one—is inherently sequential and compute-heavy.
  2. Memory Bottlenecks: The "KV cache" (the memory used to store past context during a conversation) grows rapidly, leading to memory fragmentation and limiting the number of users a single GPU can handle.
  3. The Latency-Throughput Tug-of-War: Systems must balance "Time to First Token" (responsiveness) against "Tokens Per Second" (overall capacity), often requiring different optimization strategies for each.

Methods

The paper organizes the vast landscape of LLM serving into a structured taxonomy, bridging the gap between machine learning research and systems engineering.

![Fig.

  1. Taxonomy of LLM Inference Advancements](/figures/art_7c81c5616e2b4564915d65d151c330e3)

Algorithmic Innovations

  • Decoding Algorithms: Moving beyond simple sequential generation. Techniques include Speculative Decoding (using a tiny "draft" model to guess tokens that a large model verifies in parallel) and Non-autoregressive decoding (generating multiple tokens at once).
  • Architecture Design: Simplifying the Transformer itself via Mixture of Experts (MoE), which only activates a fraction of the model for any given input, or Attention Simplification (e.g., sliding window or sparse attention) to handle longer contexts.
  • Model Compression: Reducing model size through Quantization (using 4-bit or 8-bit integers instead of 16-bit floats), Pruning, and Knowledge Distillation.

System Optimizations

  • Memory Management: Innovations like PagedAttention (introduced by vLLM) treat GPU memory like virtual memory in an OS, eliminating fragmentation and allowing for much larger batch sizes.
  • Parallel Computation: Distributing the model across multiple GPUs using Tensor, Pipeline, or Sequence parallelism.
  • Request Scheduling: Moving from request-level to iteration-level scheduling, which allows the system to add new requests to a batch as soon as a previous one finishes a single token, rather than waiting for the entire sequence to complete.

Datasets

As a survey, this paper does not introduce a new dataset but reviews how systems are evaluated. It highlights the use of:

  • Real-world traces: Datasets like BurstGPT and Azure production traces are used to simulate unpredictable user traffic.
  • Benchmarks: The authors discuss the LLM-Perf Leaderboard, MLPerf, and LLM-Inference-Bench as critical tools for comparing hardware and software stacks.

Key Insights and Ideas

  • Speculative Decoding is a "Free Lunch": By using a draft model for speculation (see Figure 2d), systems can achieve significant speedups without changing the final output of the model, as the large model always verifies the results.
  • The KV Cache is the Real Enemy: While model weights are large, the dynamic memory required for the KV cache is often the primary bottleneck for throughput. Managing this memory efficiently is what separates state-of-the-art frameworks from naive implementations.
  • Disaggregation: A new trend is splitting the "prefill" phase (processing the initial prompt) and the "decode" phase (generating new tokens) onto different GPUs, as they have vastly different computational profiles.

![Fig.

  1. Illustration of different LLM decoding algorithms](/figures/art_1449585959bd4f408da6b6924b7937f3)

Key Results

The paper provides a high-level comparison of major open-source serving frameworks:

  • vLLM: The gold standard for high throughput, thanks to PagedAttention.
  • FlexFlow-Serve: A leader in low-latency serving by leveraging speculative inference.
  • TensorRT-LLM: NVIDIA’s highly optimized library that integrates many of these techniques (quantization, kernel fusion, paged attention) specifically for their hardware.
  • Quantization Gains: The survey notes that moving from FP16 to INT4 can reduce memory requirements by 4x, often with negligible impacts on model accuracy, provided advanced techniques like GPTQ or AWQ are used.

Limitations and Future Work

The authors point out several remaining challenges:

  • Lack of Standardized Benchmarking: Current benchmarks often fail to account for the full stack, including network latency and scheduling overhead.
  • Long Contexts: As context windows push toward millions of tokens, the quadratic cost of attention remains a daunting barrier.
  • Hardware-Software Co-design: Future efficiency gains will likely come from hardware specifically tuned for the sparse, memory-intensive patterns of LLM inference, rather than general-purpose GPUs.
  • Beyond Transformers: The community is beginning to explore alternative architectures like State Space Models (e.g., Mamba) that offer linear scaling, potentially replacing the Transformer in the long run.

Summary updated

BibTeX
@article{miao2026towards,
  author = {Xupeng Miao and Gabriele Oliaro and Zhihao Zhang and Xinhao Cheng and Hongyi Jin and Tianqi Chen and Zhihao Jia},
  title = {{Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems}},
  journal = {ACM Computing Surveys},
  year = {2026},
  doi = {10.1145/3754448},
}
Figure