paper-with-me

홈 › Papers

CP-ViT: Cascade Vision Transformer Pruning via Progressive Sparsity Prediction

2022-03-09 · Zhuoran Song, Yihong Xu, Zhezhi He, Li Jiang, Naifeng Jing, Xiaoyao Liang

Vision transformer (ViT) has achieved competitive accuracy on a variety of computer vision applications, but its computational cost impedes the deployment on resource-limited mobile devices. We explore the sparsity in ViT and observe that informative patches and heads are sufficient for accurate image recognition. In this paper, we propose a cascade pruning framework named CP-ViT by predicting sparsity in ViT models progressively and dynamically to reduce computational redundancy while minimizing the accuracy loss. Specifically, we define the cumulative score to reserve the informative patches and heads across the ViT model for better accuracy. We also propose the dynamic pruning ratio adjustment technique based on layer-aware attention range. CP-ViT has great general applicability for practical deployment, which can be applied to a wide range of ViT models and can achieve superior accuracy with or without fine-tuning. Extensive experiments on ImageNet, CIFAR-10, and CIFAR-100 with various pre-trained models have demonstrated the effectiveness and efficiency of CP-ViT. By progressively pruning 50\% patches, our CP-ViT method reduces over 40\% FLOPs while maintaining accuracy loss within 1\%.

📄 PDF Abstract BibTeX arXiv:2203.04570

Code (1)

ok858ok/CP-ViT pytorch

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

Once for Both: Single Stage of Importance and Sparsity Search for Vision Transformer Compression

2024-03-23 · CVPR 2024 1 · Hancheng Ye, Chong Yu, Peng Ye, Renqiu Xia 외

Recent Vision Transformer Compression (VTC) works mainly follow a two-stage scheme, where the importance score of each model unit is first evaluated or preset in each submodule, followed by the sparsity score evaluation …

Dimensionality ReductionGPU

SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning

2020-12-17 · Hanrui Wang, Zhekai Zhang, Song Han

The attention mechanism is becoming increasingly popular in Natural Language Processing (NLP) applications, showing superior performance than convolutional and recurrent architectures. However, attention becomes the comp…

CPUGPUQuantizationSentence

Vision Transformer Pruning

2021-04-17 · Mingjian Zhu, Yehui Tang, Kai Han

Vision transformer has achieved competitive performance on a variety of computer vision applications. However, their storage, run-time memory, and computational demands are hindering the deployment to mobile devices. Her…

LOTUS: Improving Transformer Efficiency with Sparsity Pruning and Data Lottery Tickets

2024-05-01 · Ojasw Upadhyay

Vision transformers have revolutionized computer vision, but their computational demands present challenges for training and deployment. This paper introduces LOTUS (LOttery Transformers with Ultra Sparsity), a novel met…

Speeding-up Graphical Model Optimization via a Coarse-to-fine Cascade of Pruning Classifiers

2014-09-15 · B. Conejo, N. Komodakis, S. Leprince, J. P. Avouac

We propose a general and versatile framework that significantly speeds-up graphical model optimization while maintaining an excellent solution accuracy. The proposed approach relies on a multi-scale pruning scheme that i…

Model Optimization