mlsanityData to 7 Oct 2026

Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inference

arXiv 2505.22913 ↗First posted 28 May 2025cs.LGcited by 7

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

We demonstrate that unstructured sparsity significantly improves KV cache compression for LLMs, enabling sparsity levels up to 70% without compromising accuracy or requiring fine-tuning. We conduct a systematic exploration of pruning strategies and find per-token magnitude-based pruning as highly effective for both Key and Value caches under unstructured sparsity, surpassing prior structured pruning schemes. The Key cache benefits from prominent outlier elements, while the Value cache surprisingly benefits from a simple magnitude-based pruning despite its uniform distribution. KV cache size is the major bottleneck in decode performance due to high memory overhead for large context lengths. To address this, we use a bitmap-based sparse format and a custom attention kernel capable of compressing and directly computing over compressed caches pruned to arbitrary sparsity patterns, significantly accelerating memory-bound operations in decode computations and thereby compensating for the overhead of runtime pruning and compression. Our custom attention kernel coupled with the bitmap-based format delivers substantial compression of KV cache upto 45% of dense inference and thereby enables longer context length and increased tokens/sec throughput of upto 2.23x compared to dense inference. Our pruning mechanism and sparse attention kernel is available at https://github.com/dhjoo98/mustafar.

Key facts. Cited by 7 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 45 of its 56 references that are in the map. First posted on arXiv 28 May 2025.

Builds on

45 of 56 references.

Closest ancestors · 17

Same direction, newest first

  1. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving2 Jan
  2. 2024SCOPE: Optimizing Key-Value Cache Compression in Long-context Generation18 Dec
  3. 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
  4. 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning25 Oct
  5. 2024MatryoshkaKV: Adaptive KV Compression via Trainable Orthogonal Projection16 Oct
  6. 2024Palu: Compressing KV-Cache with Low-Rank Projection30 Jul
  7. 2024ThinK: Thinner Key Cache by Query-Driven Pruning30 Jul
  8. 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads22 Jul
  9. 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management28 Jun
  10. 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models23 May
  11. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  12. 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference14 Mar
5 more
  1. 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference14 Feb
  2. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
  4. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
  5. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  5. 2023Mistral 7Bcited by 3,065
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  7. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  8. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  9. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  10. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
  11. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  12. 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
16 more
  1. 2023ASVD: Activation-aware Singular Value Decomposition for Compressing Large Language Modelscited by 156
  2. 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
  3. 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
  4. 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 91
  5. 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
  6. 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identificationcited by 86
  7. 2024KV Cache is 1 Bit Per Channel: Efficient Large Language Model Inference with Coupled Quantizationcited by 74
  8. 2024FABLES: Evaluating faithfulness and content selection in book-length summarizationcited by 65
  9. 2024Agents' Room: Narrative Generation through Multi-step Collaborationcited by 57
  10. 2024Commit0: Library Generation from Scratchcited by 50
  11. 2025Tensor Product Attention Is All You Needcited by 27
  12. 2024SLoPe: Double-Pruned Sparse Plus Lazy Low-Rank Adapter Pretraining of LLMscited by 18
  13. 2024Effective Interplay between Sparsity and Quantization: From Theory to Practicecited by 16
  14. 2024SLiM: One-shot Quantization and Sparsity with Low-rank Approximation for LLM Weight Compressioncited by 12
  15. 2018Modeling Deep Learning Accelerator Enabled GPUscited by 8
  16. 2024KVPruner: Structural Pruning for Faster and Memory-Efficient Large Language Modelscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024More Tokens, Lower Precision: Towards the Optimal Token-Precision Trade-off in KV Cache Compression
  2. 2025ReFreeKV: Towards Threshold-Free KV Cache Compression
  3. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
  4. 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
  5. 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inference
  6. 2024MiniKV: Pushing the Limits of LLM Inference via 2-Bit Layer-Discriminative KV Cache
  7. 2026A Self-Pruning Transformer: Extreme KV-Cache Compression with Universal Attention
  8. 2025Accelerating LLM Inference with Flexible N:M Sparsity via A Fully Digital Compute-in-Memory Accelerator