mlsanityData to 7 Oct 2026

Squeezed Attention: Accelerating Long Context Length LLM Inference

arXiv 2411.09688 ↗First posted 14 Nov 2024cs.CLcited by 56

Not on the map. Why?

Cited by 25 in Efficient LLM inference and serving, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

Emerging Large Language Model (LLM) applications require long input context in order to perform complex tasks like document analysis and code generation. For these long context length applications, the length of the input prompt poses a significant challenge in terms of inference efficiency since the inference costs increase linearly with sequence length. However, for many of these applications, much of the context in the prompt is fixed across different user inputs, thereby providing the opportunity to perform offline optimizations in order to process user inputs quickly, as they are received. We propose Squeezed Attention to accelerate LLM applications where a large portion of the input context is fixed. We first leverage K-means clustering offline to group the keys for the fixed context based on semantic similarity and represent each cluster with a single centroid value. During inference, we compare query tokens from the user input with the centroids to predict which keys from the fixed context are semantically relevant, and then compute exact attention using only the important keys, thereby reducing bandwidth and computational costs. We also present a hierarchical version of our algorithm which can reduce the complexity of attention from linear to logarithmic with respect to the fixed context length. We evaluate our method on long-context benchmarks including LongBench, where it achieves a 3.1× reduction in KV budget with no noticeable accuracy loss and up to an 8× reduction with only a 0.5 point accuracy gap for the LLaMA-2-7B-32K, LWM-Text-Chat-1M, and Longchat-7B-v1.5-32K models. Futhermore, we implement kernels for centroid comparison and sparse FlashAttention with important keys, achieving more than 4× speedups during both the prefill and generation phases for long-context inference. Our code is available at https://github.com/SqueezeAILab/SqueezedAttention.

Key facts. Cited by 56 papers in the map (data through 7 Oct 2026). Builds on 32 of its 49 references that are in the map. First posted on arXiv 14 Nov 2024.

Builds on

32 of 49 references.

References · 32

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  6. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  8. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  9. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  10. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  11. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  12. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
20 more
  1. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  2. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  3. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  4. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  5. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  6. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  7. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  8. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  9. 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 155
  10. 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inferencecited by 148
  11. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
  12. 2024Transformers are Multi-State RNNscited by 120
  13. 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
  14. 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
  15. 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
  16. 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
  17. 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
  18. 2024InfiniPot: Infinite Context Processing on Memory-Constrained LLMscited by 27
  19. 2024SirLLM: Streaming Infinite Retentive LLMcited by 16
  20. 2014ASKIT: Approximate Skeletonization Kernel-Independent Treecode in High Dimensionscited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 26; 2026: 27.

56 papers.

Sort:

By area:

  1. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
  2. 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
  3. 2025InfiniPot-V: Memory-Constrained KV Cache Compression for Streaming Video Understandingcited by 54
  4. 2025StreamMem: Query-Agnostic KV Cache Memory for Streaming Video Understandingcited by 53
  5. 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
  6. 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 23
  7. 2025ETS: Efficient Tree Search for Inference-Time Scalingcited by 15
  8. 2025Generative AI Act II: Test Time Scaling Drives Cognition Engineeringcited by 14
  9. 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
  10. 2025Multipole Attention for Efficient Long Context Reasoningcited by 14
  11. 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
  12. 2025SentenceKV: Efficient LLM Inference via Sentence-Level Semantic KV Cachingcited by 9
38 more
  1. 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attentioncited by 8
  2. 2025SQuat: Subspace-orthogonal KV Cache Quantizationcited by 7
  3. 2025EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environmentscited by 7
  4. 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruningcited by 6
  5. 2025vAttention: Verified Sparse Attentioncited by 6
  6. 2026FASA: Frequency-aware Sparse Attentioncited by 6
  7. 2025Scaling Textual Gradients via Sampling-Based Momentumcited by 5
  8. 2025SmallKV: Small Model Assisted Compensation of KV Cache Compression for Efficient LLM Inferencecited by 5
  9. 2025Retrospective Sparse Attention for Efficient Long-Context Generationcited by 4
  10. 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
  11. 2025Scalable Processing-Near-Memory for 1M-Token LLM Inference: CXL-Enabled KV-Cache Management Beyond GPU Limitscited by 4
  12. 2025DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphonescited by 4
  13. 2025Sparse Attention Remapping with Clustering for Efficient LLM Decoding on PIMcited by 3
  14. 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
  15. 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attentioncited by 3
  16. 2026Not All Turns Are Equally Hard: Adaptive Thinking Budgets For Efficient Multi-Turn Reasoning in Agentscited by 3
  17. 2026OmniMem: Perturbation-aware Memory Compression for Streaming Audio-Visual LLMscited by 3
  18. 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
  19. 2025Towards Efficient LLM-aware Heterogeneous Graph Learningcited by 2
  20. 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantizationcited by 2
  21. 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modelingcited by 1
  22. 2025Multipole Semantic Attention: A Fast Approximation of Softmax Attention for Pretrainingcited by 1
  23. 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditingcited by 1
  24. 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cachecited by 1
  25. 2026LEDGER: Scaling Agentic Document Editing with Dependency-aware Graph Retrievalcited by 1
  26. 2026Towards Memory-Efficient Autoregressive Video Generation via Instance-Specific Parametric Absorptioncited by 1
  27. 2026AVQ-Attention: Adaptive Vector-Quantized Attentioncited by 1
  28. 2026LLM Inference in a Flash!cited by 1
  29. 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inferencecited by 0
  30. 2026Schema on the Inside: A Two-Phase Fine-Tuning Method for High-Efficiency Text-to-SQL at Scalecited by 0
  31. 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategiescited by 0
  32. 2026Comparative Characterization of KV Cache Management Strategies for LLM Inferencecited by 0
  33. 2026ScenarioControl: Vision-Language Controllable Vectorized Latent Scenario Generationcited by 0
  34. 2026Context Memorization for Efficient Long Context Generationcited by 0
  35. 2026Inference Time Context Sparsity: Illusion or Opportunity?cited by 0
  36. 2026Recall Before You Rank: Similarity-Guided Top-K Reuse for Efficient Long-Context Attentioncited by 0
  37. 2026EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decodingcited by 0
  38. 2026MGAL: A Multilingual Granularity-Aware Long-Context Benchmarkcited by 0

50 most cited of 56 All 56 (JSON)