CentroidKV: Efficient Long-Context LLM Inference via KV Cache Clustering
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large language models (LLMs) with extended context windows have become increasingly prevalent for tackling complex tasks. However, the substantial Key-Value (KV) cache required for long-context LLMs poses significant deployment challenges. Existing approaches either discard potentially critical information needed for future generations or offer limited efficiency gains due to high computational overhead. In this paper, we introduce CentroidKV, a simple yet effective framework for online KV cache clustering. Our approach is based on the observation that key states exhibit high similarity along the sequence dimension. To enable efficient clustering, we divide the sequence into chunks and propose Chunked Soft Matching, which employs an alternating partition strategy within each chunk and identifies clusters based on similarity. CentroidKV then merges the KV cache within each cluster into a single centroid. Additionally, we provide a theoretical analysis of the computational complexity and the optimality of the intra-chunk partitioning strategy. Extensive experiments across various models and long-context benchmarks demonstrate that CentroidKV achieves up to 75% reduction in KV cache memory usage while maintaining comparable model performance. Moreover, with minimal computational overhead, CentroidKV accelerates the decoding stage of inference by up to 1.92× and increases the serving throughput by up to 4×.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 30 of its 37 references that are in the map. First posted on arXiv 13 Jun 2025.
Builds on
30 of 37 references.
Closest ancestors · 13
Same direction, newest first
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression4 Dec
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reduction25 Sep
- 2024ThinK: Thinner Key Cache by Query-Driven Pruning30 Jul
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads22 Jul
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
1 more
Other references · 17
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2022Token Merging: Your ViT But Fastercited by 1,021
5 more
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
- 2023Token Merging for Fast Stable Diffusioncited by 224
- 2023Token Fusion: Bridging the Gap between Token Pruning and Token Mergingcited by 125
- 2024Accelerating Transformers with Spectrum-Preserving Token Mergingcited by 35
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2026ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inferencecited by 9
- 2026Scaling the Long Video Understanding of Multimodal Large Language Models via Visual Memory Mechanismcited by 9
- 2025Memory in Large Language Models: Mechanisms, Evaluation and Evolutioncited by 8
- 2026KEEP: A KV-Cache-Centric Memory Management System for Efficient Embodied Planningcited by 5
- 2025DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphonescited by 4
- 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inferencecited by 1
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memorycited by 1
- 2026SANTA++: Sampling Attention through Representative Keyscited by 0
- 2026SANTA++: Sampling Attention through Representative Keys28 Sep 2026
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory11 May 2026
- 2026Scaling the Long Video Understanding of Multimodal Large Language Models via Visual Memory Mechanism31 Mar 2026
- 2026KEEP: A KV-Cache-Centric Memory Management System for Efficient Embodied Planning27 Feb 2026
- 2026ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inference8 Feb 2026
- 2025DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphones20 Oct 2025
- 2025Memory in Large Language Models: Mechanisms, Evaluation and Evolution23 Sep 2025
- 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inference21 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods
- 2025CTkvr: KV Cache Retrieval for Long-Context LLMs via Centroid then Token Indexing
- 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
- 2026IceCache: Memory-efficient KV-cache Management for Long-Sequence LLMs
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
- 2025WindowKV: Task-Adaptive Group-Wise KV Cache Window Selection for Efficient LLM Inference
- 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management