Metraipolis › archive › dc_b1467c64c8c6
SANTA++: Sampling Attention through Representative Keys — arXiv:2609.35629
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.35629
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T21:54:20.615Z
- SHA-256 of the archived text
4e262852c336127514384e7c5ba9b24a6abf7e4bc8d4b0789666207043f38de2- Stable URL of this page
https://metraipolis.com/documento/dc_b1467c64c8c6
How to cite
SANTA++: Sampling Attention through Representative Keys — arXiv:2609.35629 — arXiv (en), https://arxiv.org/abs/2609.35629 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b1467c64c8c6 (Metraipolis archive dc_b1467c64c8c6, sha256 4e262852c336127514384e7c5ba9b24a6abf7e4bc8d4b0789666207043f38de2)
BibTeX
@misc{dcb1467c64c8c6,
title = {SANTA++: Sampling Attention through Representative Keys — arXiv:2609.35629},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.35629},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b1467c64c8c6; sha256 4e262852c336127514384e7c5ba9b24a6abf7e4bc8d4b0789666207043f38de2},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.35629. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Attention often concentrates on a small subset of tokens in the context, but which subset matters changes from one query to the next. To exploit this changing structure, we introduce SANTA++, a training-free stochastic attention method that uses representative keys for memory-efficient selection without scanning the entire key-value (KV) cache. Cached keys are organized into teams, and the query scores one representative from each team to decide which teams to sample. We compute exact attention scores within the sampled teams and reweight each team's contribution by the inverse of its inclusion probability. This importance sampling correction estimates attention over the full cache, with a sampling budget that lets us trade memory reads for accuracy. Remarkably, with 32 or 64 sampled teams, SANTA++ uses 16% to 22% of dense attention's KV reads and retains 94% to 99% of the dense-attention baseline's scores on LongBench v2 and HELMET's retrieval-augmented generation subset, and 85% to 91% on RULER, with Qwen2.5-7B-Instruct at 32K context. With 31 sampled teams, our GPU implementation delivers a $1.69\times$ attention speedup over the dense FlashAttention baseline at 32K context. By reducing the number of cache entries read, SANTA++ in principle complements architectures with compressed KV representations, such as multi-head latent attention. Our kernels are available at: this https URL . Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.CL). Categorie arXiv: Machine Learning (cs.LG) ; Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.35629 — 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-07T21:27:08.850Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).