Lune

CVPR Findings2026

Generalized Neighborhood Attention: Multi-dimensional Sparse Attention at the Speed of Light

Ali Hassani, Fengzhe Zhou, Aditya Kane, Jiannan Huang, Chieh-Yun Chen, Min Shi, Steven Walton, Markus Hoehnerbach, Vijay Thakkar, Mikhail Isaev, Qinsheng Zhang, Bing Xu, Haicheng Wu, Wen-mei Hwu, Ming-Yu Liu, Humphrey Shi

Abstract

Many sparse attention mechanisms typically fail to deliver consistent speedups. This is largely due to the level of complexity in Attention infrastructure, and the rapid evolution of AI hardware. Meanwhile many state-of-the-art foundational models, particularly in vision, are heavily bound by attention and need sparsity to escape the O(n2)\mathcal{O}\left(n^{2}\right) complexity. In this paper, we study a class of promising sparse attention mechanisms and massively improve their infrastructure. We first introduce Generalized Neighborhood Attention (GNA), which can implement neighborhood/sliding window, strided sliding window, and blocked attention. We also create a simulator that provides realistic upper bounds for each pattern under different implementations and settings. Finally, we implement GNA on top of state-of-the-art Attention kernels designed for the Hopper and Blackwell architectures in CUT-LASS. Our implementation involves a kernel decomposition, as opposed to fusion, which enables realizing the maximum speedup theoretically possible in fully block-sparse cases, with an effective throughput of up to 1.3 PFLOPS in FP16. We plug GNA into visual generative models, such as Cosmos Predict 1, Hunyuan Video, and FLUX, and show that it can deliver 28% to 63% end-to-end speedup on B200 without any fine-tuning. Our work will be open sourced.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Faster Video Diffusion with Trainable Sparse Attention cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Faster Video Diffusion with Trainable Sparse Attention cites Scalable Diffusion Models with Transformers
  • Segment Anything cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention cites Scalable Diffusion Models with Transformers
  • Scalable Diffusion Models with Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • AnyUp: Universal Feature Upsampling cites Segment Anything
  • AnyUp: Universal Feature Upsampling cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • AnyUp: Universal Feature Upsampling cites JAFAR: Jack up Any Feature at Any Resolution
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • JAFAR: Jack up Any Feature at Any Resolution cites Segment Anything
  • JAFAR: Jack up Any Feature at Any Resolution cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • JAFAR: Jack up Any Feature at Any Resolution cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • NAF: Zero-Shot Feature Upsampling via Neighborhood Attention Filtering cites AnyUp: Universal Feature Upsampling
  • NAF: Zero-Shot Feature Upsampling via Neighborhood Attention Filtering cites JAFAR: Jack up Any Feature at Any Resolution
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. AnyUp: Universal Feature UpsamplingThomas Wimmer, Prune Truong, Marie-Julie Rakotosaona, Michael Oechsle et al.ICLR 2026 · 29 citations
  2. JAFAR: Jack up Any Feature at Any ResolutionPaul Couairon, Loïck Chambon, Louis Serrano, Jean-Emmanuel Haugeard et al.NeurIPS 2025 · 26 citations
  3. Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse AttentionChengtao Lv, Yumeng Shi, Yushi Huang, Ruihao Gong et al.ICML 2026 · 10 citations
  4. Faster Video Diffusion with Trainable Sparse AttentionPeiyuan Zhang, Yongqi Chen, Haofeng Huang, Will Lin et al.NeurIPS 2025 · 6 citations
  5. NAF: Zero-Shot Feature Upsampling via Neighborhood Attention FilteringLoïck Chambon, Paul Couairon, Éloi Zablocki, Alexandre Boulch et al.CVPR 2026 · 6 citations

Builds on22

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
  4. Scalable Diffusion Models with TransformersWilliam Peebles, Saining XieICCV 2023 · 5,568 citations
  5. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations

Related papers

  1. FSA: An Alternative Efficient Implementation of Native Sparse Attention KernelRan Yan, Youhe Jiang, Zhuoming Chen, Haohui Mai et al.ICLR 2026 · 10 citations
  2. Faster Neighborhood Attention: Reducing the O(n^2) Cost of Self Attention at the Threadblock LevelAli Hassani, Wen-Mei Hwu, Humphrey ShiNeurIPS 2024 · 23 citations
  3. HilbertA: Hilbert-Curve–Aligned Sparse Attention for 2D Structured DataShaoyi Zheng, Wenbo Lu, Yuxuan Xia, Shenji WanICML 2026
  4. SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit TrainingJintao Zhang, Jia Wei, Haoxu Wang, Pengle Zhang et al.NeurIPS 2025 · 81 citations
  5. COSA:Co-Operative Systolic Arrays for Multi-head Attention Mechanism in Neural Network using Hybrid Data Reuse and Fusion MethodologiesZhican Wang, Gang Wang, Honglan Jiang, Ningyi Xu et al.DAC 2023 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines