ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Self-attention is an essential component of large language models (LLM) but a significant source of inference latency for long sequences. In multi-tenant LLM serving scenarios, the compute and memory operation cost of self-attention can be optimized by using the probability that multiple LLM requests have shared system prompts in prefixes. In this paper, we introduce ChunkAttention, a prefix-aware self-attention module that can detect matching prompt prefixes across multiple requests and share their key/value tensors in memory at runtime to improve the memory utilization of KV cache. This is achieved by breaking monolithic key/value tensors into smaller chunks and structuring them into the auxiliary prefix tree. Consequently, on top of the prefix-tree based KV cache, we design an efficient self-attention kernel, where a two-phase partition algorithm is implemented to improve the data locality during self-attention computation in the presence of shared system prompts. Experiments show that ChunkAttention can speed up the self-attention kernel by 3.2-4.8× compared to the state-of-the-art implementation, with the length of the system prompt ranging from 1024 to 4096.
Key facts. Cited by 81 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 21 of its 42 references that are in the map. First posted on arXiv 23 Feb 2024.
Builds on
21 of 42 references.
Closest ancestors · 2
Same direction, newest first
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
- 2023S3: Increasing GPU Utilization during Generative Inference for Higher Throughput9 Jun
Other references · 19
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,881
- 2023PaLM 2 Technical Reportcited by 1,154
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2022A Survey on In-context Learningcited by 717
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
7 more
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 347
- 2023ToolQA: A Dataset for LLM Question Answering with External Toolscited by 273
- 2018Online normalizer calculation for softmaxcited by 154
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
- 2020E-BATCH: Energy-Efficient and High-Throughput RNN Batchingcited by 3
Built on by
Citing papers per year: 2024: 15; 2025: 27; 2026: 39.
81 papers.
Sort:
By area:
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttentioncited by 159
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 119
- 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 97
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoningcited by 96
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Modelscited by 54
- 2025Twilight: Adaptive Attention Sparsity with Hierarchical Top-p Pruningcited by 48
- 2025KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Providercited by 41
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agentscited by 35
- 2024BatchLLM: Optimizing Large Batched LLM Inference with Global Prefix Sharing and Throughput-oriented Token Batchingcited by 31
38 more
- 2025Cognitive Memory in Large Language Modelscited by 28
- 2024P/D-Serve: Serving Disaggregated Large Language Model at Scalecited by 27
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inferencecited by 19
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17
- 2025Pie: A Programmable Serving System for Emerging LLM Applicationscited by 15
- 2026TraceLab: Characterizing Coding Agent Workloads for LLM Servingcited by 14
- 2024TroL: Traversal of Layers for Large Language and Vision Modelscited by 13
- 2026CONCUR: High-Throughput Agentic Batch Inference of LLM via Congestion-Based Concurrency Controlcited by 13
- 2024PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantizationcited by 11
- 2025TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive Schedulingcited by 10
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspectivecited by 10
- 2025Faster MoE LLM Inference for Extremely Large Modelscited by 9
- 2026PackCache: A Training-Free Acceleration Method for Unified Autoregressive Video Generation via Compact KV-Cachecited by 9
- 2026DualMap: Enabling Both Cache Affinity and Load Balancing for Distributed LLM Servingcited by 8
- 2026HYPIC: Accelerating Hybrid-Attention LLM Serving with Position-Independent Cachingcited by 7
- 2024InstCache: A Predictive Cache for LLM Servingcited by 6
- 2024MetaAlign: Align Large Language Models with Diverse Preferences during Inference Timecited by 5
- 2025DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Accelerationcited by 5
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Servingcited by 5
- 2025PAT: Accelerating LLM Decoding via Prefix-Aware Attention with Resource Efficient Multi-Tile Kernelcited by 5
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMscited by 4
- 2025A Survey of LLM × DATAcited by 4
- 2026Sparse Prefix Caching for Hybrid and Recurrent LLM Servingcited by 4
- 2026WiCER: Wiki-memory Compile, Evaluate, Refine Iterative Knowledge Compilation for LLM Wiki Systemscited by 4
- 2026KV Cache Translation across Heterogeneous Large Language Modelscited by 4
- 2024Dynamic Activation Pitfalls in LLaMA Models: An Empirical Studycited by 3
- 2025ShadowServe: Interference-Free KV Cache Fetching for Distributed Prefix Cachingcited by 3
- 2025Generative Caching for Structurally Similar Prompts and Responsescited by 3
- 2026CodecSight: Leveraging Video Codec Signals for Efficient Streaming VLM Inferencecited by 3
- 2026DepthKV: Layer-Dependent KV Cache Pruning for Long-Context LLM Inferencecited by 3
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inferencecited by 3
- 2025AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cachecited by 2
- 2026RelayGR: Scaling Long-Sequence Generative Recommendation via Cross-Stage Relay-Race Inferencecited by 2
- 2026Adaptive KV Cache Reuse for Fast Long-Context LLM Servingcited by 2
- 2026Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Servingcited by 2
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimizationcited by 2
50 most cited of 81 All 81 (JSON)
- 2026JevSpawn: Adaptive Agentic Inference through Compositional Action Spaces30 Sep 2026
- 2026Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUs28 Sep 2026
- 2026OmniTide: Co-Designing Algorithms and Systems for Efficient On-Device Omni-LLM Streaming28 Sep 2026
- 2026PrefixBench-H100: Characterizing Prefix Reuse and Time-to-First-Token in H100 LLM Serving17 Sep 2026
- 2026Deadline-Aware Adaptive Prefill Chunking for Efficient Large Language Model Serving7 Sep 2026
- 2026Intra-Prompt Parallel Decoding for Common-Context Question Answering4 Sep 2026
- 2026TOPAS: Workflow-Aware Prefix-State Scheduling for Multi-Agent LLM Serving26 Aug 2026
- 2026GraniKV: Asymmetric Granularity KV-Cache Paging for Multi-Agent Systems with Long Shared Prefix16 Aug 2026
- 2026LaCache: Robust Semantic Caching for LLM Serving3 Aug 2026
- 2026KV Cache Translation across Heterogeneous Large Language Models31 Jul 2026
- 2026SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcri19 Jul 2026
- 2026[AAFLOW+] Stateful Operator Abstraction with Zero-Copy Distributed KV Cache Orchestration for Multi-Agent Workflows13 Jul 2026
38 more
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inference12 Jul 2026
- 2026SMetric: Rethink LLM Scheduling for Serving Agents with Balanced Session-centric Scheduling9 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026HYPIC: Accelerating Hybrid-Attention LLM Serving with Position-Independent Caching1 Jul 2026
- 2026TraceLab: Characterizing Coding Agent Workloads for LLM Serving29 Jun 2026
- 2026Affix Cache for Diffusion Large Language Models26 Jun 2026
- 2026Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Serving1 Jun 2026
- 2026Adaptive KV Cache Reuse for Fast Long-Context LLM Serving20 May 2026
- 2026ObjectCache: Layerwise Object-Storage Retrieval for KV Cache Reuse16 May 2026
- 2026PEEK: Predictive Queue-Informed KV Cache Management for LLM Serving10 May 2026
- 2026KV-RM: Regularizing KV-Cache Movement for Static-Graph LLM Serving10 May 2026
- 2026WiCER: Wiki-memory Compile, Evaluate, Refine Iterative Knowledge Compilation for LLM Wiki Systems8 May 2026
- 2026Requests of a Feather Must Flock Together: Batch Size vs. Prefix Homogeneity in LLM Inference7 May 2026
- 2026MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Serving3 May 2026
- 2026DepthKV: Layer-Dependent KV Cache Pruning for Long-Context LLM Inference27 Apr 2026
- 2026Sparse Prefix Caching for Hybrid and Recurrent LLM Serving17 Apr 2026
- 2026CodecSight: Leveraging Video Codec Signals for Efficient Streaming VLM Inference7 Apr 2026
- 2026FluxMoE: Decoupling Expert Residency for High-Performance MoE Serving3 Apr 2026
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategies30 Mar 2026
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective17 Mar 2026
- 2026Accelerating Suffix Jailbreak attacks with Prefix-Shared KV-cache12 Mar 2026
- 2026Accelerating Local LLMs on Resource-Constrained Edge Devices via Distributed Prompt Caching26 Feb 2026
- 2026Efficient Remote KV Cache Reuse with GPU-native Video Codec10 Feb 2026
- 2026DualMap: Enabling Both Cache Affinity and Load Balancing for Distributed LLM Serving6 Feb 2026
- 2026CONCUR: High-Throughput Agentic Batch Inference of LLM via Congestion-Based Concurrency Control30 Jan 2026
- 2026PackCache: A Training-Free Acceleration Method for Unified Autoregressive Video Generation via Compact KV-Cache7 Jan 2026
- 2026RelayGR: Scaling Long-Sequence Generative Recommendation via Cross-Stage Relay-Race Inference5 Jan 2026
- 2025Accelerating Language Model Workflows with Prompt Choreography28 Dec 2025
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devices10 Dec 2025
- 2025PAT: Accelerating LLM Decoding via Prefix-Aware Attention with Resource Efficient Multi-Tile Kernel27 Nov 2025
- 2025Generative Caching for Structurally Similar Prompts and Responses14 Nov 2025
- 2025MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference8 Nov 2025
- 2025AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cache29 Oct 2025
- 2025Pie: A Programmable Serving System for Emerging LLM Applications28 Oct 2025
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference8 Oct 2025
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Models3 Oct 2025
- 2025TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive Scheduling3 Oct 2025
- 2025TyphoonMLA: A Mixed Naive-Absorb MLA Kernel For Shared Prefix25 Sep 2025
50 newest of 81 All 81 (JSON)
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttentioncited by 159
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 119
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Modelscited by 54
- 2025KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Providercited by 41
- 2024P/D-Serve: Serving Disaggregated Large Language Model at Scalecited by 27
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inferencecited by 19
- 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17
- 2026CONCUR: High-Throughput Agentic Batch Inference of LLM via Congestion-Based Concurrency Controlcited by 13
- 2025TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive Schedulingcited by 10
12 most cited of 42 All 42 (JSON)
- 2026Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUs28 Sep 2026
- 2026OmniTide: Co-Designing Algorithms and Systems for Efficient On-Device Omni-LLM Streaming28 Sep 2026
- 2026PrefixBench-H100: Characterizing Prefix Reuse and Time-to-First-Token in H100 LLM Serving17 Sep 2026
- 2026Deadline-Aware Adaptive Prefill Chunking for Efficient Large Language Model Serving7 Sep 2026
- 2026Intra-Prompt Parallel Decoding for Common-Context Question Answering4 Sep 2026
- 2026GraniKV: Asymmetric Granularity KV-Cache Paging for Multi-Agent Systems with Long Shared Prefix16 Aug 2026
- 2026LaCache: Robust Semantic Caching for LLM Serving3 Aug 2026
- 2026KV Cache Translation across Heterogeneous Large Language Models31 Jul 2026
- 2026[AAFLOW+] Stateful Operator Abstraction with Zero-Copy Distributed KV Cache Orchestration for Multi-Agent Workflows13 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Serving1 Jun 2026
- 2026Adaptive KV Cache Reuse for Fast Long-Context LLM Serving20 May 2026
12 newest of 42 All 42 (JSON)
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agentscited by 35
- 2026TraceLab: Characterizing Coding Agent Workloads for LLM Servingcited by 14
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspectivecited by 10
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inferencecited by 3
- 2026SMetric: Rethink LLM Scheduling for Serving Agents with Balanced Session-centric Schedulingcited by 2
- 2026SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcricited by 1
- 2026TOPAS: Workflow-Aware Prefix-State Scheduling for Multi-Agent LLM Servingcited by 1
- 2026TOPAS: Workflow-Aware Prefix-State Scheduling for Multi-Agent LLM Serving26 Aug 2026
- 2026SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcri19 Jul 2026
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inference12 Jul 2026
- 2026SMetric: Rethink LLM Scheduling for Serving Agents with Balanced Session-centric Scheduling9 Jul 2026
- 2026TraceLab: Characterizing Coding Agent Workloads for LLM Serving29 Jun 2026
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective17 Mar 2026
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents10 Feb 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoningcited by 96
- 2025Pie: A Programmable Serving System for Emerging LLM Applicationscited by 15
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategiescited by 0
- 2026JevSpawn: Adaptive Agentic Inference through Compositional Action Spacescited by 0
- 2026JevSpawn: Adaptive Agentic Inference through Compositional Action Spaces30 Sep 2026
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategies30 Mar 2026
- 2025Pie: A Programmable Serving System for Emerging LLM Applications28 Oct 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning25 Oct 2024
- 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 97
- 2026HYPIC: Accelerating Hybrid-Attention LLM Serving with Position-Independent Cachingcited by 7
- 2025A Survey of LLM × DATAcited by 4
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devicescited by 1
- 2026HYPIC: Accelerating Hybrid-Attention LLM Serving with Position-Independent Caching1 Jul 2026
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devices10 Dec 2025
- 2025A Survey of LLM × DATA24 May 2025
- 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generation18 Apr 2024
- 2025Twilight: Adaptive Attention Sparsity with Hierarchical Top-p Pruningcited by 48
- 2024BatchLLM: Optimizing Large Batched LLM Inference with Global Prefix Sharing and Throughput-oriented Token Batchingcited by 31
- 2025Cognitive Memory in Large Language Modelscited by 28
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2024TroL: Traversal of Layers for Large Language and Vision Modelscited by 13
- 2024PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantizationcited by 11
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMscited by 4
- 2024Dynamic Activation Pitfalls in LLaMA Models: An Empirical Studycited by 3
- 2025Generative Caching for Structurally Similar Prompts and Responsescited by 3
- 2025AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cachecited by 2
- 2026RelayGR: Scaling Long-Sequence Generative Recommendation via Cross-Stage Relay-Race Inferencecited by 2
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
12 most cited of 18 All 18 (JSON)
- 2026Affix Cache for Diffusion Large Language Models26 Jun 2026
- 2026Accelerating Local LLMs on Resource-Constrained Edge Devices via Distributed Prompt Caching26 Feb 2026
- 2026RelayGR: Scaling Long-Sequence Generative Recommendation via Cross-Stage Relay-Race Inference5 Jan 2026
- 2025Accelerating Language Model Workflows with Prompt Choreography28 Dec 2025
- 2025Generative Caching for Structurally Similar Prompts and Responses14 Nov 2025
- 2025MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference8 Nov 2025
- 2025AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cache29 Oct 2025
- 2025TyphoonMLA: A Mixed Naive-Absorb MLA Kernel For Shared Prefix25 Sep 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025Are manual annotations necessary for statutory interpretations retrieval?16 Jun 2025
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMs23 May 2025
- 2025Cognitive Memory in Large Language Models3 Apr 2025
12 newest of 18 All 18 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2024Beyond KV Caching: Shared Attention for Efficient LLMs
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving
- 2024SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget
- 2026Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keys
- 2025HCAttention: Extreme KV Cache Compression via Heterogeneous Attention Computing for LLMs
- 2025Paged Attention Meets FlexAttention: Unlocking Long-Context Efficiency in Deployed Inference