Chiosa
Machine Learning

HiSA cuts attention computation while preserving language-model loss

HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs · arXiv:2611.26363

2 min
Updated
Dense attention computes every part (left); token-sparse attention drops whole keys (centre). HiSA keeps a part only while its rotation induced by RoPE is below an angle budget Φ: nearby keys are…
Dense attention computes every part (left); token-sparse attention drops whole keys (centre). HiSA keeps a part only while its rotation induced by RoPE is below an angle budget Φ: nearby keys are compared on all pairs, farther keys only on the slow ones, so attention becomes…Figure 1 · HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs · Ambroise Borbely et al. · CC BY 4.0

In plain words

Language models use attention to compare each token with earlier tokens. Hidden Sparse Attention (HiSA) asks whether every feature in each comparison is needed. It drops some feature-pair contributions when position rotations pass a set angle, while leaving the query and key projections unchanged.

In 135M-parameter models trained on web text with 4K context, HiSA had slightly lower validation loss than dense attention while calculating 29.3% of its query, key dot-product work. The result is limited to the tested models and data.

The research

Language models spend substantial calculation comparing tokens through attention. The result changes the expectation that every feature contribution must be computed for those comparisons: in the tested small models, a fixed position-based rule cut that work while slightly lowering validation loss. That makes partial attention a credible efficiency direction within these model and text settings.

Hidden Sparse Attention drops position-dependent parts of language-model attention scores, and small-model tests found lower validation loss with far fewer dot-product calculations.

Researchers trained separate 135M-parameter models on the same web-text recipe at 4K context, changing the attention rule. HiSA’s mean next-token validation loss was 2.880 versus 2.906 for dense attention, even though it computed 29.3% of the dense query–key multiply-adds in a full causal pass.

A longer-context extension also favored HiSA on both book and web-text validation data. Together, these results show that the tested partial scores preserved, and in these comparisons slightly improved, validation performance while reducing counted calculations.

The results are preliminary tests of 135M- and 360M-parameter models, mainly on web text and book text. Larger models, downstream tasks, and improved kernels remain untested in this work.

What the evidence shows

  • A different kind of sparsity

    Hidden Sparse Attention (HiSA) is an attention method that computes only some feature-pair contributions to each query–key score. In rotary position embeddings, pairs rotate at different frequencies as token distance grows.

    HiSA drops a pair’s contribution once that rotation passes a fixed angle, leaving the query and key projections unchanged. The paper’s central question is whether this position-based rule can reduce calculation while retaining useful language-model performance.

  • The deciding comparison

    In the matched 135M-model, 4K OpenWebText comparison, HiSA achieved lower validation loss while computing only part of the dense attention dot products. This supports the method in that training setup, but the models began from separate starting states.

  • What dense attention learns

    In this diagnostic, many fast-pair score parts at large rotations moved attention-layer outputs less than an unrelated-key reference did. That pattern is consistent with dense models suppressing some contributions HiSA drops, although the first layer was an exception.

  • Testing another explanation

    The rescaled control had nearly the same validation loss as standard HiSA, so the advantage in this one-seed, 135M-model, 4K-context test was not explained solely by the smaller scale of distant scores.

    Because this control used a distinct training setup, it does not resolve every explanation for the main comparison.

  • A longer-context check

    After models were extended from 4K to 16K context using PG19 books and OpenWebText, HiSA had lower validation loss on each dataset than dense attention. This supports the approach in that specific 135M-model extension setting, without establishing the same result on other long-context data or tasks.

Deep

Next paperA queueing system follows changing capacity in LLM serving