mlsanityData to 7 Oct 2026

HHR: Hierarchical Hash Retrieval for Efficient LLM Generation

arXiv 2610.01230 ↗First posted 1 Oct 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Efficient long-context inference is essential for large language models (LLMs), yet it poses a severe computational bottleneck. Hash-based retrieval offers an efficient alternative by encoding queries and keys into binary codes and using Hamming distance for key selection. However, this leads to a critical mismatch between Hamming distance and attention relevance. Query-Key logits depend jointly on directional similarity and feature magnitudes, whereas hash binarization discards magnitude information, causing both false-positive retrieval of low-logit keys and false-negative omission of high-logit keys. To address these failures, we propose Hierarchical Hash Retrieval (HHR), a coarse-to-fine framework that progressively improves retrieval accuracy through Geometry-Aware Key Routing (GKR) and Learned Hash Projection (LHP). GKR learns a head-wise orthogonal transformation to redistribute feature magnitudes and derive more discriminative page-level logit bounds, enabling effective pruning of low-logit keys while preserving important candidates. LHP then learns a head-wise projection space that aligns Hamming distance with the true Query-Key relevance ranking for fine-grained retrieval. By combining GKR and LHP, HHR suppresses false positives and recovers false negatives, substantially improving the fidelity of hash-based sparse attention. Extensive experiments across diverse LLMs and benchmarks demonstrate that HHR achieves superior performance over existing methods. For example, on LongBench, HHR improves the average score by 1.10 points and, at a context length of 128K, achieves up to a 3.30x decoding speedup and a 2.83x end-to-end speedup for Llama-3.1-8B-Instruct. The code is publicly available at https://github.com/lianjunl13-sudo/HHR.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 46 of its 53 references that are in the map. First posted on arXiv 1 Oct 2026.

Builds on

46 of 53 references.

References · 46

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  8. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  9. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  10. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  11. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  12. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
34 more
  1. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  2. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  3. 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 319
  4. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  5. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  6. 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
  7. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
  8. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  9. 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
  10. 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
  11. 2014Asymmetric LSH (ALSH) for Sublinear Time Maximum Inner Product Search (MIPS)cited by 109
  12. 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
  13. 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
  14. 2017Orthogonal Recurrent Neural Networks with Scaled Cayley Transformcited by 82
  15. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 71
  16. 2024Squeezed Attention: Accelerating Long Context Length LLM Inferencecited by 56
  17. 2025Twilight: Adaptive Attention Sparsity with Hierarchical Top-p Pruningcited by 48
  18. 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
  19. 2025MMInference: Accelerating Pre-filling for Long-Context VLMs via Modality-Aware Permutation Sparse Attentioncited by 26
  20. 2024Star Attention: Efficient LLM Inference over Long Sequencescited by 25
  21. 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMscited by 24
  22. 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 23
  23. 2025Efficient Attention Mechanisms for Large Language Models: A Surveycited by 21
  24. 2025Long-Context Generalization with Sparse Attentioncited by 18
  25. 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attentioncited by 12
  26. 2025Efficient Many-Shot In-Context Learning with Dynamic Block-Sparse Attentioncited by 12
  27. 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contextscited by 9
  28. 2025Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inferencecited by 7
  29. 2025HATA: Trainable and Hardware-Efficient Hash-Aware Top-k Attention for Scalable Large Model Inferencecited by 6
  30. 2026FASA: Frequency-aware Sparse Attentioncited by 6
  31. 2025Overcoming Long-Context Limitations of State-Space Models via Context-Dependent Sparse Attentioncited by 5
  32. 2025Retrospective Sparse Attention for Efficient Long-Context Generationcited by 4
  33. 2026Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decodingcited by 4
  34. 2025Spotlight Attention: Towards Efficient LLM Generation via Non-linear Hashing-based KV Cache Retrievalcited by 2

Built on by

Not cited yet.