Research map / Architectures and efficiency / Attention and transformers
HATA: Trainable and Hardware-Efficient Hash-Aware Top-k Attention for Scalable Large Model Inference
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace hash-code top-k selection with Loki's low-rank score estimate | HATA · RULER avg (Llama-2, 32K) | accuracy: 7.16 vs 63.91 | Improved |
| use HATA instead of Quest block-level selection | Llama-3.1-8B-Instruct · RULER avg | accuracy: 72.55 -> 80.57 | Improved |
| use HATA sparse attention instead of dense | Llama-3.1-8B-Instruct · LongBench-e avg | accuracy: 54.10 -> 53.94 | No clear effect |
| use HATA sparse attention instead of dense | Llama-3.1-8B-Instruct · RULER avg | accuracy: 82.68 -> 80.57 | Hurt |
| use HATA instead of exact top-k attention | Llama-3.1-8B-Instruct · LongBench-v2 total | accuracy: 28.63 -> 29.62 | Improved |
| use HATA offloading variant instead of MagicPIG | Llama-2-7B-32K-Instruct · total time (prefill 36K, decode 500) | seconds: 88.10 -> 23.30 | Improved |
| increase hash bits from 32 to 128 (ablation) | HATA · LongBench-e (four datasets, two models) | accuracy | Improved |
| lower token budget down to 0.4% ratio (ablation) | HATA · token budget ablation | accuracy | No clear effect |
| add high-performance Hamming score operator (ablation) | HATA · attention latency, Llama2 128K input | latency reduction: -53.2% | Improved |
| add fused gather with FlashAttention (ablation) | HATA · attention latency, Llama2 128K input | latency reduction: -23.8% | Improved |
| add kernel fusion for hash encoding (ablation) | HATA · attention latency, Llama2 128K input | latency reduction: -7.6% | Improved |
| apply all three kernel optimizations versus simple PyTorch (ablation) | HATA · attention latency, Llama2 128K input | speedup: 6.53x | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 3 of 3 on most shared results.
- Loki — LoKi: Low-dimensional KAN for Efficient Fine-tuning Image Models (CVPR 2025) · better on 4 of 4 shared results
- MagicPIG — MagicPIG: LSH Sampling for Efficient LLM Generation (ICLR 2025) · better on 4 of 4 shared results
- Quest — QUEST: Query-Aware Sparsity for Efficient Long-Context LLM Inference (ICML 2024) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- MagicPIG: LSH Sampling for Efficient LLM Generation (ICLR 2025 · similarity 0.90)
- QUEST: Query-Aware Sparsity for Efficient Long-Context LLM Inference (ICML 2024 · similarity 0.89)
- Virtual Head Attention (NeurIPS 2026 · similarity 0.89)
- Loki: Low-rank Keys for Efficient Sparse Attention (NeurIPS 2024 · similarity 0.89)
- Efficient Low Rank Attention for Long-Context Inference in Large Language Models (NeurIPS 2025 · similarity 0.89)
- SparQ Attention: Bandwidth-Efficient LLM Inference (ICML 2024 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.