Primary Reference Extract & Verification Note — Consulted 15 November 2026 Official URL: https://arxiv.org/abs/2205.14135 1. SRAM Block Tiling & Online Softmax Without Full Matrix Materialization: FlashAttention restructures exact scaled dot-product attention by streaming tiles of Q, K, and V from high-bandwidth GPU memory (HBM) into fast on-chip SRAM and maintaining running softmax normalization statistics (max and sum of exponentials). It avoids writing and reading the full N x N intermediate attention matrix in HBM—not by fitting the entire N x N matrix inside SRAM at once. 2. Complexity & Fidelity Guarantees: FlashAttention computes exact attention (zero approximation error) while reducing HBM memory reads/writes and lowering working activation memory from O(N^2) to O(N), though total floating-point prefill operations remain quadratic O(N^2 * d) in sequence length N.