Metraipolis › archive › dc_b215b53f9cf5

NearFormer: Linear-Size Sparse Attention via Randomized Near Neighbors — arXiv:2611.12186

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.12186
License (as archived)
CC0-1.0
Archived
2026-11-10T18:43:59.071Z
SHA-256 of the archived text
117d20ed4289f6164a70d24f68c0b8fa7d9dbbdd4a0f76cfa917da833f93e8ea
Stable URL of this page
https://metraipolis.com/documento/dc_b215b53f9cf5

How to cite

NearFormer: Linear-Size Sparse Attention via Randomized Near Neighbors — arXiv:2611.12186 — arXiv (en), https://arxiv.org/abs/2611.12186 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b215b53f9cf5 (Metraipolis archive dc_b215b53f9cf5, sha256 117d20ed4289f6164a70d24f68c0b8fa7d9dbbdd4a0f76cfa917da833f93e8ea)
BibTeX
@misc{dcb215b53f9cf5,
  title = {NearFormer: Linear-Size Sparse Attention via Randomized Near Neighbors — arXiv:2611.12186},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.12186},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b215b53f9cf5; sha256 117d20ed4289f6164a70d24f68c0b8fa7d9dbbdd4a0f76cfa917da833f93e8ea},
  year = {2026}
}

Archived text

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

Graph transformers can capture long-range interactions, but their quadratic attention cost limits their use on large graphs. We introduce \emph{NearFormer}, a graph transformer whose global attention is restricted to a randomized near-neighbor (NN) graph. NearFormer uses an efficient randomized construction to connect each node to a small number of near neighbors from a broader neighborhood defined by a label-independent feature or spectral geometry. For a fixed retained budget \(k\), the resulting attention support has linear size \(\mathcal{O}(|E|+nk)\). The NN graph is built once by within-bin search and then held fixed. We use these edges as sparse global-attention supports, with optional learned attention biases, while preserving the original graph for local message passing. Experiments on long-range graph benchmarks and synthetic structural tasks show that NearFormer provides a favorable accuracy--scalability trade-off relative to local message passing, dense and sparse attention.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2611.12186 — 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-11-10T18:37:37.684Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).