Metraipolis › archive › dc_9369d3032dd4

Block Sparse Attention with Log-Linear Complexity — arXiv:2609.31093

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.31093
License (as archived)
CC0-1.0
Archived
2026-10-08T02:13:07.186Z
SHA-256 of the archived text
869a9f06858c4403e4d73135f32d71b2ae6785763c2255293ff5a882d3500be6
Stable URL of this page
https://metraipolis.com/documento/dc_9369d3032dd4

How to cite

Block Sparse Attention with Log-Linear Complexity — arXiv:2609.31093 — arXiv (en), https://arxiv.org/abs/2609.31093 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9369d3032dd4 (Metraipolis archive dc_9369d3032dd4, sha256 869a9f06858c4403e4d73135f32d71b2ae6785763c2255293ff5a882d3500be6)
BibTeX
@misc{dc9369d3032dd4,
  title = {Block Sparse Attention with Log-Linear Complexity — arXiv:2609.31093},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.31093},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9369d3032dd4; sha256 869a9f06858c4403e4d73135f32d71b2ae6785763c2255293ff5a882d3500be6},
  year = {2026}
}

Archived text

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

Scaling language models to long contexts is limited by the quadratic cost of self-attention. Block sparse attention offers an efficient alternative, but selecting the retained blocks remains a bottleneck. Conventional block selection requires scoring all query-block pairs and therefore remains quadratic in sequence length. To address this issue, we propose PISA, a block-sparse attention mechanism that employs a pyramid Top-$K$ selection strategy. The main idea is to gradually narrow down the candidates across different levels, making it more efficient to find the most relevant keys. Specifically, we construct a coarse-to-fine hierarchy of keys and perform selection from the coarsest level. At each level, LogSumExp scoring is applied to a bounded candidate set to select candidates for the next finer level, continuing until the finest level is reached. Through pooling, we construct $O(\log N)$ levels of keys, yielding an overall complexity of $O(N\log N)$, where $N$ denotes the sequence length. We develop hardware-aware Triton kernels for both training and inference, fusing hierarchical routing and LogSumExp scoring without materializing the query-key score matrix. We further evaluate our method on language modeling tasks. Compared with the baseline, our method achieves comparable performance on benchmarks such as commonsense reasoning while delivering better results on retrieval tasks.

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