mlsanityData to 7 Oct 2026

SCBench: A KV Cache-Centric Analysis of Long-Context Methods

arXiv 2412.10319 ↗First posted 13 Dec 2024cs.CL cs.LGcited by 59

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

Abstract (arXiv)

Long-context LLMs have enabled numerous downstream applications but also introduced significant challenges related to computational and memory efficiency. To address these challenges, optimizations for long-context inference have been developed, centered around the KV cache. However, existing benchmarks often evaluate in single-request, neglecting the full lifecycle of the KV cache in real-world use. This oversight is particularly critical, as KV cache reuse has become widely adopted in LLMs inference frameworks, such as vLLM and SGLang, as well as by LLM providers, including OpenAI, Microsoft, Google, and Anthropic. To address this gap, we introduce SCBench(SharedContextBench), a comprehensive benchmark for evaluating long-context methods from a KV cachecentric perspective: 1) KV cache generation, 2) KV cache compression, 3) KV cache retrieval, 4) KV cache loading. Specifically, SCBench uses test examples with shared context, ranging 12 tasks with two shared context modes, covering four categories of long-context capabilities: string retrieval, semantic retrieval, global information, and multi-task. With it, we provide an extensive KV cache-centric analysis of eight categories long-context solutions, including Gated Linear RNNs, Mamba-Attention hybrids, and efficient methods such as sparse attention, KV cache dropping, quantization, retrieval, loading, and prompt compression. The evaluation is conducted on 8 long-context LLMs. Our findings show that sub-O(n) memory methods suffer in multi-turn scenarios, while sparse encoding with O(n) memory and sub-O(n^2) pre-filling computation perform robustly. Dynamic sparsity yields more expressive KV caches than static patterns, and layer-level sparsity in hybrid architectures reduces memory usage with strong performance. Additionally, we identify attention distribution shift issues in long-generation scenarios. https://aka.ms/SCBench.

Key facts. Cited by 59 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 80 of its 102 references that are in the map. First posted on arXiv 13 Dec 2024.

Builds on

80 of 102 references.

Closest ancestors · 13

Same direction, newest first

  1. 2024Star Attention: Efficient LLM Inference over Long Sequences26 Nov
  2. 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
  3. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
  4. 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches1 Jul
  5. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
  6. 2024Block Transformer: Global-to-Local Language Modeling for Fast Inference4 Jun
  7. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  8. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  9. 2023SparQ Attention: Bandwidth-Efficient LLM Inference8 Dec
  10. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  11. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
  12. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
1 more
  1. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 67

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2020Longformer: The Long-Document Transformercited by 3,362
  7. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  8. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  9. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  10. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  11. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  12. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
38 more
  1. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  2. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
  3. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  4. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  5. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  6. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  8. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  9. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
  10. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  11. 2022In-context Learning and Induction Headscited by 930
  12. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  13. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  14. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  15. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  16. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  17. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
  18. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  19. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  20. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  21. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
  22. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  23. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  24. 2024MT-Bench-101: A Fine-Grained Benchmark for Evaluating Large Language Models in Multi-Turn Dialoguescited by 247
  25. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
  26. 2024Many-Shot In-Context Learningcited by 203
  27. 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 200
  28. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  29. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  30. 2024An Empirical Study of Mamba-based Language Modelscited by 177
  31. 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
  32. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  33. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
  34. 2022Liquid Structural State-Space Modelscited by 134
  35. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
  36. 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 119
  37. 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
  38. 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 26; 2026: 32.

59 papers.

Sort:

By area:

  1. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
  2. 2025In Prospect and Retrospect: Reflective Memory Management for Long-term Personalized Dialogue Agentscited by 102
  3. 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 89
  4. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compressioncited by 41
  5. 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspectivecited by 28
  6. 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 28
  7. 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
  8. 2025MMInference: Accelerating Pre-filling for Long-Context VLMs via Modality-Aware Permutation Sparse Attentioncited by 26
  9. 2025Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Modelscited by 21
  10. 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 18
  11. 2025Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scorescited by 16
  12. 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
38 more
  1. 2026Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Evictioncited by 14
  2. 2025xKV: Cross-Layer KV-Cache Compression via Aligned Singular Vector Extractioncited by 13
  3. 2025Speculative Prefill: Turbocharging TTFT with Lightweight and Training-Free Token Importance Estimationcited by 12
  4. 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
  5. 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?cited by 10
  6. 2025VideoNSA: Native Sparse Attention Scales Video Understandingcited by 10
  7. 2025HeadInfer: Memory-Efficient LLM Inference by Head-wise Offloadingcited by 9
  8. 2026AgentLongBench: A Controllable Long Benchmark For Long-Contexts Agents via Environment Rolloutscited by 8
  9. 2026ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inferencecited by 8
  10. 2025FlowKV: Enhancing Multi-Turn Conversational Coherence in LLMs via Isolated Key-Value Cache Managementcited by 6
  11. 2025EdgeInfinite: A Memory-Efficient Infinite-Context Transformer for Edge Devicescited by 5
  12. 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Servingcited by 5
  13. 2026LycheeDecode: Accelerating Long-Context LLM Inference via Hybrid-Head Sparse Decodingcited by 5
  14. 2026Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attentioncited by 5
  15. 2025Accelerating Prefilling via Decoding-time Contribution Sparsitycited by 4
  16. 2026IceCache: Memory-efficient KV-cache Management for Long-Sequence LLMscited by 4
  17. 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objectivecited by 4
  18. 2026End-to-End Context Compression at Scalecited by 4
  19. 2025APB: Accelerating Distributed Long-Context Inference by Passing Compressed Context Blocks across GPUscited by 3
  20. 2026RAP: KV-Cache Compression via RoPE-Aligned Pruningcited by 2
  21. 2026Tangram: Unlocking Non-Uniform KV Cache Compression for Efficient Multi-turn LLM Servingcited by 2
  22. 2026RestoreKV: Recovering Full-Cache Behavior Under Aggressive Query-Agnostic KV Cache Evictioncited by 2
  23. 2026ShallowStream: Index Shallow then Answer Deep for Streaming Video Understandingcited by 2
  24. 2025LoopServe: An Adaptive Dual-phase LLM Inference Acceleration System for Multi-Turn Dialoguescited by 1
  25. 2026KV Cache Offloading for Context-Intensive Taskscited by 1
  26. 2026Understanding Sparse Attention Selectivity in Long-Context Foundation Models via Counterfactual Evaluationcited by 1
  27. 2026KVDiagnosis: A Diagnostic Benchmark for KV-Cache Compression in Long-Context Language Modelscited by 1
  28. 2026Language Models Can Control Their Own Attentioncited by 1
  29. 2026Towards Evolving Context Parameterization for Large Language Modelscited by 1
  30. 2026PatchKV: Weight-Space Compensation of KV Cachecited by 1
  31. 2026EchoPress: Query-Agnostic KV Cache Pruning via Virtual Context Reconstructioncited by 1
  32. 2025Lag-Relative Sparse Attention In Long Context Trainingcited by 0
  33. 2025Rethinking Inference Placement for Deep Learning across Edge and Cloud Platforms: A Multi-Objective Optimization Perspective and Future Directionscited by 0
  34. 2025KV Cache Recycling to Expand Usable Context Capacity in Low Parameter LLMscited by 0
  35. 2026Towards Infinite Length Extrapolation: A Unified Approachcited by 0
  36. 2026PRISM: Breaking the O(n) Memory Wall in Long-Context LLM Inference via O(1) Photonic Block Selectioncited by 0
  37. 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Servingcited by 0
  38. 2026Learning to See What You Need: Gaze Attention for Multimodal Large Language Modelscited by 0

50 most cited of 59 All 59 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
  2. 2025CentroidKV: Efficient Long-Context LLM Inference via KV Cache Clustering
  3. 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
  4. 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference
  5. 2025WindowKV: Task-Adaptive Group-Wise KV Cache Window Selection for Efficient LLM Inference
  6. 2026ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMs
  7. 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference
  8. 2026LycheeCluster: Efficient Long-Context Inference with Structure-Aware Chunking and Hierarchical KV Indexing