Generalized Neighborhood Attention: Multi-dimensional Sparse Attention at the Speed of Light
Not on the map. Why?
Abstract (arXiv)
Many sparse attention mechanisms such as Neighborhood Attention have typically failed to consistently deliver speedup over the self attention baseline. This is largely due to the level of complexity in attention infrastructure, and the rapid evolution of AI hardware architecture. At the same time, many state-of-the-art foundational models, particularly in computer vision, are heavily bound by attention, and need reliable sparsity to escape the O(n^2) complexity. In this paper, we study a class of promising sparse attention mechanisms that focus on locality, and aim to develop a better analytical model of their performance improvements. We first introduce Generalized Neighborhood Attention (GNA), which can describe sliding window, strided sliding window, and blocked attention. We then consider possible design choices in implementing these approaches, and create a simulator that can provide much more realistic speedup upper bounds for any given setting. Finally, we implement GNA on top of a state-of-the-art fused multi-headed attention (FMHA) kernel designed for the NVIDIA Blackwell architecture in CUTLASS. Our implementation can fully realize the maximum speedup theoretically possible in many perfectly block-sparse cases, and achieves an effective utilization of 1.3 petaFLOPs/second in FP16. In addition, we plug various GNA configurations into off-the-shelf generative models, such as Cosmos-7B, HunyuanVideo, and FLUX, and show that it can deliver 28% to 46% end-to-end speedup on B200 without any fine-tuning. We will open source our simulator and Blackwell kernels directly through the NATTEN project.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 47 of its 56 references that are in the map. First posted on arXiv 23 Apr 2025.
Builds on
47 of 56 references.
References · 47
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2023Segment Anythingcited by 8,234
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Mistral 7Bcited by 3,164
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023VBench: Comprehensive Benchmark Suite for Video Generative Modelscited by 1,822
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
35 more
- 2024HunyuanVideo: A Systematic Framework For Large Video Generative Modelscited by 1,660
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 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
- 2022Token Merging: Your ViT But Fastercited by 1,021
- 2023GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignmentcited by 972
- 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 890
- 2025Cosmos World Foundation Model Platform for Physical AIcited by 864
- 2018Image Transformercited by 772
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2022MANIQA: Multi-dimension Attention Network for No-Reference Image Quality Assessmentcited by 522
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2022OneFormer: One Transformer to Rule Universal Image Segmentationcited by 328
- 2022Neighborhood Attention Transformercited by 239
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2025Sparse VideoGen: Accelerating Video Diffusion Transformers with Spatial-Temporal Sparsitycited by 217
- 2018Online normalizer calculation for softmaxcited by 162
- 2019Blockwise Self-Attention for Long Document Understandingcited by 159
- 2021Self-attention Does Not Need O(n2) Memorycited by 154
- 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 137
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
- 2025Fast Video Generation with Sliding Tile Attentioncited by 128
- 2024Scalable High-Resolution Pixel-Space Image Synthesis with Hourglass Diffusion Transformerscited by 118
- 2022Dilated Neighborhood Attention Transformercited by 64
- 2025Command A: An Enterprise-Ready Large Language Modelcited by 59
- 2022Efficient Image Generation with Variadic Attention Headscited by 17
- 2022Dynamic N:M Fine-grained Structured Sparse Attention Mechanismcited by 14
- 2024Faster Neighborhood Attention: Reducing the O(n^2) Cost of Self Attention at the Threadblock Levelcited by 14
- 2025Ultra-Resolution Adaptation with Easecited by 13
- 2025WeatherMesh-3: Fast and accurate operational global weather forecastingcited by 4
Built on by
Citing papers per year: 2025: 8; 2026: 10.
18 papers.
Sort:
By area:
- 2025World Simulation with Video Foundation Models for Physical AIcited by 200
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attentioncited by 104
- 2025AnyUp: Universal Feature Upsamplingcited by 28
- 2025JAFAR: Jack up Any Feature at Any Resolutioncited by 21
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Trainingcited by 19
- 2026Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attentioncited by 12
- 2026Efficient Video Diffusion Models: Advancements and Challengescited by 7
- 2025NAF: Zero-Shot Feature Upsampling via Neighborhood Attention Filteringcited by 6
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2026SnapGen++: Unleashing Diffusion Transformers for Efficient High-Fidelity Image Generation on Edge Devicescited by 3
- 2026SurGe: Improved Surface Geometry in Point Mapscited by 2
- 2025Hilbert-Guided Sparse Local Attentioncited by 1
6 more
- 2026Le-DETR: Revisiting Real-Time Detection Transformer with Efficient Encoder Designcited by 1
- 2026ViT-Up: Faithful Feature Upsampling for Vision Transformerscited by 0
- 2026Scaling Storm-Resolving Atmospheric AI Simulation to the Entire Planetcited by 0
- 2026SCOPE: Subspace Clustering with Online Per-Head Top-K Estimation for Sparse Video Attentioncited by 0
- 2026Backend-Agnostic Sparse Attention for Fast High-Resolution Visual Generationcited by 0
- 2026High-Throughput Generative Video Super-Resolution on a Single Consumer GPUcited by 0
- 2026High-Throughput Generative Video Super-Resolution on a Single Consumer GPU9 Oct 2026
- 2026Backend-Agnostic Sparse Attention for Fast High-Resolution Visual Generation6 Oct 2026
- 2026SCOPE: Subspace Clustering with Online Per-Head Top-K Estimation for Sparse Video Attention13 Aug 2026
- 2026Scaling Storm-Resolving Atmospheric AI Simulation to the Entire Planet30 Jun 2026
- 2026ViT-Up: Faithful Feature Upsampling for Vision Transformers12 Jun 2026
- 2026SurGe: Improved Surface Geometry in Point Maps29 May 2026
- 2026Efficient Video Diffusion Models: Advancements and Challenges17 Apr 2026
- 2026Le-DETR: Revisiting Real-Time Detection Transformer with Efficient Encoder Design24 Feb 2026
- 2026Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention4 Feb 2026
- 2026SnapGen++: Unleashing Diffusion Transformers for Efficient High-Fidelity Image Generation on Edge Devices13 Jan 2026
- 2025NAF: Zero-Shot Feature Upsampling via Neighborhood Attention Filtering23 Nov 2025
- 2025Hilbert-Guided Sparse Local Attention8 Nov 2025
6 more
- 2025World Simulation with Video Foundation Models for Physical AI28 Oct 2025
- 2025AnyUp: Universal Feature Upsampling14 Oct 2025
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Training1 Sep 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025JAFAR: Jack up Any Feature at Any Resolution10 Jun 2025
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attention19 May 2025
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attentioncited by 104
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Trainingcited by 19
- 2026Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attentioncited by 12
- 2026Efficient Video Diffusion Models: Advancements and Challengescited by 7
- 2026SnapGen++: Unleashing Diffusion Transformers for Efficient High-Fidelity Image Generation on Edge Devicescited by 3
- 2026SCOPE: Subspace Clustering with Online Per-Head Top-K Estimation for Sparse Video Attentioncited by 0
- 2026Backend-Agnostic Sparse Attention for Fast High-Resolution Visual Generationcited by 0
- 2026High-Throughput Generative Video Super-Resolution on a Single Consumer GPUcited by 0
- 2026High-Throughput Generative Video Super-Resolution on a Single Consumer GPU9 Oct 2026
- 2026Backend-Agnostic Sparse Attention for Fast High-Resolution Visual Generation6 Oct 2026
- 2026SCOPE: Subspace Clustering with Online Per-Head Top-K Estimation for Sparse Video Attention13 Aug 2026
- 2026Efficient Video Diffusion Models: Advancements and Challenges17 Apr 2026
- 2026Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention4 Feb 2026
- 2026SnapGen++: Unleashing Diffusion Transformers for Efficient High-Fidelity Image Generation on Edge Devices13 Jan 2026
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Training1 Sep 2025
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attention19 May 2025
- 2025World Simulation with Video Foundation Models for Physical AIcited by 200
- 2025AnyUp: Universal Feature Upsamplingcited by 28
- 2025JAFAR: Jack up Any Feature at Any Resolutioncited by 21
- 2025NAF: Zero-Shot Feature Upsampling via Neighborhood Attention Filteringcited by 6
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2026SurGe: Improved Surface Geometry in Point Mapscited by 2
- 2025Hilbert-Guided Sparse Local Attentioncited by 1
- 2026Le-DETR: Revisiting Real-Time Detection Transformer with Efficient Encoder Designcited by 1
- 2026ViT-Up: Faithful Feature Upsampling for Vision Transformerscited by 0
- 2026Scaling Storm-Resolving Atmospheric AI Simulation to the Entire Planetcited by 0
- 2026Scaling Storm-Resolving Atmospheric AI Simulation to the Entire Planet30 Jun 2026
- 2026ViT-Up: Faithful Feature Upsampling for Vision Transformers12 Jun 2026
- 2026SurGe: Improved Surface Geometry in Point Maps29 May 2026
- 2026Le-DETR: Revisiting Real-Time Detection Transformer with Efficient Encoder Design24 Feb 2026
- 2025NAF: Zero-Shot Feature Upsampling via Neighborhood Attention Filtering23 Nov 2025
- 2025Hilbert-Guided Sparse Local Attention8 Nov 2025
- 2025World Simulation with Video Foundation Models for Physical AI28 Oct 2025
- 2025AnyUp: Universal Feature Upsampling14 Oct 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025JAFAR: Jack up Any Feature at Any Resolution10 Jun 2025