PQ-HSA: Reusing Product-Quantized Scores for Hybrid Sparse-Approximate Attention
Not on the map. Why?
Abstract (arXiv)
At each decoding step a language model attends over the key-value (KV) cache of every earlier token, so at long context the attention call is bounded by memory bandwidth. Sparse attention reads only a subset of keys chosen by a cheap score estimate, and most methods give the unread tokens zero weight. The output then draws on only a small fraction of the KV cache, and accuracy drops at small budgets, most on tasks that aggregate information across the context. An inverted-file product-quantization (IVF-PQ) index over the cached keys computes an approximate score for every indexed token in order to rank them; after ranking, those scores approximate the attention logits of the tokens left out. PQ-HSA (hybrid sparse-approximate attention) attends the selected tokens with their original keys and values, and the unselected tokens, the background, enter the same softmax through those scores, summed per inverted list and multiplied by the list's mean value. At 128K and a 1-2% retrieval budget, PQ-HSA is more accurate than Quest and SnapKV on Llama-3.1-8B and Qwen3-30B-A3B and stays close to full attention in macro accuracy; with the same selector, the background term raises macro accuracy on the 8B model from 0.71 to 0.83. In the same 128K setting, inside vLLM on one NVIDIA H20, the decode attention call runs 1.6x faster than the FlashAttention-3 kernel; the speedup grows with context length, and a cost model fitted on 8B to 30B models gives the context length at which it begins. A vLLM plugin runs PQ-HSA on two engine versions without changes to the engine source; code is available at https://github.com/KunmingSHAO/pqhsa_release.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 39 of its 46 references that are in the map. First posted on arXiv 27 Sep 2026.
Builds on
39 of 46 references.
References · 39
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 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
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
27 more
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2024The Faiss librarycited by 370
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 242
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
- 2025Qwen2.5-1M Technical Reportcited by 158
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 132
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2024Transformers are Multi-State RNNscited by 120
- 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compressioncited by 65
- 2024Squeezed Attention: Accelerating Long Context Length LLM Inferencecited by 56
- 2024Post-Training Sparse Attention with Double Sparsitycited by 45
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2025CommVQ: Commutative Vector Quantization for KV Cache Compressioncited by 25
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 23
- 2025Multipole Attention for Efficient Long Context Reasoningcited by 14
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2019Norm-Explicit Quantization: Improving Vector Quantization for Maximum Inner Product Searchcited by 10
- 2026Flash-KMeans: Fast and Memory-Efficient Exact K-Meanscited by 7
- 2026Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keyscited by 5
- 2026ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMscited by 2
- 2026STS: Efficient Sparse Attention with Speculative Token Sparsitycited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Rectified Sparse Attention
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelity
- 2026Simplified Sparse Attention via Gist Tokens
- 2026RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference
- 2026Scaling Attention via Feature Sparsity
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs
- 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving