Lune

SOSP2024顶会

LoongServe: Efficiently Serving Long-Context Large Language Models with Elastic Sequence Parallelism

Bingyang Wu, Shengyu Liu, Yinmin Zhong, Peng Sun, Xuanzhe Liu, Xin Jin

摘要

The context window of large language models (LLMs) is rapidly increasing, leading to a huge variance in resource usage between different requests as well as between different phases of the same request. Restricted by static parallelism strategies, existing LLM serving systems cannot efficiently utilize the underlying resources to serve variable-length requests in different phases. To address this problem, we propose a new parallelism paradigm, elastic sequence parallelism (ESP), to elastically adapt to the variance across different requests and phases. Based on ESP, we design and build LoongServe, an LLM serving system that (1) improves computation efficiency by elastically adjusting the degree of parallelism in real-time, (2) improves communication efficiency by reducing key-value cache migration overhead and overlapping partial decoding communication with computation, and (3) improves GPU memory efficiency by reducing key-value cache fragmentation across instances. Our evaluation under diverse real-world datasets shows that LoongServe improves the throughput by up to 3.85× compared to chunked prefill and 5.81× compared to prefill-decoding disaggregation.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 46 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Efficient Streaming Language Models with Attention Sinks 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models 引用了 Efficient Streaming Language Models with Attention Sinks
  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • ServeGen: Workload Characterization and Generation of Large Language Model Serving in Production 引用了 Mooncake: Trading More Storage for Less Computation - A KVCache-centric Architecture for Serving LLM Chatbot
  • ServeGen: Workload Characterization and Generation of Large Language Model Serving in Production 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion 引用了 CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving
  • CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving 引用了 CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion
  • CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Mooncake: Trading More Storage for Less Computation - A KVCache-centric Architecture for Serving LLM Chatbot 引用了 CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving
  • Mooncake: Trading More Storage for Less Computation - A KVCache-centric Architecture for Serving LLM Chatbot 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems 引用了 Efficient Streaming Language Models with Attention Sinks
  • KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems 引用了 CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion
  • KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems 引用了 CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving
  • KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper46

  1. Mooncake: Trading More Storage for Less Computation - A KVCache-centric Architecture for Serving LLM ChatbotRuoyu Qin, Zheming Li, Weiran He, Jialei Cui 等FAST 2025 · 337 次引用
  2. CacheGen: KV Cache Compression and Streaming for Fast Large Language Model ServingYuhan Liu, Hanchen Li, Yihua Cheng, Siddhant Ray 等SIGCOMM 2024 · 111 次引用
  3. CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge FusionJiayi Yao, Hanchen Li, Yuhan Liu, Siddhant Ray 等EuroSys 2025 · 68 次引用
  4. ServeGen: Workload Characterization and Generation of Large Language Model Serving in ProductionYuxing Xiang, Xue Li, Kun Qian, Yan Zhang 等NSDI 2026 · 58 次引用
  5. KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent SystemsHancheng Ye, Zhengqi Gao, Mingyuan Ma, Qinsi Wang 等NeurIPS 2025 · 42 次引用

它引用的 Paper18

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  2. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
  3. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
  4. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
  5. H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language ModelsZhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen 等NeurIPS 2023 · 1,003 次引用

相关 Paper

  1. DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model ServingYinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu 等OSDI 2024 · 646 次引用
  2. Tetris: Efficient Long-context LLM Serving with Chunkwise Dynamic Sequence ParallelismCong Li, Yuzhe Yang, Xuegui Zheng, Qifan Yang 等ISCA 2026
  3. WindServe: Efficient Phase-Disaggregated LLM Serving with Stream-based Dynamic SchedulingJingqi Feng, Yukai Huang, Rui Zhang, Sicheng Liang 等ISCA 2025 · 16 次引用
  4. MuxServe: Flexible Spatial-Temporal Multiplexing for Multiple LLM ServingJiangfei Duan, Runyu Lu, Haojie Duanmu, Xiuhong Li 等ICML 2024 · 51 次引用
  5. ElasticMM: Efficient Multimodal LLMs Serving with Elastic Multimodal ParallelismZedong Liu, Shenggan Cheng, Guangming Tan, Yang You 等NeurIPS 2025 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖