FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scaling
Not on the map. Why?
Abstract (arXiv)
Attention, as a core layer of the ubiquitous Transformer architecture, is the bottleneck for large language models and long-context applications. While FlashAttention-3 optimized attention for Hopper GPUs through asynchronous execution and warp specialization, it primarily targets the H100 architecture. The AI industry has rapidly transitioned to deploying Blackwell-based systems such as the B200 and GB200, which exhibit fundamentally different performance characteristics due to asymmetric hardware scaling: tensor core throughput doubles while other functional units (shared memory bandwidth, exponential units) scale more slowly or remain unchanged. We develop several techniques to address these shifting bottlenecks on Blackwell GPUs: (1) redesigned pipelines that exploit fully asynchronous MMA operations and larger tile sizes, (2) software-emulated exponential and conditional softmax rescaling that reduces non-matmul operations, and (3) leveraging tensor memory and the 2-CTA MMA mode to reduce shared memory traffic and atomic adds in the backward pass. We demonstrate that our method, FlashAttention-4, achieves up to 1.3× speedup over cuDNN 9.13 and 2.7× over Triton on B200 GPUs with BF16, reaching up to 1613 TFLOPs/s (71% utilization). Beyond algorithmic innovations, we implement FlashAttention-4 entirely in CuTe-DSL embedded in Python, achieving 20-30× faster compile times compared to traditional C++ template-based approaches while maintaining full expressivity.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). Builds on 14 of its 25 references that are in the map. First posted on arXiv 5 Mar 2026.
Builds on
14 of 25 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022Video Diffusion Modelscited by 2,280
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 357
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2024SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Accelerationcited by 158
Built on by
Citing papers per year: 2026: 58.
58 papers.
Sort:
By area:
- 2026AVO: Agentic Variation Operators for Autonomous Evolutionary Searchcited by 19
- 2026LPM 1.0: Video-based Character Performance Modelcited by 11
- 2026Bernini: Latent Semantic Planning for Video Diffusioncited by 11
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modelingcited by 7
- 2026OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantizationcited by 7
- 2026Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attentioncited by 7
- 2026PRTS: A Primitive Reasoning and Tasking System via Contrastive Representationscited by 6
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsificationcited by 6
- 2026Orthrus: Memory-Efficient Parallel Token Generation via Dual-View Diffusioncited by 3
- 2026TriAxialKV: Toward Extreme Low-Precision KV-Cache Quantization for Agentic Inference Taskscited by 3
- 2026ThriftAttention: Selective Mixed Precision for Long-Context FP4 Attentioncited by 3
- 2026VFA: Relieving Vector Operations in Flash Attention with Global Maximum Pre-computationcited by 2
38 more
- 2026FORGE: Fused On-Register Gradient Elimination for Memory-Efficient LLM Trainingcited by 2
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 2
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
- 2026Rank-Factorized Implicit Neural Bias: Scaling Super-Resolution Transformer with FlashAttentioncited by 1
- 2026Ragged Paged Attention: A High-Performance and Flexible LLM Inference Kernel for TPUcited by 1
- 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMscited by 1
- 2026Remember to Forget: Gated Adaptive Positional Encodingcited by 1
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
- 2026HiFA4: Training-Free 4-bit FlashAttention on Ascend HIF4 NPUs for LLM Inferencecited by 1
- 2026CoSA: Accelerating Long-Context Inference via Proxy-Kernel Co-Designed Sparse Attentioncited by 1
- 2026VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attentioncited by 1
- 2026Weaves, Wires, and Morphisms: Formalizing and Implementing the Algebra of Deep Learningcited by 0
- 2026Integrated electro-optic attention nonlinearities for transformerscited by 0
- 2026Nautilus: An Auto-Scheduling Tensor Compiler for Efficient Tiled GPU Kernelscited by 0
- 2026Faster LLM Inference via Sequential Monte Carlocited by 0
- 2026A Few GPUs, A Whole Lotta Scale: Faithful LLM Training Emulation with PrismLLMcited by 0
- 2026The Hitchhiker's Guide to Agentic AI: From Foundations to Systemscited by 0
- 2026Jet-Long: Efficient Long-Context Extension with Dynamic Bifocal RoPEcited by 0
- 2026Native Multi-Dimensional Subquadratic Operators via Input Dependent Long Convolutionscited by 0
- 2026X-Stage: Modeling Post-Issue Backpressure in GPU Communication--Computation Fusioncited by 0
- 2026ROCS: Request-Oriented Compute Sharing for Efficient Large-Scale Recommendationcited by 0
- 2026WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruningcited by 0
- 2026Energy-Efficient LLM Serving via Disaggregated Attention--FFN and Flexible Frequency Scalingcited by 0
- 2026ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inferencecited by 0
- 2026Compute-Optimal Is Not Cluster-Optimal: Systems-Aware Scaling for Sparse Mixture-of-Expertscited by 0
- 2026DFM Mimir v1: An Open HRM Delivering Frontier Performance at 1B Parameters Using Only Permissible Post-Training Datacited by 0
- 2026Subzero matrix completion for sparse data analysis: large-scale learning of latent low-rank structurecited by 0
- 2026Maia 200: A Software Defined Dataflow System for Large-scale AI Accelerationcited by 0
- 2026Redwood: A Frontier AI Accelerator Designed, Verified, and Deployed from Scratch in 2 Weeks by AIcited by 0
- 2026ClusterAttention: A training-free speedup of bidirectional attentioncited by 0
- 2026Almost Free State Prediction Separationcited by 0
- 2026Attention Quantization for Tabular Foundation Modelscited by 0
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Trainingcited by 0
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attentioncited by 0
- 2026Flash-dLLM: IO-Aware KV Caching and Parallel Decoding for Fast, Memory-Efficient Diffusion LLMscited by 0
- 2026Benchmarking Attention for Tabular Foundation Modelscited by 0
- 2026FoldAttention: Declared-Reference Softmax for Fast Decode and Deterministic Backwardcited by 0
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Accelerationcited by 0
50 most cited of 58 All 58 (JSON)
- 2026iCATS: Fast Video Generation via Interaction-Aware Sparse Attention and Timestep-Adaptive Sparsity8 Oct 2026
- 2026A Self-Pruning Transformer: Extreme KV-Cache Compression with Universal Attention6 Oct 2026
- 2026LampAttention: Look-Ahead Mixed-Precision FlashAttention for Dedicated Accelerators30 Sep 2026
- 2026Bongard: Training Machine Intuition30 Sep 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026Pixel-Level Transformers in Remote Sensing: A Canopy Height Case Study29 Sep 2026
- 2026MoRE: Scaling mixture of experts with hardware-aware low-rank routing28 Sep 2026
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Acceleration27 Sep 2026
- 2026FoldAttention: Declared-Reference Softmax for Fast Decode and Deterministic Backward27 Sep 2026
- 2026Benchmarking Attention for Tabular Foundation Models25 Sep 2026
- 2026Flash-dLLM: IO-Aware KV Caching and Parallel Decoding for Fast, Memory-Efficient Diffusion LLMs22 Sep 2026
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention21 Sep 2026
38 more
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Training16 Sep 2026
- 2026VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attention14 Sep 2026
- 2026Attention Quantization for Tabular Foundation Models11 Sep 2026
- 2026Fast Polynomial Transcendentals for LLMs3 Sep 2026
- 2026Almost Free State Prediction Separation3 Sep 2026
- 2026ClusterAttention: A training-free speedup of bidirectional attention27 Aug 2026
- 2026Redwood: A Frontier AI Accelerator Designed, Verified, and Deployed from Scratch in 2 Weeks by AI26 Aug 2026
- 2026Maia 200: A Software Defined Dataflow System for Large-scale AI Acceleration25 Aug 2026
- 2026Subzero matrix completion for sparse data analysis: large-scale learning of latent low-rank structure21 Aug 2026
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving20 Aug 2026
- 2026DFM Mimir v1: An Open HRM Delivering Frontier Performance at 1B Parameters Using Only Permissible Post-Training Data13 Aug 2026
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution12 Aug 2026
- 2026Compute-Optimal Is Not Cluster-Optimal: Systems-Aware Scaling for Sparse Mixture-of-Experts11 Aug 2026
- 2026ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inference3 Aug 2026
- 2026Energy-Efficient LLM Serving via Disaggregated Attention--FFN and Flexible Frequency Scaling3 Aug 2026
- 2026WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning30 Jul 2026
- 2026ROCS: Request-Oriented Compute Sharing for Efficient Large-Scale Recommendation30 Jul 2026
- 2026CoSA: Accelerating Long-Context Inference via Proxy-Kernel Co-Designed Sparse Attention28 Jul 2026
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsification27 Jul 2026
- 2026X-Stage: Modeling Post-Issue Backpressure in GPU Communication--Computation Fusion25 Jul 2026
- 2026Jet-Long: Efficient Long-Context Extension with Dynamic Bifocal RoPE8 Jul 2026
- 2026Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention5 Jul 2026
- 2026HiFA4: Training-Free 4-bit FlashAttention on Ascend HIF4 NPUs for LLM Inference5 Jul 2026
- 2026Native Multi-Dimensional Subquadratic Operators via Input Dependent Long Convolutions1 Jul 2026
- 2026The Hitchhiker's Guide to Agentic AI: From Foundations to Systems22 Jun 2026
- 2026FORGE: Fused On-Register Gradient Elimination for Memory-Efficient LLM Training22 Jun 2026
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents4 Jun 2026
- 2026ThriftAttention: Selective Mixed Precision for Long-Context FP4 Attention21 May 2026
- 2026Bernini: Latent Semantic Planning for Video Diffusion21 May 2026
- 2026OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantization18 May 2026
- 2026TriAxialKV: Toward Extreme Low-Precision KV-Cache Quantization for Agentic Inference Tasks16 May 2026
- 2026A Few GPUs, A Whole Lotta Scale: Faithful LLM Training Emulation with PrismLLM15 May 2026
- 2026Orthrus: Memory-Efficient Parallel Token Generation via Dual-View Diffusion12 May 2026
- 2026Remember to Forget: Gated Adaptive Positional Encoding11 May 2026
- 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMs8 May 2026
- 2026PRTS: A Primitive Reasoning and Tasking System via Contrastive Representations30 Apr 2026
- 2026Faster LLM Inference via Sequential Monte Carlo17 Apr 2026
- 2026Ragged Paged Attention: A High-Performance and Flexible LLM Inference Kernel for TPU16 Apr 2026
50 newest of 58 All 58 (JSON)
- 2026OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantizationcited by 7
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
- 2026Ragged Paged Attention: A High-Performance and Flexible LLM Inference Kernel for TPUcited by 1
- 2026Faster LLM Inference via Sequential Monte Carlocited by 0
- 2026Energy-Efficient LLM Serving via Disaggregated Attention--FFN and Flexible Frequency Scalingcited by 0
- 2026ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inferencecited by 0
- 2026Flash-dLLM: IO-Aware KV Caching and Parallel Decoding for Fast, Memory-Efficient Diffusion LLMscited by 0
- 2026FoldAttention: Declared-Reference Softmax for Fast Decode and Deterministic Backwardcited by 0
- 2026A Self-Pruning Transformer: Extreme KV-Cache Compression with Universal Attentioncited by 0
- 2026A Self-Pruning Transformer: Extreme KV-Cache Compression with Universal Attention6 Oct 2026
- 2026FoldAttention: Declared-Reference Softmax for Fast Decode and Deterministic Backward27 Sep 2026
- 2026Flash-dLLM: IO-Aware KV Caching and Parallel Decoding for Fast, Memory-Efficient Diffusion LLMs22 Sep 2026
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving20 Aug 2026
- 2026ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inference3 Aug 2026
- 2026Energy-Efficient LLM Serving via Disaggregated Attention--FFN and Flexible Frequency Scaling3 Aug 2026
- 2026OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantization18 May 2026
- 2026Faster LLM Inference via Sequential Monte Carlo17 Apr 2026
- 2026Ragged Paged Attention: A High-Performance and Flexible LLM Inference Kernel for TPU16 Apr 2026
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsificationcited by 6
- 2026Orthrus: Memory-Efficient Parallel Token Generation via Dual-View Diffusioncited by 3
- 2026VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attentioncited by 1
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Trainingcited by 0
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Training16 Sep 2026
- 2026VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attention14 Sep 2026
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsification27 Jul 2026
- 2026Orthrus: Memory-Efficient Parallel Token Generation via Dual-View Diffusion12 May 2026
- 2026The Hitchhiker's Guide to Agentic AI: From Foundations to Systems22 Jun 2026
- 2026Bernini: Latent Semantic Planning for Video Diffusion21 May 2026
- 2026LPM 1.0: Video-based Character Performance Modelcited by 11
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modelingcited by 7
- 2026Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attentioncited by 7
- 2026ThriftAttention: Selective Mixed Precision for Long-Context FP4 Attentioncited by 3
- 2026VFA: Relieving Vector Operations in Flash Attention with Global Maximum Pre-computationcited by 2
- 2026FORGE: Fused On-Register Gradient Elimination for Memory-Efficient LLM Trainingcited by 2
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 2
- 2026Rank-Factorized Implicit Neural Bias: Scaling Super-Resolution Transformer with FlashAttentioncited by 1
- 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMscited by 1
- 2026Remember to Forget: Gated Adaptive Positional Encodingcited by 1
- 2026HiFA4: Training-Free 4-bit FlashAttention on Ascend HIF4 NPUs for LLM Inferencecited by 1
- 2026CoSA: Accelerating Long-Context Inference via Proxy-Kernel Co-Designed Sparse Attentioncited by 1
12 most cited of 36 All 36 (JSON)
- 2026iCATS: Fast Video Generation via Interaction-Aware Sparse Attention and Timestep-Adaptive Sparsity8 Oct 2026
- 2026LampAttention: Look-Ahead Mixed-Precision FlashAttention for Dedicated Accelerators30 Sep 2026
- 2026Bongard: Training Machine Intuition30 Sep 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026Pixel-Level Transformers in Remote Sensing: A Canopy Height Case Study29 Sep 2026
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Acceleration27 Sep 2026
- 2026Benchmarking Attention for Tabular Foundation Models25 Sep 2026
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention21 Sep 2026
- 2026Attention Quantization for Tabular Foundation Models11 Sep 2026
- 2026Fast Polynomial Transcendentals for LLMs3 Sep 2026
- 2026Almost Free State Prediction Separation3 Sep 2026
- 2026ClusterAttention: A training-free speedup of bidirectional attention27 Aug 2026
12 newest of 36 All 36 (JSON)