Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Patch Slimming for Efficient Vision Transformers (2106.02852v2)

Published 5 Jun 2021 in cs.CV and cs.LG

Abstract: 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Yehui Tang (63 papers)
  2. Kai Han (184 papers)
  3. Yunhe Wang (145 papers)
  4. Chang Xu (323 papers)
  5. Jianyuan Guo (40 papers)
  6. Chao Xu (283 papers)
  7. Dacheng Tao (829 papers)
Citations (144)

Summary

We haven't generated a summary for this paper yet.