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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
bob发布了新的文献求助10
1秒前
max发布了新的文献求助10
1秒前
陈印发布了新的文献求助10
1秒前
shitoujie完成签到,获得积分10
1秒前
1秒前
allia完成签到 ,获得积分10
1秒前
Q11发布了新的文献求助10
2秒前
yar应助陶陶采纳,获得10
2秒前
2秒前
lxx完成签到 ,获得积分10
2秒前
JKL发布了新的文献求助10
3秒前
香蕉觅云应助二十五采纳,获得30
3秒前
陈东生完成签到,获得积分10
4秒前
shitoujie发布了新的文献求助10
4秒前
4秒前
lay发布了新的文献求助10
5秒前
量子星尘发布了新的文献求助10
5秒前
gao完成签到,获得积分10
5秒前
Orange应助葫芦家二娃采纳,获得10
5秒前
坦率冷雪完成签到,获得积分10
6秒前
day_on发布了新的文献求助10
6秒前
Aliiiice发布了新的文献求助30
7秒前
7秒前
jesi完成签到,获得积分10
8秒前
bkagyin应助曾建采纳,获得10
8秒前
9秒前
核平铀善完成签到,获得积分10
9秒前
9秒前
9秒前
10秒前
派兀派完成签到,获得积分10
10秒前
10秒前
弹弹弹熊完成签到,获得积分10
11秒前
汉堡包应助笑点低黄豆采纳,获得10
12秒前
13秒前
14秒前
14秒前
15秒前
15秒前
15秒前
高分求助中
The Mother of All Tableaux Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 2400
Ophthalmic Equipment Market by Devices(surgical: vitreorentinal,IOLs,OVDs,contact lens,RGP lens,backflush,diagnostic&monitoring:OCT,actorefractor,keratometer,tonometer,ophthalmoscpe,OVD), End User,Buying Criteria-Global Forecast to2029 2000
Cognitive Neuroscience: The Biology of the Mind 1000
Cognitive Neuroscience: The Biology of the Mind (Sixth Edition) 1000
Optimal Transport: A Comprehensive Introduction to Modeling, Analysis, Simulation, Applications 800
Official Methods of Analysis of AOAC INTERNATIONAL 600
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 588
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3958492
求助须知:如何正确求助?哪些是违规求助? 3504758
关于积分的说明 11120028
捐赠科研通 3236093
什么是DOI,文献DOI怎么找? 1788616
邀请新用户注册赠送积分活动 871249
科研通“疑难数据库(出版商)”最低求助积分说明 802625