EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention

计算机科学 计算 氙气 并行计算 加速 变压器 冗余(工程) 专用集成电路 算法 计算机硬件 操作系统 量子力学 物理 电压
作者
Xinyu Liu,Houwen Peng,Ningxin Zheng,Yuqing Yang,Han Hu,Yixuan Yuan
标识
DOI:10.1109/cvpr52729.2023.01386
摘要

Vision transformers have shown great success due to their high model capabilities. However, their remarkable performance is accompanied by heavy computation costs, which makes them unsuitable for real-time applications. In this paper, we propose a family of high-speed vision transformers named Efficient ViT. We find that the speed of existing transformer models is commonly bounded by memory inefficient operations, especially the tensor reshaping and element-wise functions in MHSA. Therefore, we design a new building block with a sandwich layout, i.e., using a single memory-bound MHSA between efficient FFN layers, which improves memory efficiency while enhancing channel communication. Moreover, we discover that the attention maps share high similarities across heads, leading to computational redundancy. To address this, we present a cascaded group attention module feeding attention heads with different splits of the full feature, which not only saves computation cost but also improves attention diversity. Comprehensive experiments demonstrate EfficientViT outperforms existing efficient models, striking a good trade-off between speed and accuracy. For instance, our EfficientViT-M5 surpasses MobileNetV3-Large by 1.9% in accuracy, while getting 40.4% and 45.2% higher throughput on Nvidia V100 GPU and Intel Xeon CPU, respectively. Compared to the recent efficient model MobileViT-XXS, EfficientViT-M2 achieves 1.8% superior accuracy, while running $5.8\times/3.7\times$ faster on the GPU/CPU, and $7.4\times faster$ when converted to ONNX format. Code and models are available at here.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
dlynecust发布了新的文献求助10
1秒前
MOON发布了新的文献求助30
3秒前
3秒前
4秒前
4秒前
张嘉雯发布了新的文献求助10
4秒前
5秒前
科研通AI6.2应助cuckovo采纳,获得10
5秒前
aaaaaa发布了新的文献求助10
6秒前
NexusExplorer应助刘旭成采纳,获得10
6秒前
NexusExplorer应助自然白猫采纳,获得10
6秒前
7秒前
7秒前
可可完成签到,获得积分10
9秒前
糕糕发布了新的文献求助10
9秒前
科目三应助aimeng采纳,获得10
9秒前
铲铲大王完成签到,获得积分10
9秒前
11秒前
研友_VZG7GZ应助www采纳,获得30
11秒前
可可发布了新的文献求助30
12秒前
英俊的铭应助聪慧的微笑采纳,获得10
13秒前
13秒前
16秒前
16秒前
dlynecust完成签到,获得积分10
16秒前
科研通AI6.2应助xuan采纳,获得10
16秒前
sss发布了新的文献求助10
16秒前
17秒前
江郁清发布了新的文献求助10
17秒前
李路超发布了新的文献求助10
18秒前
19秒前
FashionBoy应助alexlpb采纳,获得10
19秒前
zxw发布了新的文献求助10
19秒前
yyy完成签到,获得积分10
19秒前
隐形曼青应助大方元风采纳,获得10
19秒前
20秒前
21秒前
科研通AI2S应助hsh采纳,获得10
21秒前
21秒前
22秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Matrix Methods in Data Mining and Pattern Recognition 510
Reading and Understanding Health Research 500
Social Skills Improvement System-Rating Scales--Chinese Version 500
Dynamische Polarisation von H-1 und B-11 in (CH-3)-3NBH-3 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7251374
求助须知:如何正确求助?哪些是违规求助? 8873928
关于积分的说明 18730169
捐赠科研通 6931147
什么是DOI,文献DOI怎么找? 3199392
关于科研通互助平台的介绍 2374325
邀请新用户注册赠送积分活动 2174032