FlashAttention: I/O-Aware Tiling & Online Softmax

FlashAttention uses I/O-aware tiling to break attention computation into blocks that fit GPU on-chip SRAM, combined with an online softmax that computes normalization incrementally, avoiding large intermediate matrices.

Sources

Open the full topic