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 [Institute of Electrical and Electronics Engineers]
卷期号:45 (5): 1-13 被引量:578
标识
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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
LLL发布了新的文献求助10
刚刚
zilu0712发布了新的文献求助10
1秒前
1秒前
安氏月月发布了新的文献求助20
1秒前
1秒前
云里发布了新的文献求助10
2秒前
哈哈发布了新的文献求助10
3秒前
科研通AI6应助yj采纳,获得10
4秒前
4秒前
LGS完成签到,获得积分10
4秒前
阿龙发布了新的文献求助10
4秒前
nessa完成签到 ,获得积分10
4秒前
jklwss完成签到,获得积分10
5秒前
今后应助LLL采纳,获得10
6秒前
希望天下0贩的0应助源缘采纳,获得10
6秒前
跑快点发布了新的文献求助10
6秒前
wenchong发布了新的文献求助10
6秒前
大梦想家完成签到,获得积分10
7秒前
7秒前
7秒前
haha完成签到,获得积分10
7秒前
许译匀完成签到,获得积分10
8秒前
FashionBoy应助阿肖呀采纳,获得10
9秒前
道心发布了新的文献求助10
10秒前
万松辉发布了新的文献求助10
10秒前
周雪完成签到 ,获得积分10
11秒前
小云杉发布了新的文献求助10
11秒前
12秒前
卫凡霜发布了新的文献求助10
12秒前
许译匀发布了新的文献求助10
13秒前
123给123的求助进行了留言
13秒前
张张发布了新的文献求助10
13秒前
CodeCraft应助xue采纳,获得10
14秒前
量子星尘发布了新的文献求助10
14秒前
神勇乐曲完成签到,获得积分10
14秒前
Mry发布了新的文献求助10
14秒前
南浔完成签到,获得积分10
15秒前
15秒前
啥都懂发布了新的文献求助10
16秒前
17秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Basic And Clinical Science Course 2025-2026 3000
人脑智能与人工智能 1000
花の香りの秘密―遺伝子情報から機能性まで 800
Process Plant Design for Chemical Engineers 400
Principles of Plasma Discharges and Materials Processing, 3rd Edition 400
Signals, Systems, and Signal Processing 400
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5613711
求助须知:如何正确求助?哪些是违规求助? 4698841
关于积分的说明 14899179
捐赠科研通 4737144
什么是DOI,文献DOI怎么找? 2547125
邀请新用户注册赠送积分活动 1511132
关于科研通互助平台的介绍 1473605