亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Dynamic Spatial Sparsification for Efficient Vision Transformers and Convolutional Neural Networks

计算机科学 计算 人工智能 变压器 失败 安全性令牌 卷积神经网络 特征(语言学) 模式识别(心理学) 算法 并行计算 语言学 哲学 物理 计算机安全 量子力学 电压
作者
Yongming Rao,Zuyan Liu,Wenliang Zhao,Jie Zhou,Jiwen Lu
出处
期刊:IEEE Transactions on Pattern Analysis and Machine Intelligence [IEEE Computer Society]
卷期号:45 (9): 10883-10897 被引量:24
标识
DOI:10.1109/tpami.2023.3263826
摘要

In this paper, we present a new approach for model acceleration by exploiting spatial sparsity in visual data. We observe that the final prediction in vision Transformers is only based on a subset of the most informative regions, which is sufficient for accurate image recognition. Based on this observation, we propose a dynamic token sparsification framework to prune redundant tokens progressively and dynamically based on the input to accelerate vision Transformers. Specifically, we devise a lightweight prediction module to estimate the importance of each token given the current features. The module is added to different layers to prune redundant tokens hierarchically. While the framework is inspired by our observation of the sparse attention in vision Transformers, we find that the idea of adaptive and asymmetric computation can be a general solution for accelerating various architectures. We extend our method to hierarchical models including CNNs and hierarchical vision Transformers as well as more complex dense prediction tasks. To handle structured feature maps, we formulate a generic dynamic spatial sparsification framework with progressive sparsification and asymmetric computation for different spatial locations. By applying lightweight fast paths to less informative features and expressive slow paths to important locations, we can maintain the complete structure of feature maps while significantly reducing the overall computations. Extensive experiments on diverse modern architectures and different visual tasks demonstrate the effectiveness of our proposed framework. By hierarchically pruning 66% of the input tokens, our method greatly reduces 31% ∼ 35% FLOPs and improves the throughput by over 40% while the drop of accuracy is within 0.5% for various vision Transformers. By introducing asymmetric computation, a similar acceleration can be achieved on modern CNNs and Swin Transformers. Moreover, our method achieves promising results on more complex tasks including semantic segmentation and object detection. Our results clearly demonstrate that dynamic spatial sparsification offers a new and more effective dimension for model acceleration. Code is available at https://github.com/raoyongming/DynamicViT.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
样样完成签到,获得积分10
3秒前
周伯通发布了新的文献求助10
6秒前
7秒前
WhiteCaramel完成签到 ,获得积分10
8秒前
汉堡包应助pete采纳,获得10
11秒前
搜集达人应助科研通管家采纳,获得10
11秒前
Tangtang561o完成签到,获得积分10
12秒前
12秒前
晚安完成签到,获得积分10
21秒前
温柔的含双完成签到,获得积分10
28秒前
悦耳的馒头关注了科研通微信公众号
49秒前
霸气乐菱完成签到,获得积分10
56秒前
56秒前
光合作用完成签到,获得积分10
1分钟前
pete发布了新的文献求助10
1分钟前
1分钟前
务实书包完成签到,获得积分10
1分钟前
1分钟前
悦耳的馒头完成签到,获得积分20
1分钟前
霸气乐菱发布了新的文献求助30
1分钟前
pete完成签到,获得积分10
1分钟前
小马甲应助oleskarabach采纳,获得10
1分钟前
1分钟前
jane发发发完成签到,获得积分10
1分钟前
风华正茂完成签到,获得积分10
1分钟前
1分钟前
狂野冰蓝完成签到,获得积分10
1分钟前
无花果应助温柔的面包采纳,获得10
1分钟前
轻松的万天完成签到 ,获得积分10
1分钟前
YZChen完成签到,获得积分10
2分钟前
气泡水完成签到,获得积分10
2分钟前
李爱国应助科研通管家采纳,获得10
2分钟前
领导范儿应助科研通管家采纳,获得10
2分钟前
bms321发布了新的文献求助100
2分钟前
搜集达人应助悦耳的馒头采纳,获得30
2分钟前
yzsh完成签到,获得积分10
2分钟前
TsuKe完成签到,获得积分10
2分钟前
tree发布了新的文献求助10
2分钟前
甜美的谷云完成签到 ,获得积分10
2分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Römisch-Germanische Forschungen 1000
Social Psychology (第二版) 700
China Pluperfect I: Epistemology of Past and Outside in Chinese Art 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
The fast track to determining transfer functions of linear circuits: The student guide 500
The Analytical and Numerical Solution of Electric and Magnetic Fields 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7612134
求助须知:如何正确求助?哪些是违规求助? 9187632
关于积分的说明 19683281
捐赠科研通 7185874
什么是DOI,文献DOI怎么找? 3270688
关于科研通互助平台的介绍 2434257
邀请新用户注册赠送积分活动 2265551