Neighborhood Attention Transformer

计算机科学 像素 滑动窗口协议 可扩展性 变压器 人工智能 模式识别(心理学) 计算机视觉 窗口(计算) 电压 操作系统 工程类 电气工程
作者
Ali Hassani,Steven A. Walton,Jiachen Li,Li Shen,Humphrey Shi
标识
DOI:10.1109/cvpr52729.2023.00599
摘要

We present Neighborhood Attention (NA), the first efficient and scalable sliding window attention mechanism for vision. NA is a pixel-wise operation, localizing self attention (SA) to the nearest neighboring pixels, and therefore enjoys a linear time and space complexity compared to the quadratic complexity of SA. The sliding window pattern allows NA's receptive field to grow without needing extra pixel shifts, and preserves translational equivariance, unlike Swin Transformer's Window Self Attention (WSA). We develop NATTEN (Neighborhood Attention Extension), a Python package with efficient C++ and CUDA kernels, which allows NA to run up to 40% faster than Swin's WSA while using up to 25% less memory. We further present Neighborhood Attention Transformer (NAT), a new hierarchical transformer design based on NA that boosts image classification and downstream vision performance. Experimental results on NAT are competitive; NAT-Tiny reaches 83.2% top-1 accuracy on ImageNet, 51.4% mAP on MSCOCO and 48.4% mIoU on ADE20K, which is 1.9% ImageNet accuracy, 1.0% COCO mAP, and 2.6% ADE20K mIoU improvement over a Swin model with similar size. To support more research based on sliding window attention, we open source our project and release our checkpoints.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
xixi完成签到 ,获得积分10
刚刚
1秒前
XY完成签到 ,获得积分10
2秒前
ymmmaomao23完成签到,获得积分10
4秒前
不知道发布了新的文献求助10
5秒前
上官完成签到 ,获得积分10
7秒前
waws完成签到,获得积分10
7秒前
四叶草完成签到 ,获得积分10
11秒前
姚子敏完成签到,获得积分10
13秒前
li8888lili8888完成签到 ,获得积分10
14秒前
clock完成签到 ,获得积分10
15秒前
笑点低的铁身完成签到 ,获得积分10
19秒前
KK完成签到 ,获得积分10
19秒前
欧阳完成签到,获得积分10
20秒前
SQ完成签到 ,获得积分10
22秒前
求知者1701完成签到,获得积分10
22秒前
丘比特应助KK采纳,获得10
24秒前
量子星尘发布了新的文献求助10
24秒前
坚守初心完成签到,获得积分10
25秒前
i2stay完成签到,获得积分0
26秒前
Jade0259完成签到 ,获得积分10
28秒前
30秒前
煲煲煲仔饭完成签到 ,获得积分10
31秒前
Neko应助Maestro_S采纳,获得10
33秒前
33秒前
安静严青完成签到 ,获得积分10
33秒前
科研通AI2S应助sanages采纳,获得10
33秒前
多喝水完成签到,获得积分10
34秒前
czrrrrrrrr发布了新的文献求助10
39秒前
群青完成签到 ,获得积分10
39秒前
江江完成签到 ,获得积分10
40秒前
starleo完成签到,获得积分10
41秒前
852应助情况有变采纳,获得10
42秒前
44秒前
46秒前
吴老师完成签到 ,获得积分10
49秒前
完美夜云完成签到 ,获得积分10
49秒前
莫芫发布了新的文献求助10
49秒前
轻松的越彬完成签到 ,获得积分10
51秒前
apk866完成签到 ,获得积分10
52秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Handbook of pharmaceutical excipients, Ninth edition 5000
Aerospace Standards Index - 2026 ASIN2026 3000
Relation between chemical structure and local anesthetic action: tertiary alkylamine derivatives of diphenylhydantoin 1000
Signals, Systems, and Signal Processing 610
Discrete-Time Signals and Systems 610
Principles of town planning : translating concepts to applications 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 纳米技术 有机化学 物理 生物化学 化学工程 计算机科学 复合材料 内科学 催化作用 光电子学 物理化学 电极 冶金 遗传学 细胞生物学
热门帖子
关注 科研通微信公众号,转发送积分 6066648
求助须知:如何正确求助?哪些是违规求助? 7898952
关于积分的说明 16322886
捐赠科研通 5208397
什么是DOI,文献DOI怎么找? 2786304
邀请新用户注册赠送积分活动 1769013
关于科研通互助平台的介绍 1647813