EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention

计算机科学 计算 并行计算 氙气 加速 变压器 计算机工程 算法 物理 量子力学 电压
作者
Xinyu Liu,Houwen Peng,Ningxin Zheng,Yuqing Yang,Han Hu,Yixuan Yuan
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:35
标识
DOI:10.48550/arxiv.2305.07027
摘要

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 EfficientViT. 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.8x/3.7x faster on the GPU/CPU, and 7.4x faster when converted to ONNX format. Code and models are available at https://github.com/microsoft/Cream/tree/main/EfficientViT.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
djp666完成签到,获得积分10
刚刚
刚刚
蔚蓝天空发布了新的文献求助10
刚刚
1秒前
所所应助落寞绫采纳,获得10
1秒前
梨梨梨完成签到,获得积分20
2秒前
2秒前
明亮的秋完成签到,获得积分10
2秒前
mumu完成签到,获得积分10
2秒前
3秒前
开放的晓绿完成签到,获得积分10
3秒前
3秒前
Y_完成签到,获得积分20
4秒前
4秒前
呵呵呵应助现代的代丝采纳,获得20
4秒前
JaneBing完成签到,获得积分10
4秒前
斯文败类应助炖地瓜采纳,获得10
5秒前
xxw完成签到,获得积分10
5秒前
6秒前
科研通AI6.3应助闲尾采纳,获得10
7秒前
HHH发布了新的文献求助10
7秒前
123456发布了新的文献求助10
7秒前
7秒前
8秒前
8秒前
ELend完成签到,获得积分10
9秒前
Y_发布了新的文献求助10
9秒前
烟花应助文献小当家采纳,获得10
9秒前
Nostalgia完成签到,获得积分10
9秒前
英俊的铭应助星星国王采纳,获得10
9秒前
18746005898完成签到 ,获得积分10
10秒前
10秒前
10秒前
wyz653完成签到,获得积分10
11秒前
vasiliki发布了新的文献求助10
11秒前
11秒前
11秒前
12秒前
12秒前
4u发布了新的文献求助10
13秒前
高分求助中
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
ズームレンズの光学設計に関する研究 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
Matrix Methods in Data Mining and Pattern Recognition Second Edition 610
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7300434
求助须知:如何正确求助?哪些是违规求助? 8918749
关于积分的说明 18888418
捐赠科研通 6965274
什么是DOI,文献DOI怎么找? 3211133
关于科研通互助平台的介绍 2380360
邀请新用户注册赠送积分活动 2187852