SemShareKV: Efficient KVCache Sharing for Semantically Similar Prompts via Token-Level LSH Matching
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
As large language models (LLMs) continue to scale, the memory footprint of key-value (KV) caches during inference has become a significant bottleneck. Existing approaches primarily focus on compressing KV caches within a single prompt or reusing shared prefixes or frequently ocurred text segments across prompts. However, such strategies are limited in scenarios where prompts are semantically similar but lexically different, which frequently occurs in tasks such as multi-document summarization and conversational agents. We propose textitSemShareKV, a KV cache sharing and compression framework that accelerates LLM inference by reusing KVCache in semantically similar prompts. Instead of relying on exact token matches, SemShareKV applies fuzzy token matching using locality-sensitive hashing (LSH) on token embeddings and incorporates Rotary Position Embedding (RoPE) to better preserve positional information. By selectively reusing relevant key-value pairs from a reference prompt's cache, SemShareKV reduces redundant computation while maintaining output quality. Experiments on diverse summarization datasets show up to 6.25× speedup and 42% lower GPU memory usage with 5k tokens input, with negligible quality degradation. These results highlight the potential of semantic-aware cache sharing for efficient LLM inference.
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 33 of its 56 references that are in the map. First posted on arXiv 29 Sep 2025.
Builds on
33 of 56 references.
Closest ancestors · 11
Same direction, newest first
- 2024ZigZagkv: Dynamic KV Cache Compression for Long-context Modeling based on Layer Uncertainty12 Dec
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 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
- 2024Attention Score is not All You Need for Token Importance Indicator in KV Cache Reduction: Value Also Matters18 Jun
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models23 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2024SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget7 Apr
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttention23 Mar
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
Other references · 22
- 2017Attention Is All You Needcited by 59,932
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2020Aligning AI With Shared Human Valuescited by 706
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
10 more
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2018WikiHow: A Large Scale Text Summarization Datasetcited by 203
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 193
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024GPT Semantic Cache: Reducing LLM Costs and Latency via Semantic Embedding Cachingcited by 21
- 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inferencecited by 10
- 2024LLMs for Test Input Generation for Semantic Cachescited by 4
- 2024RecurFormer: Not All Transformer Heads Need Self-Attentioncited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2026KV Cache Translation across Heterogeneous Large Language Modelscited by 4
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Cachingcited by 3
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Servingcited by 3
- 2025Supporting Dynamic Agentic Workloads: How Data and Agents Interactcited by 2
- 2026LaCache: Robust Semantic Caching for LLM Servingcited by 1
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Managementcited by 0
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Management7 Sep 2026
- 2026LaCache: Robust Semantic Caching for LLM Serving3 Aug 2026
- 2026KV Cache Translation across Heterogeneous Large Language Models31 Jul 2026
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Serving7 May 2026
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2025Supporting Dynamic Agentic Workloads: How Data and Agents Interact10 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
- 2025SentenceKV: Efficient LLM Inference via Sentence-Level Semantic KV Caching
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression
- 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generation
- 2025ChunkKV: Semantic-Preserving KV Cache Compression for Efficient Long-Context LLM Inference
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
- 2025CTkvr: KV Cache Retrieval for Long-Context LLMs via Centroid then Token Indexing
- 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference