SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruning
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Long-context inference in large language models (LLMs) is increasingly constrained by the KV cache bottleneck: memory usage grows linearly with sequence length, while attention computation scales quadratically. Existing approaches address this issue by compressing the KV cache along the temporal axis through strategies such as token eviction or merging to reduce memory and computational overhead. However, these methods often neglect fine-grained importance variations across feature dimensions (i.e., the channel axis), thereby limiting their ability to effectively balance efficiency and model accuracy. In reality, we observe that channel saliency varies dramatically across both queries and positions: certain feature channels carry near-zero information for a given query, while others spike in relevance. To address this oversight, we propose SPARK, a training-free plug-and-play method that applies unstructured sparsity by pruning KV at the channel level, while dynamically restoring the pruned entries during attention score computation. Notably, our approach is orthogonal to existing KV compression and quantization techniques, making it compatible for integration with them to achieve further acceleration. By reducing channel-level redundancy, SPARK enables processing of longer sequences within the same memory budget. For sequences of equal length, SPARK not only preserves or improves model accuracy but also reduces KV cache storage by over 30% compared to eviction-based methods. Furthermore, even with an aggressive pruning ratio of 80%, SPARK maintains performance with less degradation than 5% compared to the baseline eviction method, demonstrating its robustness and effectiveness. Our code will be available at https://github.com/Xnhyacinth/SparK.
Key facts. Cited by 6 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 35 of its 43 references that are in the map. First posted on arXiv 21 Aug 2025.
Builds on
35 of 43 references.
Closest ancestors · 14
Same direction, newest first
- 2025Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models31 Jan
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning25 Oct
- 2024KVSharer: Efficient Inference via Layer-Wise Dissimilar KV Cache Sharing24 Oct
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumption25 Jul
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads22 Jul
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attention21 May
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
2 more
Other references · 21
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025Qwen3 Technical Reportcited by 8,195
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2023Let's Verify Step by Stepcited by 3,598
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
9 more
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
- 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
- 2024FABLES: Evaluating faithfulness and content selection in book-length summarizationcited by 65
- 2024Squeezed Attention: Accelerating Long Context Length LLM Inferencecited by 56
- 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retentioncited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2026ResAdapt: Adaptive Resolution for Efficient Multimodal Reasoningcited by 8
- 2026Self-GC: Self-Governing Context for Long-Horizon LLM Agentscited by 8
- 2025PocketLLM: Ultimate Compression of Large Language Models via Meta Networkscited by 3
- 2026RAP: KV-Cache Compression via RoPE-Aligned Pruningcited by 2
- 2026Learnable Permutation for Structured Sparsity on Transformer Modelscited by 0
- 2026Rotation-Aligned Key Channel Pruning for Efficient Vision-Language Model Inferencecited by 0
- 2026Self-GC: Self-Governing Context for Long-Horizon LLM Agents1 Jul 2026
- 2026Rotation-Aligned Key Channel Pruning for Efficient Vision-Language Model Inference19 May 2026
- 2026ResAdapt: Adaptive Resolution for Efficient Multimodal Reasoning30 Mar 2026
- 2026RAP: KV-Cache Compression via RoPE-Aligned Pruning1 Feb 2026
- 2026Learnable Permutation for Structured Sparsity on Transformer Models30 Jan 2026
- 2025PocketLLM: Ultimate Compression of Large Language Models via Meta Networks19 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2024ThinK: Thinner Key Cache by Query-Driven Pruning
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
- 2025Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution
- 2025KV Pareto: Systems-Level Optimization of KV Cache and Model Compression for Long Context Inference
- 2025KVSink: Understanding and Enhancing the Preservation of Attention Sinks in KV Cache Quantization for LLMs
- 2025A2ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantization
- 2026Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity