mlsanityData to 7 Oct 2026

Training-Free Hashing-Based Attention via Binary Principal Components

arXiv 2608.04405 ↗First posted 5 Aug 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Long-context large language models (LLMs) are increasingly deployed in real-world applications, yet self-attention remains a major efficiency bottleneck -- especially during decoding -- due to the necessity of repeatedly processing ever-growing key-value (KV) caches. Existing sparse attention reduce computation by attending to fewer KV pairs, but often suffer from substantial accuracy degradation, require additional training, or rely on expensive hashing. In this work, we present BinaryPC, a training-free, data-aware hashing-based sparse attention for long-context LLMs. BinaryPC constructs compact binary hash codes and corresponding hash function by computing binary principal components of data. Unlike Locality-Sensitive Hashing (LSH) with data-independent random projections or learned non-linear hashing methods, BinaryPC constructs binary codes that explicitly preserve the structural information of data without requiring gradient-based training. Comprehensive experiments across multiple model families and long-context benchmarks show that BinaryPC preserves accuracy relative to full attention while achieving superior performance among sparse and hashing-based baselines. On modern GPUs, BinaryPC improves end-to-end decoding throughput by 3.56× over the FlashAttention kernel. Our code is available at https://github.com/yudaohai666/BPC.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 31 of its 33 references that are in the map. First posted on arXiv 5 Aug 2026.

Builds on

31 of 33 references.

References · 31

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2025Qwen3 Technical Reportcited by 8,195
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  9. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  10. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  11. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  12. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
19 more
  1. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  2. 2018CoQA: A Conversational Question Answering Challengecited by 674
  3. 2022Efficiently Scaling Transformer Inferencecited by 529
  4. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  5. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  6. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
  7. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  8. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  9. 2025Qwen2.5-1M Technical Reportcited by 158
  10. 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 124
  11. 2024Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QAcited by 121
  12. 2024Transformers are Multi-State RNNscited by 120
  13. 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
  14. 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferencescited by 59
  15. 2024FastDecode: High-Throughput GPU-Efficient LLM Serving using Heterogeneous Pipelinescited by 49
  16. 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 23
  17. 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generationcited by 9
  18. 2025HATA: Trainable and Hardware-Efficient Hash-Aware Top-k Attention for Scalable Large Model Inferencecited by 6
  19. 2025Spotlight Attention: Towards Efficient LLM Generation via Non-linear Hashing-based KV Cache Retrievalcited by 2

Built on by

Not cited yet.