HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs
- ID: 0a7b26f9
- 原文链接: https://arxiv.org/abs/2611.26363
- PDF: https://arxiv.org/pdf/2611.26363v1
- 作者: Ambroise Borbely, Mathieu Salzmann, Olivier Verscheure
- 日期: 2026-11-19
- 更新: 2026-11-19
- 分类: models
- 来源类型: paper
- 标签: models, attention, sparsity, efficiency
- 质量评分: 4/5
- 抓取时间: 2026-11-22T00:02:11Z
中文导读
注意力打分要对每个查询和每个键做完整点积,HiSA(Hidden Sparse Attention)追问这件事是否必须做满:它保留查询与键投影不变,只按 token 位置给定的静态免参数规则计算部分点积,把稀疏化做在隐藏特征维度而非 token 维度,这条轴几乎没人碰;基于 RoPE 的结构,键和查询被分解出可在注意力中省略的部分;从零训练的 LLM 显示:只算约三分之一的查询-键乘积不仅不掉点,性能反而更好;推理阶段解码更快, 显存更省,并扩展出 FlashAttention-3 训练与推理内核;作者还证明稠密注意力本身学到的就是压制 HiSA 丢弃的那些打分成分;代码已开源
为什么值得关注
HiSA 把稀疏注意力做进隐藏特征维度:只算三分之一查询-键乘积反而涨点,解码更快显存更省
以上判断锚定论文摘要本身,具体数字与说法可在下方 English Abstract 中对照验证。
关键信息
- 论文标题:HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs
- 作者:Ambroise Borbely, Mathieu Salzmann, Olivier Verscheure
- arXiv:https://arxiv.org/abs/2611.26363
- 发布时间:2026-11-19
- arXiv 分类:cs.LG, cs.CL
- 关联标签:models, attention, sparsity, efficiency
English 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. 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.
English Summary
HiSA (Hidden Sparse Attention) questions whether attention in LLMs needs the full query-key dot product. It keeps query and key projections intact but computes only a partial dot product under a static, parameter-free rule set by token positions: sparsity along the hidden feature dimension, an axis largely unexplored compared with token-level sparsity. Building on the structure of rotary position embeddings (RoPE), keys and queries are decomposed into parts that can be omitted during attention. Training LLMs from scratch with HiSA shows the partial product does not hurt but improves performance while computing about a third of the query-key products; inference gets faster decoding and smaller memory footprint, with extensions to FlashAttention-3 kernels. Dense attention is shown to learn suppressing exactly the score components HiSA drops. Code is public.
Obsidian Notes
- 内容由
opencli arxiv paper拉取 arXiv 元数据与摘要生成。 - 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。