VFA: Relieving Vector Operations in Flash Attention with Global Maximum Pre-computation
Not on the map. Why?
Abstract (arXiv)
FlashAttention-style online softmax enables exact attention computation with linear memory by streaming score tiles through on-chip memory and maintaining a running maximum and normalizer. However, as attention kernels approach peak tensor-core/cube-core throughput on modern accelerators, non-matmul components of online softmax -- especially per-tile rowmax and rowsum reductions and rescale chains -- can become vector or SIMD limited and dominate latency. This paper revisits FlashAttention and proposes Vector Relieved Flash Attention (VFA), a hardware-friendly method that reduces rowmax-driven updates of the running maximum while retaining the online-softmax structure. VFA initializes the running maximum via a cheap approximation from key-block representations, reorders key-block traversal to prioritize high-impact sink and local blocks, and freezes the maximum for remaining blocks to avoid repeated reductions and rescaling. We further integrate VFA with block-sparse skipping methods such as BLASST to form Vector Relieved Sparse Attention (VSA), which reduces both block count and per-block overhead. Notably, VFA and VSA completely avoid the conditional rescale operation in the update stage used in FA4.0. Extensive evaluations on benchmarks including MMLU and MATH500, together with attention statistics, verify our design: (i) sink and local reordering stabilizes the running maximum early; (ii) simple Q and K block summaries fail due to intra-block heterogeneity; (iii) m-initialization is required when maxima appear in middle blocks. Overall, VFA and VSA efficiently alleviate online-softmax reduction bottlenecks without performance loss. Compared to the C16V32 baseline, C8V32, C4V32 and C4V16 achieve nearly two times speedup on modern hardware while hitting the vector bottleneck. With upcoming architecture improvements, C4V16 will deliver six times speedup by enhancing exponent capacity.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 27 of its 28 references that are in the map. First posted on arXiv 14 Apr 2026.
Builds on
27 of 28 references.
References · 27
- 2017Attention Is All You Needcited by 60,361
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Rethinking Attention with Performerscited by 1,601
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
15 more
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
- 2018Online normalizer calculation for softmaxcited by 162
- 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 120
- 2025Pretraining Large Language Models with NVFP4cited by 76
- 2023FlashDecoding++: Faster Large Language Model Inference on GPUscited by 71
- 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 66
- 2023FasterViT: Fast Vision Transformers with Hierarchical Attentioncited by 65
- 2025Training LLMs with MXFP4cited by 37
- 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 29
- 2025Efficient Attention Mechanisms for Large Language Models: A Surveycited by 22
- 2025BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholdingcited by 13
- 2026HiFloat4 Format for Language Model Inferencecited by 11
- 2025FLASH-D: FlashAttention with Hidden Softmax Divisioncited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.