HiSA
An efficient attention method that achieves static sparsification along the hidden dimension of RoPE attention, reducing computation by calculating only a subset of dot products while maintaining or improving model performance.
Timeline (last 90 days)
HiSA (Hidden Sparse Attention) is a sparsified attention mechanism whose core is to keep the query and key projections unchanged but compute only a subset of the dot products, where the rule for this subset is static, parameter-free, and determined by token position.
HiSA trained LLMs from scratch and found that this partial dot product not only did not harm performance but actually improved it compared with the full dot product, while computing only about one-third of the query-key products.
HiSA is able to statically decide by position which hidden dimensions to omit because RoPE encodes positional information into every pair of query/key dimensions: different positions correspond to different rotation angles, making the partial dot products on certain dimensions less sensitive to position and thus safe to omit.
At inference time, HiSA improves decoding speed and reduces memory footprint.
The study shows that dense attention learns to suppress the portions of attention scores that HiSA discards.
The team extended HiSA to FlashAttention-3 kernels, supporting both training and inference.
Integrating HiSA into the FlashAttention-3 kernel means the sparsity rule must be compatible with the tiling schedule: the omitted hidden dimensions need to be expressed at the granularity of tile loading and matrix multiplication so as not to break the kernel's pipeline efficiency.
Almost all sparse attention methods focus on the token dimension—skipping interactions between certain tokens; HiSA instead chooses the hidden dimension, a less-explored direction.
HiSA's static sparsity rule may complement other dynamic sparsity methods, further pushing the efficiency frontier of LLMs.
All Facts (9)
HiSA (Hidden Sparse Attention) is a sparsified attention mechanism whose core is to keep the query and key projections unchanged but compute only a subset of the dot products, where the rule for this subset is static, parameter-free, and determined by token position.
50%UnverifiedHiSA trained LLMs from scratch and found that this partial dot product not only did not harm performance but actually improved it compared with the full dot product, while computing only about one-third of the query-key products.
50%UnverifiedHiSA is able to statically decide by position which hidden dimensions to omit because RoPE encodes positional information into every pair of query/key dimensions: different positions correspond to different rotation angles, making the partial dot products on certain dimensions less sensitive to position and thus safe to omit.
50%UnverifiedAt inference time, HiSA improves decoding speed and reduces memory footprint.
50%UnverifiedThe study shows that dense attention learns to suppress the portions of attention scores that HiSA discards.
50%UnverifiedThe team extended HiSA to FlashAttention-3 kernels, supporting both training and inference.
50%UnverifiedIntegrating HiSA into the FlashAttention-3 kernel means the sparsity rule must be compatible with the tiling schedule: the omitted hidden dimensions need to be expressed at the granularity of tile loading and matrix multiplication so as not to break the kernel's pipeline efficiency.
50%UnverifiedAlmost all sparse attention methods focus on the token dimension—skipping interactions between certain tokens; HiSA instead chooses the hidden dimension, a less-explored direction.
50%UnverifiedHiSA's static sparsity rule may complement other dynamic sparsity methods, further pushing the efficiency frontier of LLMs.
50%