FlashAttention-2
An efficient attention computation algorithm that reduces memory access through tiling and recomputation, and is a mainstream attention implementation in long-context LLM inference.
Core Facts
Timeline (last 90 days)
KVSeal achieves up to a 1.27x speedup in decoding attention compared with FlashAttention-2.
ZenMargin's throughput is 4.0-4.4 times that of FlashAttention-2 and 1.5-1.6 times that of SageAttention2++, and it is also faster than FlashInfer NVFP4.
At a 32K context length, WavePrune achieves 1.15× prefill speedup and 1.24× decoding speedup compared to FlashAttention-2.
FlashAttention-2 has been measured to increase Transformer training speed by 2–4×
All Facts (5)
The core innovation of FlashAttention is to reduce the memory access complexity of standard attention computation from O(N²) to near-linear by controlling the data transfer pattern between the GPU's SRAM and HBM
90%UnverifiedKVSeal achieves up to a 1.27x speedup in decoding attention compared with FlashAttention-2.
50%UnverifiedZenMargin's throughput is 4.0-4.4 times that of FlashAttention-2 and 1.5-1.6 times that of SageAttention2++, and it is also faster than FlashInfer NVFP4.
50%UnverifiedAt a 32K context length, WavePrune achieves 1.15× prefill speedup and 1.24× decoding speedup compared to FlashAttention-2.
50%UnverifiedFlashAttention-2 has been measured to increase Transformer training speed by 2–4×
50%