Lune

CVPR2022顶会

Patch Slimming for Efficient Vision Transformers

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 topdown 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 impacts 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 Ima-geNet dataset.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 66 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Chasing Sparsity in Vision Transformers: An End-to-End Exploration 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Chasing Sparsity in Vision Transformers: An End-to-End Exploration 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Chasing Sparsity in Vision Transformers: An End-to-End Exploration 引用了 Training data-efficient image transformers & distillation through attention
  • Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognition 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognition 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognition 引用了 Language Models are Few-Shot Learners
  • Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognition 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognition 引用了 Training data-efficient image transformers & distillation through attention
  • Post-Training Quantization for Vision Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Post-Training Quantization for Vision Transformer 引用了 Training data-efficient image transformers & distillation through attention
  • TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation 引用了 Training data-efficient image transformers & distillation through attention
  • CMT: Convolutional Neural Networks Meet Vision Transformers 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • CMT: Convolutional Neural Networks Meet Vision Transformers 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • CMT: Convolutional Neural Networks Meet Vision Transformers 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • CMT: Convolutional Neural Networks Meet Vision Transformers 引用了 Training data-efficient image transformers & distillation through attention
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper66

  1. CMT: Convolutional Neural Networks Meet Vision TransformersJianyuan Guo, Kai Han, Han Wu, Yehui Tang 等CVPR 2022 · 839 次引用
  2. Post-Training Quantization for Vision TransformerZhenhua Liu, Yunhe Wang, Kai Han, Wei Zhang 等NeurIPS 2021 · 528 次引用
  3. TopFormer: Token Pyramid Transformer for Mobile Semantic SegmentationWenqiang Zhang, Zilong Huang, Guozhong Luo, Tao Chen 等CVPR 2022 · 313 次引用
  4. Chasing Sparsity in Vision Transformers: An End-to-End ExplorationTianlong Chen, Yu Cheng, Zhe Gan, Lu Yuan 等NeurIPS 2021 · 295 次引用
  5. Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image RecognitionYulin Wang, Rui Huang, Shiji Song, Zeyi Huang 等NeurIPS 2021 · 283 次引用

它引用的 Paper17

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  5. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan 等ICCV 2021 · 4,909 次引用

相关 Paper

  1. AdaViT: Adaptive Vision Transformers for Efficient Image RecognitionLingchen Meng, Hengduo Li, Bor-Chun Chen, Shiyi Lan 等CVPR 2022
  2. SPOT: Sparsification with Attention Dynamics via Token Relevance in Vision TransformersOded Schlesinger, Amirhossein Farzam, J. Matias Di Martino, Guillermo SapiroCVPR Findings 2026
  3. Scalable Vision Transformers with Hierarchical PoolingZizheng Pan, Bohan Zhuang, Jing Liu, Haoyu He 等ICCV 2021 · 154 次引用
  4. FDViT: Improve the Hierarchical Architecture of Vision TransformerYixing Xu, Chao Li, Dong Li, Xiao Sheng 等ICCV 2023 · 21 次引用
  5. Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization SpaceArnav Chavan, Zhiqiang Shen, Zhuang Liu, Zechun Liu 等CVPR 2022 · 64 次引用
黄昏的海面,两侧是细线勾勒的悬崖