FlashAttention, leveraging online softmax, reduces attention mechanism's memory complexity from O(N²) to O(N) and can decrease High-Bandwidth Memory (HBM) traffic by approximately 33x for typical configurations (e.g., N=4096, d=128), making long-context LLMs practical.