Methods › General › Attention Mechanisms › Neighborhood Attention

Neighborhood Attention

21 papers tagged archive 2025-07-28

Introduced by Ali Hassani et al. in Neighborhood Attention Transformer

archive 2025-07-28 Description, source and code snippet are the archive's method entry.

Neighborhood Attention is a restricted self attention pattern in which each token's receptive field is limited to its nearest neighboring pixels. It was proposed in Neighborhood Attention Transformer as an alternative to other local attention mechanisms used in Hierarchical Vision Transformers.

NA is in concept similar to stand alone self attention (SASA), in that both can be implemented with a raster scan sliding window operation over the key value pair. However, NA would require a modification to handle corner pixels, which helps maintain a fixed receptive field size and an increased number of relative positions.

The primary challenge in experimenting with both NA and SASA has been computation. Simply extracting key values for each query is slow, takes up a large amount of memory, and is eventually intractable at scale. NA was therefore implemented through a new CUDA extension to PyTorch, NATTEN.

PaperSource

In Syntology name not resolved (unknown_name). The lookup matched no method, paper or venue by this name; that asserts nothing about whether code exists.

Near matches the lookup lists, each a different name: Neighborhood Patch Attention (NPA); Batched GEMM-based Neighborhood Attention; TF-ATTENTION; EL-Attention; SS-Attention; TC-ATTENTION; VC-Attention; Attention-MoA.

Syntology's have check for this name (free, it answers coverage only), read 2026-10-05; ask it again live. A level is the served verification level of that one answer; nothing here is summed across methods.

Papers archive 2025-07-28

archive papers tagged: 21 · with a code link: 17 · where Syntology ran a sample: 4 (3 with a run with no instrument failure, 1 where every run was a failure of Syntology's instrument) Syntology

Show: all tagged papersonly where code ran (4 of 21 tagged: 3 with a run with no instrument failure, 1 where every run was a failure of Syntology's instrument)

Page 1 of 1: papers 1 to 21 of 21, newest first by the archive's date (ties by slug), in archive order.

Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code, as “N ran (of which C constructed an object rather than computing a result; K with no instrument failure: H honoured, V violated, P with no contract checked; I where Syntology's instrument failed) · U unverified”; the instrument figure counts failures of Syntology's instrument, not of the code. It is per sample and not a correctness claim. When the archive marks a repository official for the paper, the line starts with that repository's state (the archive's flag, not a verdict on who wrote the code; “community repositories only” when every sample that ran came from a community repository, “official: no sample here; runs from other or unrecorded repositories” when some came from a repository the paper names or has in its text, or from none recorded); hover it for the repositories the samples that ran came from.

Tasks archive 2025-07-28

20 shown of 47 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.

TaskPapers
Semantic Segmentation7
Image Classification4
Decoder3
Image Segmentation3
Object Detection3
Segmentation3
image-classification3
Computational Efficiency2
Denoising2
Instance Segmentation2
Panoptic Segmentation2
SSIM2
3D Object Detection1
Autonomous Driving1
Classification1
Deblurring1
Depth Estimation1
Diagnostic1
Edge Detection1
Emotion Recognition1

Usage over time archive 2025-07-28

Papers per year tagged with Neighborhood Attention: 2022 to 2025, peak 6 6 0 2022: 6 papers 2022 2023: 5 papers 2023 2024: 6 papers 2024 2025: 4 papers 2025
Papers per year the archive tags with this method, by the paper's archive date (21 dated). Bars are counts, not a trend claim.

Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).

Categories archive 2025-07-28

Attention MechanismsAttention ModulesAttention Patterns

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections