Metraipolis › archive › dc_3ac4ae2705a3

PQ-HSA: Reusing Product-Quantized Scores for Hybrid Sparse-Approximate Attention — arXiv:2609.33746

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.33746
License (as archived)
CC0-1.0
Archived
2026-10-07T22:37:44.663Z
SHA-256 of the archived text
96ba1d57b0d01d4c72465859acc5fe1e1a013134cf9f256497ed9ed123d18155
Stable URL of this page
https://metraipolis.com/documento/dc_3ac4ae2705a3

How to cite

PQ-HSA: Reusing Product-Quantized Scores for Hybrid Sparse-Approximate Attention — arXiv:2609.33746 — arXiv (en), https://arxiv.org/abs/2609.33746 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_3ac4ae2705a3 (Metraipolis archive dc_3ac4ae2705a3, sha256 96ba1d57b0d01d4c72465859acc5fe1e1a013134cf9f256497ed9ed123d18155)
BibTeX
@misc{dc3ac4ae2705a3,
  title = {PQ-HSA: Reusing Product-Quantized Scores for Hybrid Sparse-Approximate Attention — arXiv:2609.33746},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.33746},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_3ac4ae2705a3; sha256 96ba1d57b0d01d4c72465859acc5fe1e1a013134cf9f256497ed9ed123d18155},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.33746. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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 this https URL .

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.LG).
Categorie arXiv: Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2609.33746 — 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-07T22:14:28.031Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).