Papers › Patch Slimming for Efficient Vision Transformers

Patch Slimming for Efficient Vision Transformers

5 Jun 2021CVPR 2022 1arXiv:2106.02852archive 2025-07-28

Yehui Tang, Kai Han, Yunhe Wang, Chang Xu, Jianyuan Guo, Chao Xu, DaCheng Tao

This paper studies the efficiency problem for visual transformers by excavating redundant calculation in given networks. The recent transformer architecture has demonstrated its effectiveness for achieving excellent performance on a series of computer vision tasks. However, similar to that of convolutional neural networks, the huge computational cost of vision transformers is still a severe issue. Considering that the attention mechanism aggregates different patches layer-by-layer, we present a novel patch slimming approach that discards useless patches in a top-down paradigm. We first identify the effective patches in the last layer and then use them to guide the patch selection process of previous layers. For each layer, the impact of a patch on the final output feature is approximated and patches with less impact will be removed. Experimental results on benchmark datasets demonstrate that the proposed method can significantly reduce the computational costs of vision transformers without affecting their performances. For example, over 45% FLOPs of the ViT-Ti model can be reduced with only 0.2% top-1 accuracy drop on the ImageNet dataset.

PaperPDFConference PDF

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

No code repository is listed for this paper in the archive or in Syntology's graph.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Efficient ViTs

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Efficient ViTs ImageNet-1K (With LV-ViT-S) DPS-LV-ViT-S GFLOPs 4.5 #12 of 19 Archive leaderboard report
Efficient ViTs ImageNet-1K (With LV-ViT-S) DPS-LV-ViT-S Top 1 Accuracy 82.9 #12 of 19 Archive leaderboard report
Efficient ViTs ImageNet-1K (With LV-ViT-S) PS-LV-ViT-S GFLOPs 4.7 #18 of 19 Archive leaderboard report
Efficient ViTs ImageNet-1K (With LV-ViT-S) PS-LV-ViT-S Top 1 Accuracy 82.4 #18 of 19 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-S) DPS-ViT GFLOPs 2.4 #20 of 41 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-S) DPS-ViT Top 1 Accuracy 79.5 #20 of 41 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-S) PS-ViT GFLOPs 2.6 #22 of 41 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-S) PS-ViT Top 1 Accuracy 79.4 #22 of 41 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-T) DPS-ViT GFLOPs 0.6 #8 of 22 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-T) DPS-ViT Top 1 Accuracy 72.1 #8 of 22 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-T) PS-ViT GFLOPs 0.7 #11 of 22 Archive leaderboard report
Efficient ViTs ImageNet-1K (with DeiT-T) PS-ViT Top 1 Accuracy 72.0 #11 of 22 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections