Beyond Self-Attention: External Attention Using Two Linear Layers for Visual Tasks

计算机科学 人工智能 规范化(社会学) 分割 模式识别(心理学) 特征(语言学) 语言学 哲学 社会学 人类学
作者
Minghao Guo,Zheng-Ning Liu,Tai‐Jiang Mu,Shi‐Min Hu
出处
期刊:IEEE Transactions on Pattern Analysis and Machine Intelligence [Institute of Electrical and Electronics Engineers]
卷期号:: 1-13 被引量:125
标识
DOI:10.1109/tpami.2022.3211006
摘要

Attention mechanisms, especially self-attention, have played an increasingly important role in deep feature representation for visual tasks. Self-attention updates the feature at each position by computing a weighted sum of features using pair-wise affinities across all positions to capture the long-range dependency within a single sample. However, self-attention has quadratic complexity and ignores potential correlation between different samples. This article proposes a novel attention mechanism which we call external attention, based on two external, small, learnable, shared memories, which can be implemented easily by simply using two cascaded linear layers and two normalization layers; it conveniently replaces self-attention in existing popular architectures. External attention has linear complexity and implicitly considers the correlations between all data samples. We further incorporate the multi-head mechanism into external attention to provide an all-MLP architecture, external attention MLP (EAMLP), for image classification. Extensive experiments on image classification, object detection, semantic segmentation, instance segmentation, image generation, and point cloud analysis reveal that our method provides results comparable or superior to the self-attention mechanism and some of its variants, with much lower computational and memory costs.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
旅行者完成签到,获得积分10
2秒前
WANG发布了新的文献求助10
2秒前
2秒前
2秒前
凤凰举报李晶求助涉嫌违规
4秒前
5秒前
5秒前
Postmalone发布了新的文献求助10
9秒前
yu发布了新的文献求助10
12秒前
17秒前
17秒前
18秒前
18秒前
20秒前
yxn发布了新的文献求助10
20秒前
yeye发布了新的文献求助10
22秒前
脑洞疼应助鱼儿吐泡泡采纳,获得10
23秒前
yu完成签到,获得积分10
23秒前
Justice发布了新的文献求助10
23秒前
小老虎喵喵喵完成签到 ,获得积分10
27秒前
29秒前
wang完成签到,获得积分10
29秒前
Eternitymaria完成签到,获得积分10
30秒前
31秒前
赤墨发布了新的文献求助10
32秒前
宋小威完成签到,获得积分10
33秒前
钱大大完成签到 ,获得积分10
35秒前
晓薇发布了新的文献求助10
35秒前
cctv18应助wang采纳,获得10
36秒前
36秒前
wanci应助软糖采纳,获得10
36秒前
36秒前
高高的巨人完成签到 ,获得积分10
37秒前
40秒前
40秒前
Caliho完成签到 ,获得积分10
40秒前
耶耶耶发布了新的文献求助10
41秒前
Jasper应助Postmalone采纳,获得10
43秒前
45秒前
47秒前
高分求助中
One Man Talking: Selected Essays of Shao Xunmei, 1929–1939 1000
Yuwu Song, Biographical Dictionary of the People's Republic of China 700
[Lambert-Eaton syndrome without calcium channel autoantibodies] 520
Sphäroguß als Werkstoff für Behälter zur Beförderung, Zwischen- und Endlagerung radioaktiver Stoffe - Untersuchung zu alternativen Eignungsnachweisen: Zusammenfassender Abschlußbericht 500
少脉山油柑叶的化学成分研究 430
Lung resection for non-small cell lung cancer after prophylactic coronary angioplasty and stenting: short- and long-term results 400
Revolutions 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2452782
求助须知:如何正确求助?哪些是违规求助? 2125043
关于积分的说明 5410551
捐赠科研通 1853976
什么是DOI,文献DOI怎么找? 922092
版权声明 562297
科研通“疑难数据库(出版商)”最低求助积分说明 493297