The "IO-Aware" Secret: Tiling, Recomputation, and Kernel Fusion

FlashAttention's breakthrough lies in its "IO-aware" design, which employs tiling to process attention in small SRAM blocks, strategic recomputation to avoid storing large intermediate matrices, and kernel fusion, all to minimize slow High Bandwidth Memory (HBM) access.

Sources

Open the full topic