已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

SwiftFormer: Efficient Additive Attention for Transformer-based Real-time Mobile Vision Applications

计算机科学 瓶颈 矩阵乘法 延迟(音频) 移动设备 计算机工程 推论 乘法(音乐) 分布式计算 人工智能 嵌入式系统 操作系统 物理 量子 电信 量子力学 声学
作者
Abdelrahman Shaker,Muhammad Maaz,Hanoona Rasheed,Salman Khan,Ming–Hsuan Yang,Fahad Shahbaz Khan
标识
DOI:10.1109/iccv51070.2023.01598
摘要

Self-attention has become a defacto choice for capturing global context in various vision applications. However, its quadratic computational complexity with respect to image resolution limits its use in real-time applications, especially for deployment on resource-constrained mobile devices. Although hybrid approaches have been proposed to combine the advantages of convolutions and self-attention for a better speed-accuracy trade-off, the expensive matrix multiplication operations in self-attention remain a bottleneck. In this work, we introduce a novel efficient additive attention mechanism that effectively replaces the quadratic matrix multiplication operations with linear element-wise multiplications. Our design shows that the key-value interaction can be replaced with a linear layer without sacrificing any accuracy. Unlike previous state-of-the-art methods, our efficient formulation of self-attention enables its usage at all stages of the network. Using our proposed efficient additive attention, we build a series of models called "SwiftFormer" which achieves state-of-the-art performance in terms of both accuracy and mobile inference speed. Our small variant achieves 78.5% top-1 ImageNet-1K accuracy with only 0.8 ms latency on iPhone 14, which is more accurate and 2× faster compared to MobileViT-v2. Our code and models: https://tinyurl.com/5ft8v46w
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
充电宝应助qiushui采纳,获得10
1秒前
研友_ZzrWKZ发布了新的文献求助10
2秒前
不曾留步发布了新的文献求助10
2秒前
3秒前
4秒前
英姑应助liuqizong123采纳,获得10
4秒前
阔达的花卷完成签到 ,获得积分10
4秒前
量子星尘发布了新的文献求助10
6秒前
6秒前
zhuosht发布了新的文献求助10
6秒前
qiushui完成签到,获得积分20
7秒前
无情的纸飞机完成签到,获得积分10
7秒前
正直敏发布了新的文献求助10
8秒前
kudou发布了新的文献求助10
8秒前
一杯清茶完成签到,获得积分20
8秒前
9秒前
9秒前
小果叮完成签到,获得积分20
10秒前
12秒前
13秒前
13秒前
不打烊吗完成签到,获得积分10
13秒前
15秒前
李爱国应助陶然采纳,获得10
15秒前
16秒前
科目三应助hihi采纳,获得10
18秒前
鲸落发布了新的文献求助10
18秒前
研友_宋文昊完成签到,获得积分10
19秒前
SciGPT应助nutliu采纳,获得10
19秒前
量子星尘发布了新的文献求助50
20秒前
20秒前
20秒前
22秒前
不曾留步完成签到,获得积分10
22秒前
22秒前
22秒前
Ava应助无辜之卉采纳,获得10
22秒前
博雅发布了新的文献求助10
23秒前
cyq完成签到,获得积分10
23秒前
贪玩初彤发布了新的文献求助10
24秒前
高分求助中
Production Logging: Theoretical and Interpretive Elements 2700
Neuromuscular and Electrodiagnostic Medicine Board Review 1000
Statistical Methods for the Social Sciences, Global Edition, 6th edition 600
こんなに痛いのにどうして「なんでもない」と医者にいわれてしまうのでしょうか 510
ALUMINUM STANDARDS AND DATA 500
Walter Gilbert: Selected Works 500
An Annotated Checklist of Dinosaur Species by Continent 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3666163
求助须知:如何正确求助?哪些是违规求助? 3225175
关于积分的说明 9761817
捐赠科研通 2935171
什么是DOI,文献DOI怎么找? 1607459
邀请新用户注册赠送积分活动 759187
科研通“疑难数据库(出版商)”最低求助积分说明 735153