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]
卷期号:45 (5): 1-13 被引量:611
标识
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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
天天完成签到,获得积分10
刚刚
刚刚
刚刚
1秒前
1秒前
顺利fashen发布了新的文献求助10
1秒前
滚滚向前你完成签到,获得积分10
1秒前
明朗发布了新的文献求助10
2秒前
宋晓宏完成签到,获得积分10
2秒前
完美世界应助高兴的海豚采纳,获得10
2秒前
Fosuer_3发布了新的文献求助10
2秒前
3秒前
cca完成签到,获得积分10
3秒前
斯文败类应助jjj采纳,获得10
3秒前
dong发布了新的文献求助10
3秒前
3秒前
英俊的铭应助健壮的紫夏采纳,获得10
4秒前
科研通AI6.3应助张拓采纳,获得10
5秒前
xwhhxxb发布了新的文献求助30
5秒前
搜集达人应助张少伟采纳,获得10
5秒前
虚心岂愈完成签到 ,获得积分10
5秒前
天天发布了新的文献求助10
5秒前
5秒前
大个应助甜蜜的马里奥采纳,获得10
6秒前
7秒前
Telomere发布了新的文献求助10
8秒前
8秒前
Ian发布了新的文献求助10
8秒前
鲤鱼玉米发布了新的文献求助10
9秒前
脏脏包完成签到,获得积分10
9秒前
10秒前
11秒前
11秒前
糖果苏扬完成签到 ,获得积分10
12秒前
嗡嗡嗡发布了新的文献求助30
12秒前
爆米花应助YLC采纳,获得10
14秒前
酷波er应助蓝天采纳,获得10
14秒前
andylue发布了新的文献求助10
14秒前
筱筱发布了新的文献求助10
14秒前
李健应助科研通管家采纳,获得10
16秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
48V Low-voltage Power Distribution Network (PDN) Architecture Industry Report, 2024 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
Direct and Iterative Linear System Solvers 500
Plato's Parmenides. A Constructive Reading 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7301793
求助须知:如何正确求助?哪些是违规求助? 8920066
关于积分的说明 18893181
捐赠科研通 6966085
什么是DOI,文献DOI怎么找? 3211421
关于科研通互助平台的介绍 2380467
邀请新用户注册赠送积分活动 2188372