HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs

Ambroise Borbely, Mathieu Salzmann, Olivier Verscheure
11/19/2026
cs.LGcs.CL

Official code: ambroise-b/hisa (0 stars, Python, Apache-2.0, last commit 2026-11-20).

Abstract

Attention in large language models (LLMs) scores every query against every key with a full dot product. We investigate whether this dot product must be computed completely for attention to be effective.

Show full abstract

We propose Hidden Sparse Attention (HiSA), which keeps the query and key projections intact but only computes a partial dot product, following a static, parameter-free rule set by the token positions: attention becomes sparse in the hidden (feature) dimension, an axis much less explored than token sparsity, rather than over tokens as in almost all sparse attention methods. Based on the structure of rotary position embeddings (RoPE), we decompose keys and queries into parts which can be omitted when computing attention. By training LLMs from scratch with HiSA, we find that this partial dot product does not hurt but improves performance compared with the complete product while computing only about a third of the query-key products. During inference HiSA improves decoding speed and shrinks memory footprint. We also extend HiSA to FlashAttention-3 kernels for training and inference. Finally, we motivate our approach by showing that dense attention learns to suppress the attention score parts that HiSA drops. Code is available at https://github.com/ambroise-b/hisa.

View on arXivView PDF

Code Implementations(1)

ambroise-b/hisaOfficial100%
Apache-2.0
00Python, ShellNov 19, 20261 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{borbely2026hisa,
  title  = {HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs},
  author = {Ambroise Borbely and Mathieu Salzmann and Olivier Verscheure},
  year   = {2026},
  eprint = {2611.26363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.26363v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.26363.svg)](https://codeofpaper.com/paper/2611.26363)

Discussion