LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large language models (LLMs) have shown remarkable potential in processing long sequences and complex reasoning tasks, yet efficiently serving these models remains challenging due to the quadratic computational complexity of attention in the prefilling stage and the large memory footprint of the KV cache in the decoding stage. To address these issues, we introduce LServe, an efficient system that accelerates long-sequence LLM serving via hybrid sparse attention. This method unifies different hardware-friendly, structured sparsity patterns for both prefilling and decoding attention into a single framework, where computations on less important tokens are skipped block-wise. LServe demonstrates the compatibility of static and dynamic sparsity in long-context LLM attention. This design enables multiplicative speedups by combining these optimizations. Specifically, we convert half of the attention heads to nearly free streaming heads in both the prefilling and decoding stages. Additionally, we find that only a constant number of KV pages is required to preserve long-context and reasoning capabilities, irrespective of context length. We then design a hierarchical KV page selection policy that dynamically prunes KV pages based on query-centric similarity. On average, LServe accelerates LLM prefilling by up to 2.9x and decoding by 1.3-2.1x over vLLM, maintaining long-context accuracy. Code is released at https://github.com/mit-han-lab/omniserve.
Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 40 of its 47 references that are in the map. First posted on arXiv 20 Feb 2025.
Builds on
40 of 47 references.
Closest ancestors · 7
Same direction, newest first
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attention21 May
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
Other references · 33
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Visual Instruction Tuningcited by 7,792
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Mistral 7Bcited by 3,065
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2024Mixtral of Expertscited by 1,785
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
21 more
- 2023StarCoder: may the source be with you!cited by 790
- 2023VILA: On Pre-training for Visual Language Modelscited by 686
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2023Benchmarking Large Language Models for News Summarizationcited by 444
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2024LongVILA: Scaling Long-Context Visual Language Models for Long Videoscited by 303
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2023PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUcited by 210
- 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
- 2024Compact Language Models via Pruning and Knowledge Distillationcited by 142
- 2024O1 Replication Journey: A Strategic Progress Report -- Part 1cited by 140
- 2020Evaluating Factuality in Generation with Dependency-level Entailmentcited by 122
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
- 2024Transformers are Multi-State RNNscited by 120
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2024PowerInfer-2: Fast Large Language Model Inference on a Smartphonecited by 101
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024NanoFlow: Towards Optimal Large Language Model Serving Throughputcited by 85
Built on by
Citing papers per year: 2025: 17; 2026: 24.
41 papers.
Sort:
By area:
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2025Radial Attention: O(nlog n) Sparse Attention with Energy Decay for Long Video Generationcited by 64
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
- 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reusecited by 27
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Trainingcited by 18
- 2025Energy Use of AI Inference, Efficiency Pathways, and Test-Time Scalingcited by 12
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inferencecited by 9
- 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharingcited by 8
- 2025SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verificationcited by 7
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMscited by 5
- 2026Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keyscited by 5
29 more
- 2026VeriCache: Turning Lossy KV Cache into Lossless LLM Inferencecited by 5
- 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inferencecited by 5
- 2025PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computingcited by 4
- 2025AnchorAttention: Difference-Aware Sparse Attention with Stripe Granularitycited by 4
- 2025Retrospective Sparse Attention for Efficient Long-Context Generationcited by 4
- 2025ShadowNPU: System and Algorithm Co-design for NPU-Centric On-Device LLM Inferencecited by 4
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
- 2025FlexiCache: Leveraging Temporal Stability of Attention Heads for Efficient KV Cache Managementcited by 4
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Servingcited by 4
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Modelscited by 3
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modelingcited by 1
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platformscited by 0
- 2026WANSpec: Leveraging Global Compute Capacity for LLM Inferencecited by 0
- 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inferencecited by 0
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Servingcited by 0
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decodingcited by 0
- 2026STEEL: Sparsity-Aware Fused Attention for Energy-Efficient Long-Sequence Inference on AMD's XDNA NPUcited by 0
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Rankingcited by 0
- 2026Self-Indexing Attention for Compression-Compatible Sparse Long-Context LLM Inferencecited by 0
- 2026Can Agents Design Better Chips with a Higher Level Abstraction?cited by 0
- 2026Does Execution Require Target KV Fidelity? A Mixed-Fidelity KV Runtime for LLM Servingcited by 0
- 2026PulseInfer: I/O-Centric Sparse KV Cache Offloading for Efficient Long-Context LLM Decodingcited by 0
- 2026OmniTide: Co-Designing Algorithms and Systems for Efficient On-Device Omni-LLM Streamingcited by 0
- 2026MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decodingcited by 0
- 2026PageWeaver: KV-Guided Query Unions for Sparse Attentioncited by 0
- 2026PageWeaver: KV-Guided Query Unions for Sparse Attention8 Oct 2026
- 2026MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding3 Oct 2026
- 2026OmniTide: Co-Designing Algorithms and Systems for Efficient On-Device Omni-LLM Streaming28 Sep 2026
- 2026PulseInfer: I/O-Centric Sparse KV Cache Offloading for Efficient Long-Context LLM Decoding28 Sep 2026
- 2026Does Execution Require Target KV Fidelity? A Mixed-Fidelity KV Runtime for LLM Serving27 Sep 2026
- 2026Can Agents Design Better Chips with a Higher Level Abstraction?17 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026Self-Indexing Attention for Compression-Compatible Sparse Long-Context LLM Inference16 Aug 2026
- 2026STEEL: Sparsity-Aware Fused Attention for Energy-Efficient Long-Sequence Inference on AMD's XDNA NPU10 Jul 2026
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents4 Jun 2026
- 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inference18 May 2026
29 more
- 2026VeriCache: Turning Lossy KV Cache into Lossless LLM Inference17 May 2026
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving29 Apr 2026
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decoding27 Apr 2026
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Serving17 Apr 2026
- 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference30 Mar 2026
- 2026Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keys15 Mar 2026
- 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse12 Mar 2026
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Models4 Mar 2026
- 2026WANSpec: Leveraging Global Compute Capacity for LLM Inference21 Feb 2026
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platforms10 Feb 2026
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMs5 Feb 2026
- 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharing3 Feb 2026
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inference19 Dec 2025
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference18 Dec 2025
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling10 Dec 2025
- 2025SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verification2 Dec 2025
- 2025FlexiCache: Leveraging Temporal Stability of Attention Heads for Efficient KV Cache Management2 Nov 2025
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct 2025
- 2025Energy Use of AI Inference, Efficiency Pathways, and Test-Time Scaling24 Sep 2025
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Training1 Sep 2025
- 2025ShadowNPU: System and Algorithm Co-design for NPU-Centric On-Device LLM Inference22 Aug 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025Retrospective Sparse Attention for Efficient Long-Context Generation12 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025Radial Attention: O(nlog n) Sparse Attention with Energy Decay for Long Video Generation24 Jun 2025
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoning10 Jun 2025
- 2025AnchorAttention: Difference-Aware Sparse Attention with Stripe Granularity29 May 2025
- 2025PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computing15 Mar 2025
- 2025SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verificationcited by 7
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMscited by 5
- 2026Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keyscited by 5
- 2026VeriCache: Turning Lossy KV Cache into Lossless LLM Inferencecited by 5
- 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inferencecited by 5
- 2025Retrospective Sparse Attention for Efficient Long-Context Generationcited by 4
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
- 2025FlexiCache: Leveraging Temporal Stability of Attention Heads for Efficient KV Cache Managementcited by 4
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Servingcited by 4
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modelingcited by 1
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platformscited by 0
- 2026WANSpec: Leveraging Global Compute Capacity for LLM Inferencecited by 0
12 most cited of 18 All 18 (JSON)
- 2026MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding3 Oct 2026
- 2026OmniTide: Co-Designing Algorithms and Systems for Efficient On-Device Omni-LLM Streaming28 Sep 2026
- 2026PulseInfer: I/O-Centric Sparse KV Cache Offloading for Efficient Long-Context LLM Decoding28 Sep 2026
- 2026Does Execution Require Target KV Fidelity? A Mixed-Fidelity KV Runtime for LLM Serving27 Sep 2026
- 2026Self-Indexing Attention for Compression-Compatible Sparse Long-Context LLM Inference16 Aug 2026
- 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inference18 May 2026
- 2026VeriCache: Turning Lossy KV Cache into Lossless LLM Inference17 May 2026
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving29 Apr 2026
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Serving17 Apr 2026
- 2026Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keys15 Mar 2026
- 2026WANSpec: Leveraging Global Compute Capacity for LLM Inference21 Feb 2026
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platforms10 Feb 2026
12 newest of 18 All 18 (JSON)
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2025Energy Use of AI Inference, Efficiency Pathways, and Test-Time Scalingcited by 12
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2025PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computingcited by 4
- 2025AnchorAttention: Difference-Aware Sparse Attention with Stripe Granularitycited by 4
- 2025ShadowNPU: System and Algorithm Co-design for NPU-Centric On-Device LLM Inferencecited by 4
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Modelscited by 3
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decodingcited by 0
- 2026STEEL: Sparsity-Aware Fused Attention for Energy-Efficient Long-Sequence Inference on AMD's XDNA NPUcited by 0
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
12 most cited of 14 All 14 (JSON)
- 2026PageWeaver: KV-Guided Query Unions for Sparse Attention8 Oct 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026STEEL: Sparsity-Aware Fused Attention for Energy-Efficient Long-Sequence Inference on AMD's XDNA NPU10 Jul 2026
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decoding27 Apr 2026
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Models4 Mar 2026
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inference19 Dec 2025
- 2025Energy Use of AI Inference, Efficiency Pathways, and Test-Time Scaling24 Sep 2025
- 2025ShadowNPU: System and Algorithm Co-design for NPU-Centric On-Device LLM Inference22 Aug 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
12 newest of 14 All 14 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026LycheeDecode: Accelerating Long-Context LLM Inference via Hybrid-Head Sparse Decoding
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2023SparQ Attention: Bandwidth-Efficient LLM Inference
- 2026CateKV: On Sequential Consistency for Long-Context LLM Inference Acceleration
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
- 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routing
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
- 2025MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference