Metraipolis › archive › dc_4c31d2054dcf
Attention via Black-Box Vector Search — arXiv:2610.10135
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.10135
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T12:37:19.321Z
- SHA-256 of the archived text
01ca873d89a8ed6d881c9f725beec14753d747f88277a4c1dc0d346a6c70a07d- Stable URL of this page
https://metraipolis.com/documento/dc_4c31d2054dcf
How to cite
Attention via Black-Box Vector Search — arXiv:2610.10135 — arXiv (en), https://arxiv.org/abs/2610.10135 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4c31d2054dcf (Metraipolis archive dc_4c31d2054dcf, sha256 01ca873d89a8ed6d881c9f725beec14753d747f88277a4c1dc0d346a6c70a07d)
BibTeX
@misc{dc4c31d2054dcf,
title = {Attention via Black-Box Vector Search — arXiv:2610.10135},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.10135},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4c31d2054dcf; sha256 01ca873d89a8ed6d881c9f725beec14753d747f88277a4c1dc0d346a6c70a07d},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.10135. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Sparse attention mechanisms estimate attention over $n$ tokens using a small subset of keys. Many existing approaches use maximum inner product search (MIPS) to retrieve the heaviest keys, which motivates the following question: given black-box access to a MIPS oracle, how many keys must be retrieved to output an $\varepsilon$-accurate attention estimate? We answer this question by unifying prior approaches through the framework of priority sampling. With a single MIPS index, we show that $\Theta(\sqrt{n}/\varepsilon)$ retrieved keys are both sufficient and necessary. With $\Theta(\log n)$ indices, we give an algorithm that retrieves only $O(\log n+1/\varepsilon^2)$ keys and prove that this is near-optimal. More generally, we design algorithms that establish a smooth tradeoff between the number of MIPS indices and number of retrieved keys. We then show that if we allow augmentation of keys and queries, we can bypass the above lower bounds: there exists a simple priority-sampling estimator using a single MIPS index and $O(1/\varepsilon^2)$ retrieved keys. When integrated into LLM inference, our algorithms outperform top-$k$ and sampling approaches used in prior work and yield attention approximation that scales favorably to long contexts.
Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.LG, nuovi lavori del giorno).
Categorie arXiv: Data Structures and Algorithms (cs.DS) ; Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2610.10135 — 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-08T12:14:15.445Z dalla pagina https://arxiv.org/list/cs.LG/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).