Squeezed Attention: Accelerating Long Context Length LLM Inference
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
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
20 more
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
- 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 155
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inferencecited by 148
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
- 2024Transformers are Multi-State RNNscited by 120
- 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
- 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
- 2024InfiniPot: Infinite Context Processing on Memory-Constrained LLMscited by 27
- 2024SirLLM: Streaming Infinite Retentive LLMcited by 16
- 2014ASKIT: Approximate Skeletonization Kernel-Independent Treecode in High Dimensionscited by 12
Built on by
Citing papers per year: 2024: 3; 2025: 26; 2026: 27.
56 papers.
Sort:
By area:
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
- 2025InfiniPot-V: Memory-Constrained KV Cache Compression for Streaming Video Understandingcited by 54
- 2025StreamMem: Query-Agnostic KV Cache Memory for Streaming Video Understandingcited by 53
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 23
- 2025ETS: Efficient Tree Search for Inference-Time Scalingcited by 15
- 2025Generative AI Act II: Test Time Scaling Drives Cognition Engineeringcited by 14
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
- 2025Multipole Attention for Efficient Long Context Reasoningcited by 14
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2025SentenceKV: Efficient LLM Inference via Sentence-Level Semantic KV Cachingcited by 9
38 more
- 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attentioncited by 8
- 2025SQuat: Subspace-orthogonal KV Cache Quantizationcited by 7
- 2025EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environmentscited by 7
- 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruningcited by 6
- 2025vAttention: Verified Sparse Attentioncited by 6
- 2026FASA: Frequency-aware Sparse Attentioncited by 6
- 2025Scaling Textual Gradients via Sampling-Based Momentumcited by 5
- 2025SmallKV: Small Model Assisted Compensation of KV Cache Compression for Efficient LLM Inferencecited by 5
- 2025Retrospective Sparse Attention for Efficient Long-Context Generationcited by 4
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
- 2025Scalable Processing-Near-Memory for 1M-Token LLM Inference: CXL-Enabled KV-Cache Management Beyond GPU Limitscited by 4
- 2025DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphonescited by 4
- 2025Sparse Attention Remapping with Clustering for Efficient LLM Decoding on PIMcited by 3
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attentioncited by 3
- 2026Not All Turns Are Equally Hard: Adaptive Thinking Budgets For Efficient Multi-Turn Reasoning in Agentscited by 3
- 2026OmniMem: Perturbation-aware Memory Compression for Streaming Audio-Visual LLMscited by 3
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
- 2025Towards Efficient LLM-aware Heterogeneous Graph Learningcited by 2
- 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantizationcited by 2
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modelingcited by 1
- 2025Multipole Semantic Attention: A Fast Approximation of Softmax Attention for Pretrainingcited by 1
- 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditingcited by 1
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cachecited by 1
- 2026LEDGER: Scaling Agentic Document Editing with Dependency-aware Graph Retrievalcited by 1
- 2026Towards Memory-Efficient Autoregressive Video Generation via Instance-Specific Parametric Absorptioncited by 1
- 2026AVQ-Attention: Adaptive Vector-Quantized Attentioncited by 1
- 2026LLM Inference in a Flash!cited by 1
- 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inferencecited by 0
- 2026Schema on the Inside: A Two-Phase Fine-Tuning Method for High-Efficiency Text-to-SQL at Scalecited by 0
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategiescited by 0
- 2026Comparative Characterization of KV Cache Management Strategies for LLM Inferencecited by 0
- 2026ScenarioControl: Vision-Language Controllable Vectorized Latent Scenario Generationcited by 0
- 2026Context Memorization for Efficient Long Context Generationcited by 0
- 2026Inference Time Context Sparsity: Illusion or Opportunity?cited by 0
- 2026Recall Before You Rank: Similarity-Guided Top-K Reuse for Efficient Long-Context Attentioncited by 0
- 2026EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decodingcited by 0
- 2026MGAL: A Multilingual Granularity-Aware Long-Context Benchmarkcited by 0
50 most cited of 56 All 56 (JSON)
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generation1 Oct 2026
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026STEER: Reducing Inference Cost in Relational Foundation Models through Semantically Informed Sampling1 Oct 2026
- 2026SANTA++: Sampling Attention through Representative Keys28 Sep 2026
- 2026PQ-HSA: Reusing Product-Quantized Scores for Hybrid Sparse-Approximate Attention27 Sep 2026
- 2026LLM Inference in a Flash!14 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026MGAL: A Multilingual Granularity-Aware Long-Context Benchmark21 Aug 2026
- 2026EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decoding5 Aug 2026
- 2026Recall Before You Rank: Similarity-Guided Top-K Reuse for Efficient Long-Context Attention30 Jul 2026
- 2026AVQ-Attention: Adaptive Vector-Quantized Attention14 Jul 2026
- 2026Towards Memory-Efficient Autoregressive Video Generation via Instance-Specific Parametric Absorption1 Jul 2026
38 more
- 2026LEDGER: Scaling Agentic Document Editing with Dependency-aware Graph Retrieval19 Jun 2026
- 2026OmniMem: Perturbation-aware Memory Compression for Streaming Audio-Visual LLMs26 May 2026
- 2026Inference Time Context Sparsity: Illusion or Opportunity?22 May 2026
- 2026Context Memorization for Efficient Long Context Generation18 May 2026
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cache7 May 2026
- 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantization20 Apr 2026
- 2026ScenarioControl: Vision-Language Controllable Vectorized Latent Scenario Generation18 Apr 2026
- 2026Not All Turns Are Equally Hard: Adaptive Thinking Budgets For Efficient Multi-Turn Reasoning in Agents6 Apr 2026
- 2026Comparative Characterization of KV Cache Management Strategies for LLM Inference6 Apr 2026
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategies30 Mar 2026
- 2026Schema on the Inside: A Two-Phase Fine-Tuning Method for High-Efficiency Text-to-SQL at Scale25 Mar 2026
- 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inference19 Mar 2026
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attention6 Feb 2026
- 2026FASA: Frequency-aware Sparse Attention3 Feb 2026
- 2026An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditing25 Jan 2026
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inference19 Dec 2025
- 2025Towards Efficient LLM-aware Heterogeneous Graph Learning22 Nov 2025
- 2025Scalable Processing-Near-Memory for 1M-Token LLM Inference: CXL-Enabled KV-Cache Management Beyond GPU Limits31 Oct 2025
- 2025DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphones20 Oct 2025
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct 2025
- 2025vAttention: Verified Sparse Attention7 Oct 2025
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environments22 Sep 2025
- 2025Multipole Semantic Attention: A Fast Approximation of Softmax Attention for Pretraining12 Sep 2025
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling11 Sep 2025
- 2025StreamMem: Query-Agnostic KV Cache Memory for Streaming Video Understanding21 Aug 2025
- 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruning21 Aug 2025
- 2025Retrospective Sparse Attention for Efficient Long-Context Generation12 Aug 2025
- 2025SmallKV: Small Model Assisted Compensation of KV Cache Compression for Efficient LLM Inference3 Aug 2025
- 2025InfiniPot-V: Memory-Constrained KV Cache Compression for Streaming Video Understanding18 Jun 2025
- 2025Multipole Attention for Efficient Long Context Reasoning16 Jun 2025
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoning10 Jun 2025
- 2025Scaling Textual Gradients via Sampling-Based Momentum31 May 2025
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inference19 May 2025
- 2025Sparse Attention Remapping with Clustering for Efficient LLM Decoding on PIM9 May 2025
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference5 May 2025
- 2025Generative AI Act II: Test Time Scaling Drives Cognition Engineering18 Apr 2025
- 2025SentenceKV: Efficient LLM Inference via Sentence-Level Semantic KV Caching1 Apr 2025
50 newest of 56 All 56 (JSON)
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
- 2025InfiniPot-V: Memory-Constrained KV Cache Compression for Streaming Video Understandingcited by 54
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2025SentenceKV: Efficient LLM Inference via Sentence-Level Semantic KV Cachingcited by 9
- 2025SQuat: Subspace-orthogonal KV Cache Quantizationcited by 7
- 2025EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environmentscited by 7
- 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruningcited by 6
- 2026FASA: Frequency-aware Sparse Attentioncited by 6
- 2025SmallKV: Small Model Assisted Compensation of KV Cache Compression for Efficient LLM Inferencecited by 5
- 2025Retrospective Sparse Attention for Efficient Long-Context Generationcited by 4
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
12 most cited of 21 All 21 (JSON)
- 2026LLM Inference in a Flash!14 Sep 2026
- 2026Recall Before You Rank: Similarity-Guided Top-K Reuse for Efficient Long-Context Attention30 Jul 2026
- 2026Towards Memory-Efficient Autoregressive Video Generation via Instance-Specific Parametric Absorption1 Jul 2026
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cache7 May 2026
- 2026Comparative Characterization of KV Cache Management Strategies for LLM Inference6 Apr 2026
- 2026FASA: Frequency-aware Sparse Attention3 Feb 2026
- 2025Scalable Processing-Near-Memory for 1M-Token LLM Inference: CXL-Enabled KV-Cache Management Beyond GPU Limits31 Oct 2025
- 2025DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphones20 Oct 2025
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct 2025
- 2025EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environments22 Sep 2025
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling11 Sep 2025
- 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruning21 Aug 2025
12 newest of 21 All 21 (JSON)
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
- 2025ETS: Efficient Tree Search for Inference-Time Scalingcited by 15
- 2025Generative AI Act II: Test Time Scaling Drives Cognition Engineeringcited by 14
- 2025Multipole Attention for Efficient Long Context Reasoningcited by 14
- 2026Not All Turns Are Equally Hard: Adaptive Thinking Budgets For Efficient Multi-Turn Reasoning in Agentscited by 3
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategiescited by 0
- 2026Not All Turns Are Equally Hard: Adaptive Thinking Budgets For Efficient Multi-Turn Reasoning in Agents6 Apr 2026
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategies30 Mar 2026
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025Multipole Attention for Efficient Long Context Reasoning16 Jun 2025
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoning10 Jun 2025
- 2025Generative AI Act II: Test Time Scaling Drives Cognition Engineering18 Apr 2025
- 2025ETS: Efficient Tree Search for Inference-Time Scaling19 Feb 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 23
- 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attentioncited by 8
- 2025vAttention: Verified Sparse Attentioncited by 6
- 2025Scaling Textual Gradients via Sampling-Based Momentumcited by 5
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attentioncited by 3
- 2026OmniMem: Perturbation-aware Memory Compression for Streaming Audio-Visual LLMscited by 3
- 2025Towards Efficient LLM-aware Heterogeneous Graph Learningcited by 2
- 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantizationcited by 2
- 2025Multipole Semantic Attention: A Fast Approximation of Softmax Attention for Pretrainingcited by 1
- 2026AVQ-Attention: Adaptive Vector-Quantized Attentioncited by 1
- 2026UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inferencecited by 0
12 most cited of 23 All 23 (JSON)
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generation1 Oct 2026
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026STEER: Reducing Inference Cost in Relational Foundation Models through Semantically Informed Sampling1 Oct 2026
- 2026SANTA++: Sampling Attention through Representative Keys28 Sep 2026
- 2026PQ-HSA: Reusing Product-Quantized Scores for Hybrid Sparse-Approximate Attention27 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026MGAL: A Multilingual Granularity-Aware Long-Context Benchmark21 Aug 2026
- 2026AVQ-Attention: Adaptive Vector-Quantized Attention14 Jul 2026
- 2026OmniMem: Perturbation-aware Memory Compression for Streaming Audio-Visual LLMs26 May 2026
- 2026Inference Time Context Sparsity: Illusion or Opportunity?22 May 2026
- 2026Context Memorization for Efficient Long Context Generation18 May 2026
- 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantization20 Apr 2026
12 newest of 23 All 23 (JSON)