FlashAttention 2's Top 3 Algorithmic Innovations

FlashAttention-2's significant performance gains result from three key optimizations: reducing non-matrix multiplication FLOPs, implementing sequence-length parallelism to boost GPU Streaming Multiprocessor (SM) occupancy, and switching the warp layout from 'split-K' to 'split-Q' to minimize inter-warp shared memory communication.

Sources

Open the full topic