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
2秒前
baomingqiu完成签到 ,获得积分10
4秒前
6秒前
kanong完成签到,获得积分0
10秒前
Ann发布了新的文献求助10
10秒前
mz完成签到 ,获得积分10
16秒前
柔弱的不二完成签到,获得积分10
24秒前
丝丢皮得完成签到 ,获得积分10
31秒前
33秒前
35秒前
Sylvia完成签到 ,获得积分10
36秒前
852应助科研通管家采纳,获得10
42秒前
liu发布了新的文献求助10
43秒前
Star完成签到 ,获得积分10
47秒前
mengmenglv完成签到 ,获得积分0
48秒前
酷酷小子完成签到 ,获得积分10
48秒前
hanliulaixi完成签到 ,获得积分10
49秒前
阿李完成签到 ,获得积分10
50秒前
了0完成签到 ,获得积分10
54秒前
感性的神级完成签到,获得积分10
1分钟前
桐桐应助我不是急性子采纳,获得10
1分钟前
1分钟前
zww完成签到,获得积分10
1分钟前
大个应助liu采纳,获得10
1分钟前
zhang完成签到 ,获得积分10
1分钟前
season完成签到,获得积分20
1分钟前
了0完成签到 ,获得积分10
1分钟前
呆呆鱼完成签到,获得积分10
1分钟前
高高的丹雪完成签到 ,获得积分10
1分钟前
清风完成签到 ,获得积分10
1分钟前
starwan完成签到 ,获得积分10
1分钟前
小章鱼完成签到,获得积分10
1分钟前
1分钟前
周运来完成签到,获得积分10
1分钟前
xiliyusheng完成签到 ,获得积分20
1分钟前
Ann发布了新的文献求助10
1分钟前
包容的忆灵完成签到 ,获得积分10
1分钟前
慕青应助Ann采纳,获得10
1分钟前
砳熠完成签到 ,获得积分10
2分钟前
swordshine完成签到,获得积分10
2分钟前
高分求助中
(禁止应助)【重要!!请各位详细阅读】【科研通的精品贴汇总】 10000
Qualitative Inquiry and Research Design: Choosing Among Five Approaches 5th Edition 2000
International Code of Nomenclature for algae, fungi, and plants (Madrid Code) (Regnum Vegetabile) 1500
Linear and Nonlinear Functional Analysis with Applications, Second Edition 1200
Stereoelectronic Effects 1000
Robot-supported joining of reinforcement textiles with one-sided sewing heads 860
SPSS for Windows Step by Step: A Simple Study Guide and Reference, 17.0 Update (10th Edition) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 4197908
求助须知:如何正确求助?哪些是违规求助? 3733440
关于积分的说明 11755102
捐赠科研通 3406901
什么是DOI,文献DOI怎么找? 1869406
邀请新用户注册赠送积分活动 925341
科研通“疑难数据库(出版商)”最低求助积分说明 835846