Lune

OSDI2024Top-tier venue

Fairness in Serving Large Language Models

Ying Sheng, Shiyi Cao, Dacheng Li, Banghua Zhu, Zhuohan Li, Danyang Zhuo, Joseph E. Gonzalez, Ion Stoica

Abstract

High-demand LLM inference services (e.g., ChatGPT and BARD) support a wide range of requests from short chat conversations to long document reading. To ensure that all client requests are processed fairly, most major LLM inference services have request rate limits, to ensure that no client can dominate the request queue. However, this rudimentary notion of fairness also results in under-utilization of the resources and poor client experience when there is spare capacity. While there is a rich literature on fair scheduling, serving LLMs presents new challenges due to their unpredictable request lengths and their unique batching characteristics on parallel accelerators. This paper introduces the definition of LLM serving fairness based on a cost function that accounts for the number of input and output tokens processed. To achieve fairness in serving, we propose a novel scheduling algorithm, the Virtual Token Counter (VTC), a fair scheduler based on the continuous batching mechanism. We prove a 2× tight upper bound on the service difference between two backlogged clients, adhering to the requirement of work-conserving. Through extensive experiments, we demonstrate the superior performance of VTC in ensuring fairness, especially in contrast to other baseline methods, which exhibit shortcomings under various conditions. The reproducible code is available at https://github.com/Ying1123/VTC-artifact .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

37 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve cites LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Dataset
  • Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve cites FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve cites Splitwise: Efficient Generative LLM Inference Using Phase Splitting
  • Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve cites Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Efficient LLM Scheduling by Learning to Rank cites Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve
  • Efficient LLM Scheduling by Learning to Rank cites LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Dataset
  • Efficient LLM Scheduling by Learning to Rank cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Efficient LLM Scheduling by Learning to Rank cites Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Splitwise: Efficient Generative LLM Inference Using Phase Splitting cites FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
  • Splitwise: Efficient Generative LLM Inference Using Phase Splitting cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Splitwise: Efficient Generative LLM Inference Using Phase Splitting cites Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites Orca: A Distributed Serving System for Transformer-Based Generative Models
  • SGLang: Efficient Execution of Structured Language Model Programs cites FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
  • SGLang: Efficient Execution of Structured Language Model Programs cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • SGLang: Efficient Execution of Structured Language Model Programs cites Orca: A Distributed Serving System for Transformer-Based Generative Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers37

  1. SGLang: Efficient Execution of Structured Language Model ProgramsLianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun et al.NeurIPS 2024 · 1,586 citations
  2. Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-ServeAmey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan et al.OSDI 2024 · 537 citations
  3. Splitwise: Efficient Generative LLM Inference Using Phase SplittingPratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah et al.ISCA 2024 · 282 citations
  4. Llumnix: Dynamic Scheduling for Large Language Model ServingBiao Sun, Ziming Huang, Hanyu Zhao, Wencong Xiao et al.OSDI 2024 · 189 citations
  5. Efficient LLM Scheduling by Learning to RankYichao Fu, Siqi Zhu, Runlong Su, Aurick Qiao et al.NeurIPS 2024 · 129 citations

Builds on14

  1. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 citations
  2. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
  3. Orca: A Distributed Serving System for Transformer-Based Generative ModelsGyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim et al.OSDI 2022 · 690 citations
  4. FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li et al.ICML 2023 · 683 citations
  5. LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation DatasetLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Tianle Li et al.ICLR 2024 · 419 citations

Related papers

  1. FastServe: Iteration-Level Preemptive Scheduling for Large Language Model InferenceBingyang Wu, Yinmin Zhong, Zili Zhang, Shengyu Liu et al.NSDI 2026 · 12 citations
  2. Past-Future Scheduler for LLM Serving under SLA GuaranteesRuihao Gong, Shihao Bai, Siyu Wu, Yunqian Fan et al.ASPLOS 2025 · 10 citations
  3. ConServe: Fine-Grained GPU Harvesting for LLM Online and Offline Co-ServingYifan Qiao, Shan Yu, Shu Anzai, Haoran Ma et al.ICML 2026 · 7 citations
  4. AugServe: Adaptive Request Scheduling for Augmented Large Language Model Inference ServingYing Wang, Zhen Jin, Zhenqian Chen, Jiexiong Xu et al.ICML 2026 · 4 citations
  5. Apt-Serve: Adaptive Request Scheduling on Hybrid Cache for Scalable LLM Inference ServingShihong Gao, Xin Zhang, Yanyan Shen, Lei ChenSIGMOD 2025 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines