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

计算机科学 人工智能 规范化(社会学) 分割 模式识别(心理学) 特征(语言学) 人类学 语言学 哲学 社会学
作者
Meng-Hao Guo,Zheng-Ning Liu,Tai‐Jiang Mu,Shi‐Min Hu
出处
期刊:IEEE Transactions on Pattern Analysis and Machine Intelligence [IEEE Computer Society]
卷期号:: 1-13 被引量:451
标识
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
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
闲出屁国公主完成签到 ,获得积分10
3秒前
May关闭了May文献求助
3秒前
温婉的香氛完成签到 ,获得积分10
3秒前
852应助尾气是菠萝口味采纳,获得10
4秒前
救命稻草发布了新的文献求助10
5秒前
lancesix发布了新的文献求助10
5秒前
李多多完成签到,获得积分10
5秒前
5秒前
梁晞发布了新的文献求助10
5秒前
曼尼发布了新的文献求助10
5秒前
爱撞墙的猫完成签到,获得积分10
6秒前
海带拳大力士完成签到,获得积分10
8秒前
8秒前
feliciaaa完成签到,获得积分10
8秒前
大意的觅云完成签到,获得积分10
9秒前
9秒前
eating发布了新的文献求助10
10秒前
SXYYXS完成签到 ,获得积分10
10秒前
hqf发布了新的文献求助30
11秒前
天音玄鸟发布了新的文献求助10
12秒前
DC发布了新的文献求助10
13秒前
传统的梦琪完成签到,获得积分10
13秒前
13秒前
Ava应助亗sui采纳,获得10
15秒前
快乐的翠柏完成签到,获得积分10
15秒前
8R60d8应助不再选择采纳,获得10
16秒前
17秒前
烟花应助曼尼采纳,获得10
18秒前
量子星尘发布了新的文献求助10
19秒前
活泼纲发布了新的文献求助10
19秒前
慎独而已完成签到,获得积分10
20秒前
21秒前
22秒前
xinyu完成签到,获得积分10
22秒前
24秒前
香蕉觅云应助科研通管家采纳,获得10
25秒前
CipherSage应助科研通管家采纳,获得10
25秒前
共享精神应助科研通管家采纳,获得10
25秒前
领导范儿应助科研通管家采纳,获得10
25秒前
高分求助中
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
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
T/CIET 1202-2025 可吸收再生氧化纤维素止血材料 500
Interpretation of Mass Spectra, Fourth Edition 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3951173
求助须知:如何正确求助?哪些是违规求助? 3496521
关于积分的说明 11082942
捐赠科研通 3226974
什么是DOI,文献DOI怎么找? 1784145
邀请新用户注册赠送积分活动 868219
科研通“疑难数据库(出版商)”最低求助积分说明 801089