FSA: An Alternative Efficient Implementation of Native Sparse Attention Kernel
Ran YanYouhe JiangZhuoming ChenHaohui MaiBeidi ChenBinhang Yuan
Ran Yan
Youhe Jiang
Zhuoming Chen
Haohui Mai
Beidi Chen
Binhang Yuan
+6
This paper introduces Flash Sparse Attention (FSA), an alternative kernel implementation of the Native Sparse Attention (NSA) mechanism. FSA addresses a limitation of the vanilla NSA kernel, whose loop order is efficient only when each Grouped Query Attention group has many query heads, which most modern LLMs do not have. FSA makes NSA computation efficient across popular LLMs with varied, smaller query-head counts on modern GPUs. Empirically, FSA achieves up to 3.5x and on average 1.6x kernel-level latency reduction, up to 1.25x and 1.09x on average end-to-end training speedup, and up to 1.36x and 1.11x on average prefill-phase speedup in inference, compared to vanilla NSA.

OpenReview ·
· September 17, 2025