亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人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
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
NightGlow完成签到,获得积分10
8秒前
xl完成签到,获得积分10
9秒前
Raunio完成签到,获得积分10
14秒前
天天天晴完成签到 ,获得积分10
19秒前
CYC发布了新的文献求助30
35秒前
wll1091完成签到 ,获得积分10
41秒前
FashionBoy应助悦耳的冷松采纳,获得10
46秒前
52秒前
凯凯宝完成签到,获得积分10
55秒前
凯凯宝发布了新的文献求助10
58秒前
1分钟前
任寒松发布了新的文献求助10
1分钟前
andrele完成签到,获得积分10
1分钟前
情怀应助shain采纳,获得30
1分钟前
抚琴祛魅完成签到 ,获得积分10
1分钟前
江氏巨颏虎完成签到,获得积分10
1分钟前
Fang发布了新的文献求助10
1分钟前
1分钟前
研友_VZG7GZ应助契合采纳,获得20
1分钟前
孤独雪柳发布了新的文献求助10
1分钟前
重要不评发布了新的文献求助10
1分钟前
1分钟前
悦耳的冷松发布了新的文献求助100
1分钟前
契合发布了新的文献求助20
1分钟前
1分钟前
爆米花应助科研通管家采纳,获得10
1分钟前
科研通AI2S应助科研通管家采纳,获得30
1分钟前
shain发布了新的文献求助30
1分钟前
孤独雪柳完成签到,获得积分20
1分钟前
bkagyin应助踏实白柏采纳,获得10
1分钟前
ding应助wang采纳,获得10
1分钟前
王家昌完成签到,获得积分10
1分钟前
重要不评完成签到,获得积分10
1分钟前
2分钟前
五五完成签到 ,获得积分10
2分钟前
Owen应助得咎采纳,获得10
2分钟前
彭于晏应助Fang采纳,获得10
2分钟前
shain完成签到,获得积分10
2分钟前
柔弱河马发布了新的文献求助10
2分钟前
王家昌发布了新的文献求助10
2分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Iron toxicity and hematopoietic cell transplantation: do we understand why iron affects transplant outcome? 2000
List of 1,091 Public Pension Profiles by Region 1021
上海破产法庭破产实务案例精选(2019-2024) 500
Teacher Wellbeing: Noticing, Nurturing, Sustaining, and Flourishing in Schools 500
EEG in Childhood Epilepsy: Initial Presentation & Long-Term Follow-Up 500
Latent Class and Latent Transition Analysis: With Applications in the Social, Behavioral, and Health Sciences 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5476261
求助须知:如何正确求助?哪些是违规求助? 4577950
关于积分的说明 14363306
捐赠科研通 4505838
什么是DOI,文献DOI怎么找? 2468912
邀请新用户注册赠送积分活动 1456499
关于科研通互助平台的介绍 1430139