Core Optimization: Memory Bandwidth vs. FLOPs Reduction

FlashAttention optimizes GPU memory I/O by tiling computations to fit in fast SRAM, drastically reducing data transfers to slower High Bandwidth Memory (HBM) while performing the exact same attention calculation. In contrast, Sparse Attention directly reduces FLOPs by computing interactions for only a subset of token pairs, thereby approximating the full attention mechanism.

Sources

Open the full topic