Metraipolis › archive › dc_1cca7d81f3de
Training-Free Hashing-Based Attention via Binary Principal Components — arXiv:2608.04405
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.04405
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T11:14:13.025Z
- SHA-256 of the archived text
98336b1a968f189f3f2eee8ba5e3c219542051bf8a82914c5867fda345bf4705- Stable URL of this page
https://metraipolis.com/documento/dc_1cca7d81f3de
How to cite
Training-Free Hashing-Based Attention via Binary Principal Components — arXiv:2608.04405 — arXiv (en), https://arxiv.org/abs/2608.04405 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1cca7d81f3de (Metraipolis archive dc_1cca7d81f3de, sha256 98336b1a968f189f3f2eee8ba5e3c219542051bf8a82914c5867fda345bf4705)
BibTeX
@misc{dc1cca7d81f3de,
title = {Training-Free Hashing-Based Attention via Binary Principal Components — arXiv:2608.04405},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.04405},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1cca7d81f3de; sha256 98336b1a968f189f3f2eee8ba5e3c219542051bf8a82914c5867fda345bf4705},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.04405. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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$\times$ over the FlashAttention kernel. Our code is available at this https URL . Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-06 in cs.AI). Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2608.04405 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T11:02:13.505Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-06?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).